Yum server configuration

 

Yum server configuration

 Yum (Repository) server:

Yum – Yellow dog update manager
Yum is a repository server. That is it contains a bulk of RPM and we can install it through out the network. If you install some package using yum it will take care of the dependency packages so let’s see how to configure YUM

Configuration:

Step:1 Install two packages

(1). Createrepo.rpm and
(2). Vsftpd.rpm

Step:2 Copy the rpm files from the CD, which is present in Server folder in CD to Desktop in a folder

Step:3 Copy the server folder to
#/var/ftp/pub/Server

Step:4 createrepo -v /var/ftp/pub/Server

Which will create a folder called repodate with three files
1)fileslist.xmlgz,
2)other.xml.gz and
3)primary.xml.gz

Step:5 Go to the configuration files of Yum.

#/etc/yum.repos.d/rhel-debuginfo.rpm

[Server]
name = Yum Server
baseurl = ftp://192.168.32.3/pub/Server
enable = 1
gpgcheck = 0

(esc):x

Step:6 #service vsftpd restart
#yum clean all
#yum update
#yum list all —–> Command to verify what are the rpm’s available in yum

#yum install samba* —–> Command to install samba package using yum.

Yum Client side configuration:

If you want your yum configuration work across the local network (or) in some client machine.
Go to client machine

Step:1 Install vsftpd.rpm and creterepo in the system.

Step:2 Go to configuration file
#/etc/yum.repo.drhel-debuginfo.rpm

[Server]
name = Yumserver
baseurl = ftp://192.168.32.2/pub/Server
##This 192.168.32.2 is Server IP address##
enable = 1
gpgcheck = 0
(esc):x

 




Leave a Reply

Your email address will not be published. Required fields are marked *