Technowine

The Search Ends Here

How To Configure YUM Server/Yum Repository?

Posted by admin On June - 19 - 2009

linux-logo-250x300Sometimes 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


Bookmark and Share

Related articles
How to configure dhcp server on redhat/linux

How to make a nfs server

8 Responses to “How To Configure YUM Server/Yum Repository?”

  1. gaurav says:

    wowww..helped a lot.

  2. hitesh says:

    gud work.

  3. anuj says:

    wonderful post..will be aiting for a lot more like these.

  4. akash deep singh says:

    sachi sachi batao kisi ne try bhi kiya hai ya

    mast aise hi comments likhe ja rahe ho
    :P

  5. [...] articles How to configure yum server How to make a nfs [...]

  6. [...] How to configure yum server [...]

  7. [...] 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 [...]

  8. [...] how to configure yum server read this After configuring yum server install the squid rpm using #yum –y install [...]

Leave a Reply

Sponsors

About Me

Hello everyone, My name is Jaskiran Singh and I am currently pursuing B. Tech final year from Maharaja Agrasen Institute of technology.I am currently RHCT,RHCE,RHCSS certified.

Twitter

    Photos

    Activate the Flickrss plugin to see the image thumbnails!