YUM Repository

YUM Repository Server Client Configuration:

[root@rhel6server ~]# iptables -L
[root@rhel6server ~]# iptables -F
[root@rhel6server ~]# service iptables save
[root@rhel6server ~]# service iptables restart
[root@localhost /]# mkdir -p /var/ftp/pub/yum/rhel6/repodata
[root@localhost /]# cp -arf /media/RHEL_6.1\ i386\ Disc\ 1/Packages/*.* /var/ftp/pub/yum/rhel6/repodata/

[root@localhost /]# cp /media/RHEL_6.1\ i386\ Disc\ 1/repodata/*comps*.xml /var/ftp/pub/yum/rhel6/repodata/comps.xml

[root@localhost /]# cd /var/ftp/pub/yum/rhel6/repodata/
[root@localhost repodata]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm

[root@localhost repodata]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm

[root@localhost repodata]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm

[root@localhost repodata]# cd ..
[root@localhost rhel6]# cd ..
/var/ftp/pub/yum/rhel6

[root@localhost rhel6]cd /var/ftp/pub
[root@localhost ]# createrepo -g repodata/comps.xml .

[root@localhost rhel6]# vi /etc/yum.repos.d/server.repo

[server]
name=rhel6
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=0

[root@localhost rhel6]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ll
total 8
-rw-r–r–. 1 root root 529 Apr 27 2011 rhel-source.repo
-rw-r–r–. 1 root root 79 Jul 16 17:28 server.repo

[root@localhost yum.repos.d]# rm -f rhel-source.repo

[root@rhel6server yum.repos.d]# yum clear all

[root@rhel6server yum.repos.d]# yum makecache

[root@rhel6server yum.repos.d]# yum grouplist

[root@rhel6server yum.repos.d]# yum list all

On Client:
[root@rhel6client ~]# vi /etc/yum.repos.d/client.repo
[client]
name=RHEL6CLIENT
baseurl=ftp://192.168.211.128/pub
enable=1
gpgcheck=0
[root@rhel6client yum.repos.d]# yum clean all
[root@rhel6client yum.repos.d]# yum makecache

[root@rhel6clientyum.repos.d]# yum grouplist

[root@rhel6client yum.repos.d]# yum list all
[root@rhel6client yum.repos.d]# yum list all
[root@rhel6client ~]# yum install vsftpd

OR—

[root@localhost Packages]# rpm -ivh vsftpd-2.2.2-6.el6_0.1.i686.rpm
warning: vsftpd-2.2.2-6.el6_0.1.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing… ########################################### [100%]
1:vsftpd ########################################### [100%]
[root@localhost Packages]# set history 100
[root@localhost Packages]# set history 10000
[root@localhost Packages]# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[root@localhost Packages]# chkconfig vsftpd on
[root@localhost Packages]#

[root@localhost Packages]# chkconfig –list vsftpd
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost Packages]#

[root@localhost Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning: deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing… ########################################### [100%]
1:deltarpm ########################################### [ 50%]
2:python-deltarpm ########################################### [100%]
[root@localhost Packages]#

[root@localhost Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing… ########################################### [100%]
1:createrepo ########################################### [100%]
[root@localhost Packages]#

[root@localhost ~]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm

[root@localhost ~]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm

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

[root@localhost ~]# cp -ivr /media/RHEL_6.1\ i386\ Disc\ 1/* /var/ftp/pub

[root@localhost ~]# vim /etc/yum.repos.d/vijay.repo
Add below contents in file
[VijayRepo]
name=this is my repo
baseurl=ftp://192.168.211.128/pub
enabled=1
gpgcheck=0

[root@localhost ~]# createrepo /var/ftp/pub

[root@localhost ~]# yum install system-config-kickstart