Redhat -5
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
[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:
Post a Comment