Installation and Configuration of Yum in Red Hat Linux 8
Last Updated :
21 Feb, 2023
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
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.
Open Terminal
Step 3: Here search for yum and you must get an rpm package, copy the name of the package.
Search yumrpm -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 below then yum has been installed.
Yum confirmation
Yum Can be Configured in 2 Ways 1. Manually 2. Using External Software/Program
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 codeUsing External Software
We can use external software or programs to configure yum for us. Two of these programs are epel and fusion. These create some repository files as we created manually and then add the baseurl for different software and programs for the respective version of Linux.
sudo dnf install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
installing fusion program
Configuring yum using external programs is the most suitable and used method in the community, as it has reduced the headache of dependencies( explained below). Why we really need YUM, DNF, APT-GET, and these kinds of software or programs? Let us take an example to understand this. Suppose a wedding is there and you are the person who has to organize everything in the marriage. There are lots of tasks like:
- venue decision,
- catering,
- decoration,
- Invitation card etc.
So all the work has to be done by you and only you, from invitation to decoration. If you want to send an invitation card then the first contact with the printing press and decide the color, shape, and all that, these things are called dependencies. To complete a task there is some more task to be done first. But what if, you hire someone to do this job. Then you just have to give the orders and the work will be done in no time, without worry. Similarly, yum, dnf and apt-get are hired software that does the work for the user, from installation to uninstalling the program and many more. This program has reduced the work of solving dependencies. Like if you want to install any software then these programs will install the most suitable software available according to your architecture. This is the big and short reason for the requirement of these kinds of programs.
Similar Reads
Install Android Studio on Red Hat Enterprise Linux Android Studio is the official Integrated Development Environment (IDE) for building Android apps. It provides a comprehensive set of tools to ease the development process. In this article we will discuss two methods to install Android Studio on a Red Hat Enterprise Linux (RHEL) system. Install Andr
4 min read
How to install Git on Redhat Linux 9? Git is a widely adopted version control system that enables developers to efficiently track changes in their codebase. Installing Git on Red Hat Linux 9 is a crucial first step for any developer looking to manage projects, collaborate with teams, and control version history seamlessly. Here, weâll w
4 min read
Install remmina on Red Hat Enterprise Linux (RHEL 9) Remmina is a popular open-source remote desktop client for Linux that allows users to connect to remote servers and desktops. In this article, we will guide you through the process of installing Remmina on Red Hat Enterprise Linux (RHEL), suitable for beginners. Step 1: Enable EPEL RepositoryRemmina
5 min read
How to Install and Remove Packages in Arch Linux Arch Linux, known for its simplicity, flexibility, and user-centric approach, offers a robust package management system that allows users to easily install, update, and remove software packages. Unlike some other Linux distributions that come pre-packaged with software management tools, Arch Linux f
5 min read
How to Install Visual Studio Code in Red Hat Linux In this post, we will see How to Install Visual Studio Code in Red Hat Linux. Visual Studio Code (VSCode) is an important, open-source law editor that has gained immense fashionability among inventors for its inflexibility, expansive extension library, and integrated development terrain( IDE) featur
5 min read
How to Install Cockpit on Linux CentOS 7? The cockpit is a free, open-source Linux Server Management Tool which provides you the facility to control your server using the mouse on the web-interface. The cockpit can be used to perform any server related task such as start containers, storage administration, and network configuration and much
3 min read