Yum Server Setup Guide Line on Rhel 6 or Cent Os 6

******************************************************* 
For Server Site 
*******************************************************
*******************************************************


Command line 
*******************************************************
[root@server1~]#mount dev/cdrom /mnt
[root@server1~]#cd/mnt
[root@server1~]#cd s
erver
[root@server1~]#cd 
Packages
[root@server1~]#rpm -ivh delta tab 
[root@server1~]#rpm -ivh python-deltopm tab
[root@server1~]#rpm -ivh createrepo tab
[root@server1~]#rpm -ivh vsftpd tab
[root@server1~]#cp -r * /var/ftp/



Please wait.....
  

[root@server1~]#cd /etc/yum.repos.d
[root@server1~]#ls
[root@server1~]#rm -rf *
[root@server1~]#ls
[root@server1~]#vim yum.repo


*******************************************************

****************************************
Write it in this file
****************************************
{YUMSERVER]
name=yumserver (Server Name)
baseurl=ftp://192.168.169.21 (Computer or Server IP Address)

enabled=1
gpgcheck=0

***************************************
***************************************

Press Esc ( Buttom )
:x


Command line 
*******************************************************


[root@server1~]#creatrepo -v /var /ftp
[root@server1~]#service vsftpd restart

[root@server1~]#chkconfig vsftpd on
[root@server1~]#service network restart 
[root@server1~]#chkconfig network on

**************************************************************
End of the Master of Primary Server Setup 
**************************************************************






**************************************************** 
For Client Computer
****************************************************

****************************************************

[root@server1~]#rpm -ivh vsftpd tab
[root@server1~]#cp -r * /var/ftp/



Please wait.....  


[root@server1~]#cd /etc/yum.repos.d
[root@server1~]#ls
[root@server1~]#rm -rf *
[root@server1~]#ls
[root@server1~]#vim yum.repo


****************************************
Write it in this file
****************************************
{YUMSERVER]
name=yumserver (Server Name)
baseurl=ftp://192.168.169.21 (Primary Server IP Address)
enabled=1
gpgcheck=0

***************************************
***************************************

Press Esc ( Buttom )
:x

[root@server1~]#service vsftpd restart

[root@server1~]#chkconfig vsftpd on


**************************************************************
End of the Client Server Setup 
**************************************************************

Comments