What is YUM ?
YUM is a tool for automating package maintenance for a network of workstations running any operating system that use the Red Hat Package Management (RPM) system for distributing packaged tools and applications. It is derived from YUP, an automated package updater originally developed for Yellowdog Linux, hence its name: yum is "Yellowdog Updater, Modified".
YUM stands for Yellow dog Updater, Modified because it is based on YUP, the Yellow dog Updater. Yellow Dog is a version of Linux for the Power Architecture hardware. YUP, and later YUM, were written by the Linux community as a way to maintain an RPM-based system.
YUP was originally written and maintained by Dan Burcaw, Bryan Stillwelll, Stephen Edie, and Troy Bengerdes of Yellowdog Linux ( an RPM-based Linux distribution that runs on Apple Macintoshes of various generation).
YUM was originally written by Seth Vidal and Michael Stenner, both at Duke University at the time. Since then both Michael and Seth have moved on, Seth to working for Red Hat, where he remians the dominant force behind yum developement and maintenance.
It is important to note that yum is an open source GPL project and that many people have contributed code, ideas, bug fixes and documentation.
YUM is a Gnu Public License (GPL) tool; it is freely available and can be used, modified, or redistributed without any fee or royalty provided that the terms of its associated license are followed.
Advantages of YUM :-
Automatic resolution of software dependencies. If a package installation or upgrade request is made and requires the installation or upgrade of additional packages, YUM can list these dependdencies and prompt the user to install or upgrade them.
Other RHEL 6 Videos :-
Click here to load RHEL 6 Videos
My youtube channel :-
Click here to open My Solutions
URL :- https://www.youtube.com/user/MySolutions7/
Yum Server Practical Videos :-
Part 1 :-
Part 2 :-
Part 3 :-
Part 4 :-
YUM Server Configuration Lab :-
YUM Server step by step configurations :-
STEP 1 :- Insert RHEL 6 installation media in your computer and mount it into your PC.
to mount RHEL 6 DVD into your PC, execute the following command
# mount /dev/cdrom /mnt
Now go to "/mnt/" directory and check it.
to go to "/mnt/" directory, use the following command
cd /mnt
to check the content of "/mnt/" directory, use the following command
ls
STEP 2 :- Go to "/mnt/Server/Packages/" directory and installed the required packages for YUM Server.
following packages are required for YUM Server :
vsftpd-2.2.2-6.el6.x86_64.rpm
deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
createrepo-0.9.8-4.el6.noarch.rpm
to go to "/mnt/Server/Packages/", use the following command
# cd /mnt/Server/Packages/
to install the above packages, execute the following command
# rpm -ivh vsftpd-2.2.2-6.el6.x86_64.rpm
# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
STEP 3 :- In the next step start the FTP Service.
to check the status of FTP Service execute the following command
# service vsftpd status
to start the FTP Service execute the following command
# service vsftpd start
to permanently start FTP Service execute the following command
# chkconfig vsftpd on
STEP 4 :- Now go to "/var/ftp/pub/" directory and then create a directory in it named "IT".
to go to "/var/ftp/pub/", execute the following command
# cd /var/ftp/pub/
to create a directory named IT, execute the following command
# mkdir IT
STEP 5 :- Copy the entire RHEL 6 DVD in the "/var/ftp/pub/IT/" directory.
to copy the entire RHEL 6 DVD in the "/var/ftp/pub/IT/", use the following command
# cp -rf /mnt/* /var/ftp/pub/IT/
Note :- I used here "/mnt/" as source location, because i mounted the RHEL 6 DVD into "/mnt/" directory in the STEP 1.
STEP 6 :- Create the reposatory of RPM Packages of "/var/ftp/pub/IT/" directory.
to create the reposatory of RPM Packages, use the following command
# createrepo -v /var/ftp/pub/IT/
STEP 7 :- In the next step create the configuration file of YUM Server in "/etc/yum.repos.d/" directory and add the following line in it.
[server]
name=YUM-Server
baseurl=ftp://172.18.209.9/pub/IT
enabled=1
gpgcheck=0
Note :- where 172.18.209.9 is the IP address of your PC on which you configure YUM-Server.
to create the configuration file of YUM Server in "/etc/yum.repos.d/", use the following command
# vim /etc/yum.repos.d/server.repo
to add the above line to this file, press "i" or "insert" key on your keyboard.
Now add the above line to this file and save it
to save the file, press "ESC" key---------->type ":wq!" ---------->and then press "Enter" key.
STEP 8 :- Now install any packages using YUM-Server.
to install any packages using YUM-Server, execute the following command
# yum install <package-name>
In this example i am going to install "httpd" packages, to install "httpd" package, use the following command
# yum install httpd*
Note :- To install all the packages of "httpd" , you have to use * with your package name.
YUM Client Configuration :-
Back to RHEL 6 Tutorials
No comments:
Post a Comment