To avoid any corruption its recommend to disable any non-RedHat repositories. It should look like the following if no other repository is enabled. Name=DVD for Red Hat Enterprise Linux 7.9 ServerĬlear the cache and check whether you can get the packages list from the DVD repo # yum clean all In the end, the new repo file could look like the following Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release # chmod 644 /etc//rhel7dvd.repoĮdit the new repo file, changing the gpgcheck=0 setting to 1 and adding the following 3 lines vi /etc//rhel7dvd.repo # mkdir -p /mnt/discĬopy the media.repo file from the root of the mounted directory to /etc// and set the permissions to 0644 or another similar permissions set: # cp /mnt/disc/media.repo /etc//rhel7dvd.repo If you use DVD media, you can mount like below. Mount the RHEL installation ISO to a directory like /mnt/disc, e.g.: # mkdir -p /mnt/disc Once you have downloaded a DVD version of your chosen Rhel Version and copied it over to a location on your server.How do I create a local repository in RHEL 7?.Way to update the packages on server, with no satellite server and servers disconnected from internet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |