Wednesday, July 5, 2017

Create a Local Yum Repository

* Install below Packages

deltarpm-3.5-0.5.20090913git.el6.ppc64.rpm
python-deltarpm-3.5-0.5.20090913git.el6.ppc64.rpm
createrepo-0.9.8-4.el6.noarch.rpm


* Copy the RPM's from the CD & *.xml files in repodata folder                             
  to a Folder.


createrepo -g repomd.xml /pkgs

Create the repo file.

vi /etc/yum.repos.d/rhel6x.repo

----------------------------
[RHEL-Repository]
name=RHEL 6.x
baseurl=file:///pkgs
enabled=1
gpgcheck=0
------------------------------

yum clean all
Yum list
yum repolist

Ex -
Yum install ABC
Yum update ABC

------------------------------------------------------------------------------------
If you get the below error

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186

Do the following
rpm --import /etc/pki/rpm-gpg/RPM*
--------------------------------------------------------------


No comments:

Post a Comment