Search Engine

Wednesday, January 26, 2011

Configuring Yum Server in linux

Yum server is used for installing the Linux packages without dependencies.

Configure yum server in RHEL 5.3


Follow the following steps to configure the yum repository in Linux (RHEL 5.3)


STEP1.



Mount the RHEL 5.3 installer disk using


#mount /dev/cdrom /mnt/cdrom


Step2.



Create a directory under the /var as


#mkdir /var/ftp


Step3.



Copy the contain of disk as


#cp -rv /media/RHEL_5.3 i386 DVD/ /var/ftp/pub


Step4.



Edit the yum.repos.d as


#vim /etc/yum.repos.d/server.repo


Add the following in the opened yum.repos.d file


[server]
name=server repository
baseurl=file:///var/ftp/pub/Server
{Note: (Server the letter S is in upper case) do not add this line}
gpgcheck=0



[VT]
name=server repository
baseurl=file:///var/ftp/pub/VT
note: V and T is in upper case.
gpgcheck=0



To install packages using yum

# yum install firefox (where firefox is the name of package.)


Thanks

Dinesh Maurya

No comments:

Post a Comment