How to install YUM server
Steps:
1) mkdir /RHEL/ISO/ -p
2) copy the CD's or DVD in /RHEL/ISO directory
cp -rvf /media/RHEL_5.4\ i386\ DVD/* /RHEL/ISO/
3) cd /RHEL/ISO/
4) Install the Createrepo rpm
rpm -ivh Server/createrepo-0.4.11-3.el5.noarch.rpm
5) cd /RHEL
6) createrepo .
7) yum list
8) vi /etc/yum.repos.d/rhel-debuginfo.repo -->edit it as below
#[rhel-debuginfo]
[rhel]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///RHEL/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
#name=Red Hat Enterprise Linux $releasever - $basearch - Debug
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
#enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
9) yum list
10) gpgcheck should be "0" so
[root@Desktop]# grep -i gpg /etc/yum.conf
gpgcheck=0
11) yum install vsftpd*
1) mkdir /RHEL/ISO/ -p
2) copy the CD's or DVD in /RHEL/ISO directory
cp -rvf /media/RHEL_5.4\ i386\ DVD/* /RHEL/ISO/
3) cd /RHEL/ISO/
4) Install the Createrepo rpm
rpm -ivh Server/createrepo-0.4.11-3.el5.noarch.rpm
5) cd /RHEL
6) createrepo .
7) yum list
8) vi /etc/yum.repos.d/rhel-debuginfo.repo -->edit it as below
#[rhel-debuginfo]
[rhel]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///RHEL/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
#name=Red Hat Enterprise Linux $releasever - $basearch - Debug
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
#enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
9) yum list
10) gpgcheck should be "0" so
[root@Desktop]# grep -i gpg /etc/yum.conf
gpgcheck=0
11) yum install vsftpd*
Comments
Post a Comment