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
How to Install and Use Enlightenment in Linux
Enlightenment is an open-source desktop environment. It helps to customize the Linux window of the user. It usually happens that users get boarded with their desktop theme. They need to change the theme as per their choices. For this purpose, the Enlightenment software is built up. Enlightenment is
5 min read
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 and Configure Apache Subversion(SVN) In Linux?
Apache Subversion (SVN), is a version control system like Git. it is distributed under an open-source license. SVN was created by CollabNet Inc. but now it is developed as a project of the Apache Software Foundation. Downloading and Installing Apache SVN Apache Subversion(SVN) can be easily download
2 min read
How to Install and Configure Docker in Ubuntu?
Docker is a platform and service-based product that uses OS-level virtualization to deliver software in packages known as containers. Containers are separated from one another and bundle their software, libraries, and configuration files. Docker is written in the Go language. Docker can be installed
6 min read
How to Install Discord in Linux (3 Easy Ways)
Discord is a VoIP instant messaging and digital distribution platform designed for connecting communities. Over time, Discord gained a lot of popularity, it was first created for gamers worldwide, but then it gained popularity in other communities also and is considered much better than other platfo
5 min read
How to Install Hadoop in Linux?
Hadoop is a framework written in Java for running applications on a large cluster of community hardware. It is similar to the Google file system. In order to install Hadoop, we need java first so first, we install java in our Ubuntu. Step 1: Open your terminal and first check whether your system is
7 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 CLion IDE on Arch-based Linux Distributions (Manjaro)
CLion (pronounced âSea Lionâ) is a cross-platform integrated development environment (IDE) developed by Jetbrains and is available as a free community edition for students and a commercial edition. It is used for developing C++ programs and is one of the most popular C++ IDE on the market. A number
2 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