Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday, March 29, 2014

RHEL 6 YUM Server and Client Configuration

Server configuration steps
 
Yum server IP = 192.168.1.100
Yum server hostname = server1.example.com




Should be flush the iptables and restart the network service
 
iptables -L
iptables -F
service iptables save
service iptables restart
service network restart
Step 1: Insert the RHEL 6 CD

[root@server Desktop]# cd /media/RHEL_6.1\ 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*
vsftpd-2.2.2-6.el6_0.1.x86_64

[root@server1 Desktop]# rpm -qa deltarpm*
deltarpm-3.5-0.5.20090913git.el6.x86_64

[root@server1 Desktop]# rpm -qa python-deltarpm*
python-deltarpm-3.5-0.5.20090913git.el6.x86_64

[root@server1 Desktop]# rpm -qa createrepo*
createrepo-0.9.8-4.el6.noarch
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 dvd content

[root@server Packages]# cd
[root@server ~]# cp -rf /media/RHEL_6.1\ 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.1
[root@server pub]# ls
rhel6.1
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.1
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
[server]
name=rhel6.1 yum server 64bit
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=0
   
[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 = 192.168.1.101
Yum client hostname = client1.example.com

[root@client~]# vim /etc/yum.repos.d/client.repo
[client]
name=rhel6.1 yum client 64bit
enabled=1
gpgcheck=0
[root@client~]# yum clean all
[root@server ~]# yum makecahe
[root@client~]# yum list all
[root@server ~]# yum grouplist

No comments:

Post a Comment