Install createrepo rpm
[root@rhel01 rpms]# pwd
/var/www/html/yum/rpms
[root@rhel01 rpms]# createrepo `pwd`
-bash: createrepo: command not found
[root@rhel01 rpms]# ls create*
createrepo-0.9.8-4.el6.noarch.rpm
[root@rhel01 rpms]# 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
error: Failed dependencies:
deltarpm is needed by createrepo-0.9.8-4.el6.noarch
python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch
[root@rhel01 rpms]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm deltarpm* python-deltarpm*
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:deltarpm ########################################### [ 33%]
2:python-deltarpm ########################################### [ 67%]
3:createrepo ########################################### [100%]
[root@rhel01 rpms]# createrepo `pwd`
113/3431 - redhat-menus-14.0.0-3.el6.noarch.rpm
iso-8859-1 encoding on Ville Skyttä- 2.8.2-2
1978/3431 - yum-plugin-versionlock-1.1.26-11.el6.noarch.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Configure /etc/yum.conf
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.dse-local]
[base-local]
name=RHEL6 $releasever - $basearch
failovermethod=priority
baseurl=http://192.168.1.200/yum/rpms
enabled=1
gpgcheck=0
HI why should you copy the rpms to the harddisk i just add to the yum conf a new repo with the dvd volume path and then it access directly instead of copying to the harddrive which could take longer
ReplyDelete