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.
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.
[[email protected] ~]# vim /etc/yum.repos.d/my.repo
2. name=my first repository
In above we create a file with the help of vim editor name my.repo.
- In first line under the square bracket without using any space you have to provide the ID whatever you want.
- Second line specify the name of your local repository.
- 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.
- 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.
- 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.