Mount cdrom
mount /dev/sr0 /mntCopy repos file from cdrom to the /etc/yum.repos.d directory and change the permission of the repos file.
cp /mnt/media.repo /etc/yum.repos.d/OEL6.3dvd.repochmod 644 /etc/yum.repos.d/OEL6.3dvd.repo
List the content ot the repos file
cat /etc/yum.repos.d/OEL6.3dvd.repo
Change gpgcheck to 1 and add following lines and verify the latest content of repos file
cat /etc/yum.repos.d/OEL6.3dvd.repo
baseurl=file:///mnt/gpgpkey=file:///mnt/RPM-GPG-KEY
Import public key defined on the gpgpkey's value
rpm --import /mnt/RPM-GPG-KEY
0 comments:
Post a Comment