What is YUM?

YUM stands for Yellow Dog Updater Modifier is a command line free and opensource tool for RPM (Redhat Package Manager) based Linux systems. yum server allow to user install, update, remove or search software packages on a systems.

YUM allows for user to install & updates the package and dependency management on RPM-based distributions. The Advanced Package Tool (APT) from Debian, YUM works with software repositories (collections of packages), which can be accessed locally or as well as globally.

History of YUM server.

The originally package manager, Yellowdog UPdater (YUP) was developed in 2001 by Dan Burcaw but YUM is developed by Seth Vidal & Michael Stenner at Duke University. The package file format is choose by yum is .rpm, and dnf is a rewrite version of yum.

How to configure YUM server by creating local repository.

Here by default yum is installed in RPM linux based operating system you can check it by using rpm -q yum as shown in figure.

rpm -q yum to check yum server is install or not.

Step 1:- Go to the default directory of yum

Default directory of yum server is /etc/yum.repos.d/ in this directory we have to create a file with .repo extension because it is a local repository file that contains the configuration of yum server. Now let’s create a file with vim which is a command line editor.

yum configuration file

[[email protected] ~]# vim /etc/yum.repos.d/my.repo
1. [repo-id]
2. name=my first repository
3. baseurl=file:///mnt/
4. gpgcheck=0
5. enabled=1

In above we create a file with the help of vim editor name my.repo.

  1. In first line under the square bracket without using any space you have to provide the ID whatever you want.
  2. Second line specify the name of your local repository.
  3. In third line is baseurl means source of your packages here you can also provide the link of your ftp server or http server but it have to contain iso image or source of packages. 
  4. In Fourth line gpg stands for GNU Privacy Guard, it will check whether your software is genuine or not, if you have gpgkey which is released by the community then you can change the value of gpgcheck.
  5. Last line will enable your repository.

Step 2:- Mount Your ISO image to fetch the packages.

[[email protected] ~]# mount -o loop /data/rhel-server-7.3-x86_64-dvd.iso /mnt/
mount: /dev/loop0 is write-protected, mounting read only

In above picture the mount command is use to mount the iso file here we have two path first contains the iso image another one is the mounting point.

Step 3:- Installing the packages using yum server

[[email protected] ~]# yum install vsftpd -y
[[email protected] ~]# yum remove vsftpd -y
[[email protected] ~]# yum update vsftpd -y
-y is used to resolve the dependencies of the package. 
[[email protected] ~]# yum search ftp


Yum server is the most important or very useful tool for any user to install the packages in RPM based Linux operating system. It resolved the dependencies automatically. It is very easy to configure and by default installed in Linux operating system.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: