Yum Server

RHEL 6 YUM Server and Client Configuration Server configuration steps

Yum server IP =
Yum server hostname = server1.example.com

Step 1: Insert the RHEL 6.5 DVD

[root@server Desktop]# cd /media/RHEL_6.5 x86_64 Disc 1/Packages/

Yum server required packages

[root@server Packages]# rpm -ivh vsftpd*
[root@server Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
[root@server Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
[root@server Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm

Step 2: Check the installed packages

[root@server1 Desktop]# rpm -qa vsftp*

[root@server1 Desktop]# rpm -qa deltarpm*

[root@server1 Desktop]# rpm -qa python-deltarpm*

[root@server1 Desktop]# rpm -qa createrepo*
Step 3 : FTP service start

[root@server Packages]# service vsftpd status

[root@server Packages]# service vsftpd start

[root@server Packages]# service vsftpd status

[root@server Packages]# chkconfig vsftpd on

Step 4: Copy the rhel6.5 dvd content

[root@server Packages]# cd

[root@server ~]# cp -rf /media/RHEL_6.5 x86_64 Disc 1/       /var/ftp/pub/

[root@server ~]# cd /var/ftp/pub/
[root@server pub]# ls
RHEL_6.1 x86_64 Disc 1

[root@server pub]# mv RHEL_6.1 x86_64 Disc 1/ rhel6.5

[root@server pub]# ls

Step 5: Single mode installation createrepo

[root@server ~]# createrepo -v /var/ftp/pub/

[root@server ~]# cd /var/ftp/pub/

[root@server pub]# ls
repodata  rhel6.5

Step 6: Group installation createrepo

[root@server repodata]# cp –rf /var/ftp/pub/rhel6.1/repodata/5819e9580b5a81a9eec9e2c6e91fc9992a7ccadaa3bcd5ecb2e87a8669eefcec-comps-rhel6-Server.xml      /var/ftp/pub/repodata/

[root@server ~]# createrepo -g /var/ftp/pub/repodata/5819e9580b5a81a9eec9e2c6e91fc9992a7ccadaa3bcd5ecb2e87a8669eefcec-comps-rhel6-Server.xml /var/ftp/pub/

Step 7 : Create the repo file.

[root@server ~]# vim /etc/yum.repos.d/server.repo
name=rhel6.1 yum server 64bit

[root@server ~]# yum clean all
[root@server ~]# yum makecache
[root@server ~]# yum list all
[root@server ~]# yum grouplist


Yum client repo configuring

Yum client IP =
Yum client hostname = client1.example.com

[root@client~]# vim /etc/yum.repos.d/client.repo
name=rhel6.1 yum client 64bit

[root@client~]# yum clean all
[root@server ~]# yum makecahe
[root@client~]# yum list all
[root@server ~]# yum grouplist

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s