lundi 1 février 2010

RedHat5 rpmdb-redhat

Place all the rpm packages in one local sub-directory (lets say RHEL5) which
does not have and sub-directorires and do;

rpm -ivh createrepo*.rpm
createrepo /RHEL5

Then in the /etc/yum.repos.d directory place a file named something like
RedHat-media.repo which reads like;

[rh5media]
name=Red Hat-$releasever - Media
baseurl=file:///RHEL5
gpgcheck=0
enabled=0

Then you can type stuff like:

yum install nom   - -enablerepo=rh5media

Aucun commentaire:

Enregistrer un commentaire