12/8/2023 0 Comments Yum local install![]() usr/bin/createrepo /u01/repo/OracleLinux/ol7_latest/getPackage/ > $LOG_FILE 2>&1 usr/bin/reposync -newest-only -repoid=ol7_UEKR5 -p /u01/repo/OracleLinux > $LOG_FILE 2>&1 usr/bin/reposync -newest-only -repoid=ol7_UEKR4 -p /u01/repo/OracleLinux > $LOG_FILE 2>&1 usr/bin/reposync -newest-only -repoid=ol7_latest -p /u01/repo/OracleLinux > $LOG_FILE 2>&1 Create a script called "/u01/repo/scripts/repo_sync.sh" with the following contents. # /usr/bin/createrepo /u01/repo/OracleLinux/ol7_UEKR5/getPackage/ Resync the RepositoryĪ resync of the Yum repositories involves repeating the reposync and createrepo commands, so you should script them and run them from CRON. # /usr/bin/createrepo /u01/repo/OracleLinux/ol7_UEKR4/getPackage/ # /usr/bin/createrepo /u01/repo/OracleLinux/ol7_latest/getPackage/ Once complete, you can create the repositories from the local directories using the createrepo command. ![]() The "newest-only" option reduces the total size of the download. Subsequent refreshes only bring across the changed packages, so they are much quicker. I waited overnight for the 27G of downloads to complete. It takes a long time to sync the repositories the first time, so be patient. # /usr/bin/reposync -newest-only -repoid=ol7_UEKR5 -p /u01/repo/OracleLinux # /usr/bin/reposync -newest-only -repoid=ol7_UEKR4 -p /u01/repo/OracleLinux # /usr/bin/reposync -newest-only -repoid=ol7_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 7, the "ol7_latest" and "ol7_UEKR4" repositories should already be enabled in the "/etc//public-yum-ol7.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. Download the Latest Oracle Linux Repo File. ![]() Make sure the repositories of interest are available on the server, as shown in the following article. ![]() ![]() 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 7 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |