Configure YUM Repository from installation DVD
Configure YUM Repository
from installation DVD
Applies
to:
Oracle Enterprise Linux – Version: 7
Description:
Configuring YUM on OEL 7 from installation DVD
Solution:
Following
the steps to configure YUM from installation DVD:
After installation of Oracle Linux 7
configure YUM repository from installation DVD to install other RPMs.
Insert
installation DVD of OEL 7 into CD/DVD ROM.
#
umount /cdrom
#
mount /dev/sr0 /mnt
#
cd /etc/yum.repos.d/
Create
a new file:
#
vi rhel7dvd.repo
Add
the following details:
[cdrom]
name=CDROM Repo
baseurl=file:///mnt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Save the above file
Clear the related caches by
yum clean all
and subscription-manager:
# yum clean all
# subscription-manager clean
Check whether you can get the packages
list from the DVD repo:
# yum list – noplugin
If no problem, you will update:
# yum update – noplugin
# yum-config-manager --disable ol7_UEKR3
# yum-config-manager --disable ol7_latest
# yum update – noplugin
Your comments, especially which will help us
improve the functionality, will be greatly appreciatedJ
Comments
Post a Comment