Red Hat Enterprise Linux server will need to have subscription in order to get the installation or updating the latest packages or support from Red Hat (over the internet). However there are also the attached packages available in Red Hat DVD ISO image that we can use to install packages (offline) without internet connection or subscription. To do this we need to create the local repository as the following:
I. Create local repository for Red Hat Enterprise Linux 6.x, 7.x
- Remote (SSH) or directly login to your RHEL6.x, 7.x via the console
- Create local repository file named “/etc/yum.repos.d/local.repo” (you can have your own name) as the following:
cat > /etc/yum.repos.d/local.repo <<‘EOF’
[Local_Repo]
name=Local RHEL7.x Repository
baseurl=file:///media
enabled=1
gpgcheck=0EOF
- [xxxx] – refer to your repo name
- name – refer to your repo discription
- baseurl=file:///<packages> – refer to your local mount point for package’s path
- enabled – refer to enable or disable this repository, thus 1=enable, 0=disable
- gpgcheck – refer to if we need to verify GPG keys or not, in case we do not need to enable it, so just set it to “0”
- Connect your RHEL 6.x, 7.x DVD ISO image to your VM or insert RHEL 6.x, 7.x DVD to DVD ROM if you have physical machine
- Mount your RHEL 6.x, 7.x disk to the mount point “/media” same as your local repository configuration
mount /dev/cdrom /media
ls -l /media/
- Finally, let test install some packages
II. Create local repository for Red Hat Enterprise Linux 8.x
- Remote (SSH) or directly login to your RHEL 8.x via the console
- Create local repository file named “/etc/yum.repos.d/local.repo” (you can have your own name) as the following:
cat > /etc/yum.repos.d/local.repo <<‘EOF’
[Local_BaseOS]
name=Local RHEL8.x BaseOS Repository
baseurl=file:///media/BaseOS
enabled=1
gpgcheck=0[Local_AppStream]
name=Local RHEL8.x AppStream Repository
baseurl=file:///media/AppStream
enabled=1
gpgcheck=0EOF
- [xxxx] – refer to your repo name
- name – refer to your repo discription
- baseurl=file:///<packages> – refer to your local mount point for package’s path. Note: for RHEL8.x there are 2 local repos package – BaseOS and AppStream
- enabled – refer to enable or disable this repository, thus 1=enable, 0=disable
- gpgcheck – refer to if we need to verify GPG keys or not, in case we do not need to enable it, so just set it to “0”
- Connect your RHEL 8.x DVD ISO image to your VM or insert RHEL 8.x DVD to DVD ROM if you have physical machine.
- Mount your RHEL 8.x disk to the mount point “/media” same as your local repository configuration
mount /dev/cdrom /media
ls -l /media/
- Finally, let test install some packages
Thanks!
Pingback: Install Docker Engine (CE) on RHEL 7.x - Systems & Network Administrator
Pingback: Install Docker Engine (CE) on RHEL 8.x - Systems & Network Administrator
Thanks for the helpful content. It is also my belief that mesothelioma cancer has an extremely long latency period, which means that signs and symptoms of the disease won’t emerge until finally 30 to 50 years after the first exposure to asbestos. Pleural mesothelioma, and that is the most common style and has effects on the area across the lungs, could potentially cause shortness of breath, upper body pains, and a persistent coughing, which may result in coughing up body.
You neglected something!
Pingback: Implement PostgreSQL 13 on RHEL 8.x - Systems & Network Administrator
Hello there, You’ve done an excellent job. I will definitely digg it and in my opinion recommend to my friends. I am sure they’ll be benefited from this web site.
Pingback: Implement NFS server on RHEL 8.x - Systems & Network Administrator
Pingback: Install NFS server on RHEL 8.x - Systems & Network Administrator
Pingback: Install PostgreSQL 13 on RHEL 8.x - Systems & Network Administrator
Pingback: Setup Docker Swarm on RHEL 8.x - Systems & Network Administrator
I would love to add that if you do not already have got an insurance policy otherwise you do not take part in any group insurance, you will well take advantage of seeking assistance from a health agent. Self-employed or people having medical conditions generally seek the help of one health insurance brokerage. Thanks for your blog post.
Excellent post. I was checking constantly this weblog and I’m inspired! Extremely helpful information specifically the closing part 🙂 I deal with such info much. I used to be seeking this certain info for a very lengthy time. Thank you and good luck.