Yellowdog Updater Modifier sums as YUM and this is a PMT (Package Management Tool) for the RedHat Package Manager. YUM has been used for quite a long time. But, now in RHEL 8, we have a modest version of “yum” called “dnf” stands for Dandified YUM. Although both the commands work fine in Redhat 8 Linux but dnf is much faster, as some of the bugs have been removed.
Installing Yum to RHEL 8
Firstly Attach your iso image file…
Step 1: First move to the given location in RHEL 8 Linux CD or if you are using any virtual software then attach the iso or image file to the virtual machine and move to the location or folder below.
/run/media/root/RHEL-8-0-0-BaseOS-x86_64/BaseOS/Packages/
Step 2: Now open the terminal in the same folder where your rpm is present, and run the command given below.
Step 3: Here search for yum and you must get an rpm package, copy the name of the package.
Search yum
rpm -i yum-4.0.9.2-5.el8.noarch.rpm # replace the name of yum to the copied name
Install yum
Step 4: Now Type “yum” on the terminal and hit enter, if you see the output as bellow then yum has been installed.
Manually Configuration
Step 1: Go to
cd /etc/yum.repos.d/
yum repository directory
Here you will get some files with extension as .repo
. You could edit these files or can create a file and add the repository URL to it.
Step 2: Create a repository file
gedit myyum.repo
create file
Step 3: Type the code and Save. Before this, you must check your BaseOS CD-ROM name and replace it by RHEL-8–0–0-BaseOs-x86_64 and do the rest of it the same.
[reponame1] # this is repository name
baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-x86_64/AppStream #this is baseurl for the rhel 8 disk file
gpgcheck=0 #this is to allow installation without any security check and delays. [reponame2]
baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-x86_64/BaseOS
gpgcheck=0
repository code
check yum configure or not command → # yum repolist
yum install command → # yum install (package name)
Thank You For Reading…