make a directory
# mkdir /rhel6/data
mount the cdrom/dvd
# mount /dev/cdrom /rhel6/data
install required rpm
# rpm -ivh /rhel6/data/Packages/deltarpm-3.5-0.5.2009git.el6.i686.rpm
#rpm -ivh /rhel6/data/Packages/Python-deltarpm-3.5-0.520090913git.el6.i686rpm
# rpm -ivh rpm -ivh /rhel6/data/Packages/createrepo-0.9.8.4.el6.noarch.rpm
# cd /rhel6/data
# createrepo --database /rhel6/
yum repo file
# vi /etc/yum.repos.d/test.repo
[local]
home=rhel6
baseurl = file:///rhel6
gpgcheck = 0
# yum list
# mkdir /rhel6/data
mount the cdrom/dvd
# mount /dev/cdrom /rhel6/data
install required rpm
# rpm -ivh /rhel6/data/Packages/deltarpm-3.5-0.5.2009git.el6.i686.rpm
#rpm -ivh /rhel6/data/Packages/Python-deltarpm-3.5-0.520090913git.el6.i686rpm
# rpm -ivh rpm -ivh /rhel6/data/Packages/createrepo-0.9.8.4.el6.noarch.rpm
# cd /rhel6/data
# createrepo --database /rhel6/
yum repo file
# vi /etc/yum.repos.d/test.repo
[local]
home=rhel6
baseurl = file:///rhel6
gpgcheck = 0
# yum list
No comments:
Post a Comment
Thanks for the comment