Wednesday, September 5

YUM Server configuration steps


To solve the problem of dependency resolution and package location, volunteer programmers at Duke University developed Yellow dog Update, Modified or short for YUM. The system is based on repositories that hold RPMs and repodata file list. Yum server is the centralized server through which you can install all servers’ package. The data of Yum server is stored in /var/ftp/pub to install Yum server you should have minimum 7 GB  in /Var partition. If you don’t have var partition then you should create a new partition and mount with /var by using vi /etc/fstab.

LAB: - ---------------------------------------------------------------------------------------------

~] # create a drive like mkdir /popo
~] # mount /dev/cdrom /popo
~] # cd /popo/
Popo] # cd Server
Server] # rpm –ivh vsftpd (press tab key to complete the command)
Server] # rpm –ivh createrepo (press tab key to complete the command)
Server] # cp –rvf /popo/* /var/ftp/pub
Server] # cd /var/ftp/pub
Server] # cd Server
Server] # createrepo –v /var/ftp/pub/Server/
Server] # service vsftpd restart;chkconfig vsftpd on
Server] # service portmap restart;chkconfig portmap on
Server] # service iptables stop

*Note:- if you want to install software on server then use the following command. Open the file. And edit the file
~] # vi /etc/yum.repos.d/server.repo
[server]
Name=test
Baseurl=file:///var/ftp/pub/Server
Gpgcheck=0
Enabled=1
:wq

Now yum server is ready to install packages like
~] # yum list all      
~] # yum install packagename

yum clean all
yum list              ---------- show all the available package list
yum grouplist

To install CLI -
yum groupinstall “Virtualization”
yum install package-name
yum remove package-name

service vsftpd start
chkconfig –level 35 vsftpd on

YUM Clients configuration steps
vi /etc/yum.repos.d/server.repo
l  [Server]
l  name=test
l  baseurl=ftp://192.168.0.254/pub/Server
l  gpgcheck=0
l  enabled=1

No comments:

Post a Comment