Translate

Wednesday, 16 January 2013

YUM server configuration in Linux step by step

How to configure YUM server in Linux


First of all mount your Linux OS iso on your system. for this insert the DVD and follow the followig process

1) mount the DVD

#mount /dev/dvd /mnt

2)After mounting the DVD type df -hT command to check the status of DVD mount

#df -h

3)Than go to the directory.Check is there any file exist with name of .repo

#cd /etc/yum.repos.d
#ls -ltr


4)if not  create a file with name of .repo, here we are creating with name of yum.repo .

#touch yum.repo

5) edit the .repo file with fillowing details ( we are using minimum requirment)

[root@localhost yum.repos.d]# cat yum.repo
[Server]
name=server
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
#
Note : /mnt/Server : is location where rpm repository is available or created by default in OS iso it is present in "Server" direcotry

6) Than clean the existing setting and update it with new one
#yum clean all
#yum list
7) Finally you have Yum server to install your packages

#yum install package name




No comments:

Post a Comment