![]() ![]() usr/bin/reposync -newest-only -download-metadata -refresh -repoid=ol8_appstream -p /u01/repo/OracleLinux > $LOG_FILE 2>&1 usr/bin/reposync -newest-only -download-metadata -refresh -repoid=ol8_baseos_latest -p /u01/repo/OracleLinux > $LOG_FILE 2>&1 Create a script called "/u01/repo/scripts/repo_sync.sh" with the following contents. Resync the RepositoryĪ resync of the Yum repositories involves repeating the reposync command, so you should script them and run them from CRON. The "newest-only" option reduces the total size of the download. Subsequent refreshes only bring across the changed packages, so they are much quicker. It takes a long time to sync the repositories the first time, so be patient. # /usr/bin/reposync -newest-only -download-metadata -repoid=ol8_UEKR6 -p /u01/repo/OracleLinux # /usr/bin/reposync -newest-only -download-metadata -repoid=ol8_appstream -p /u01/repo/OracleLinux # /usr/bin/reposync -newest-only -download-metadata -repoid=ol8_baseos_latest -p /u01/repo/OracleLinux The reposync command is used to synchronize a remote yum repository to a local directory, using yum to retrieve the packages. If you've done a default installation of Oracle Linux 8, the "ol8_baseos_latest" and "ol8_appstream" repositories should already be enabled in the "/etc//oracle-linux-ol8.repo" file, and the "ol8_UEKR6" repository should already be enabled in the "/etc//uek-ol8.repo" file, but it's worth checking before you continue. Install the following packages, which include the utilities necessary to set up the repository.Ĭreate the following directories to hold the main OS and UEK respoitories. Thanks to Todd Vierling for the heads up about a bunch of changes regarding RHEL8/OL8. If you have a ULN subscription, you should use the method described here. This article describes the process of setting up local Yum repositories for Oracle Linux using as the source repository. Home » Articles » Linux » Here Create a Local Yum Repository for Oracle Linux 8 ![]()
0 Comments
Leave a Reply. |