Sometimes one may find himself in dependcy resolution problem while installing rpm packages on linux. Yum(Yellowdog update manager) server is a viable solution to it which holds the repository of linux packages and allows users to take packages .Client can easily install packages with simple commands using the yum installer .Which protocol does yum uses for the tranfer of packages from client to server side?
yum uses ftp protocol for the transfer of packages from client to server side.
Configuring the yum server:
Step1:)Mount the linux dvd/iso to some preexisting directory.
#mount /dev/cdrom /mnt/
Step2:) Intsall the vsftpd package and createrepo package:
#rpm –ivh vsftpd-2.0.5-12.el5
#rpm –ivh createrepo-0.4.11-3.el5
Step3:)Copy the entire DVD to /var/ftp/pub directory:
# cp -rvf /mnt/* /var/ftp/pub/
Step4:)Move to the pub direcorty:
# cd /var/ftp/pub/
#cp Server/repodata/comps-rhel5-server-core.xml Server
# cd Server/
#createrepo -vg comps-rhel5-server-core.xml /var ftp/pub/Server
Step5:)Restart vsftpd service
#service vsftpd restart
Step6:)To enable service start at the boot time type the following command:
#chkconfig vsftpd on
yum server has been established and can be used for downloading the packages.
Configuring the yum client:
Step1:)Create the yum repository file.
#vi /etc/yum.repos.d/ser.repo
enter the following configuration lines.
[Server]
name=any meaningful name
baseurl=ftp://192.168.1.1/pub/Server #enter the ip adress of the yum server
baseurl=file:///var/ftp/pub/Server #if both client and server are same machine
gpgcheck=0
save and exit.
Now you can easily download packages using the yum command:
For more options go to man yum.conf
Related articles
How to configure dhcp server on redhat/linux

wowww..helped a lot.
gud work.
wonderful post..will be aiting for a lot more like these.
sachi sachi batao kisi ne try bhi kiya hai ya
mast aise hi comments likhe ja rahe ho
[...] articles How to configure yum server How to make a nfs [...]
[...] How to configure yum server [...]
[...] If your system does not support yum installation you can use rpm utility for installation Or can configure yum server for your network. For configuring yum server read this [...]
[...] how to configure yum server read this After configuring yum server install the squid rpm using #yum –y install [...]