1/4/2023 0 Comments Mirrorsync portsYou only need the reposync command: # reposync -p -download-metadata -repo= Setting up mirrored repos for Red Hat Enterprise Linux 8įor Red Hat Enterprise Linux 8, this process is even easier. # createrepo -v /var/www/html/rhel-7-server-rpms # Create the repo You can get a complete list of repos your subscription has access to with the command: $ sudo subscription-manager repos -listįor example, to sync the packages from the rhel-7-server-rpms repo and create a basic local repository, execute the following commands: # reposync -gpgcheck -l -repoid=rhel-7-server-rpms -download_path=/var/www/html # Sync RPMS In this case, rhel-7-server-rpms is the ID for the standard Red Hat Enterprise Linux 7 repo. Virtualbox/7Server/x86_64 Oracle Linux / RHEL / CentOS-7Server 77 Rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RP 26.766 Rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - O 19.490 Loaded plugins: langpacks, nvidia, product-id, search-disabled-repos, subscription. Run yum repolist, and you’ll find the repo ID in the output’s first column: $ yum repolist Next, you need the repository ID for the repo you would like to sync. MIRRORSYNC PORTS INSTALLInstall it on your web server with the following: # yum install yum-utils createrepo Don’t worry, this tool is included in your subscription, too. Then, if you’re using Red Hat Enterprise Linux 7, then to create a basic repo you have to start by installing createrepo. To start, you’ll need to choose the web server that will serve the mirrored repos to your LAN. Setting up mirrored repos for Red Hat Enterprise Linux 7 If you have any questions about subscriptions, please take a look at the following URLs: the Red Hat subscription model FAQ and the Red Hat subscription service overview. All of your other hosts that will use this mirror need to have a valid subscription, too. You need a valid subscription for every repo you would like to mirror because your mirror server can only sync those repos that are included in its own subscription.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |