WEL COME...Tamilnet Live...தமிழ்நெட் லைவ் ..வருக வருக ...

Select Your Language

YUM CONFIGURATION


Redhat -5

YUM CLIENT CONFIGURATION (Redhat -5)




[root@client ~]# ping 192.168.10.1 --->check 
[root@client ~]# vim /etc/yum.repos.d/client.repo


[client]    ----> any name inside[]
name=redhat   -----> any name
baseurl=ftp://192.168.10.1/pub/Packages/  --->ip in this line is the ip of yum server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release  --->cp and paste this line from #vim /etc/yum.repos.d/rhel-source.repo 


[root@client ~]# yum clean all
[root@client ~]# yum list all


--------------------End-----------------------

 

Redhat -6

YUM  CONFIGURATION - (Redhat -6)

[root@rhel6 ~]# mount /dev/cdrom /mnt/
[root@rhel6 ~]# cd /mnt/Packages/
[root@rhel6 Packages]# rpm -ivh vsftpd-2.2.2-6.el6_0.1.i686.rpm 
[root@rhel6 Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm 
[root@rhel6 Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm 
[root@rhel6 Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm 
[root@rhel6 Packages]# cd ..
[root@rhel6 mnt]# cp -a Packages/ /var/ftp/pub/
[root@rhel6 mnt]# cd
[root@rhel6 ~]# createrepo -v /var/ftp/pub/Packages/
[root@rhel6 ~]# vim /etc/yum.repos.d/yum.repo


[server]  ----> any name inside[]
name=rhel6  ----> any name
baseurl=file:/var/ftp/pub/Packages/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release  ---> cp and paste this line from #vim /etc/yum.repos.d/rhel-source.repo 


[root@rhel6 ~]# yum clean all
[root@rhel6 ~]# yum list all

----------------------End----------------------------------

=====================================================================================

No comments: