Here are the steps you need to create a local repo using the installation media for RHEL/CentOS.
insert cd in to
optical drive
mount /dev/cdrom
/media
cp -uRav /media/*
/repo
once complete modify
/etc/yum.repos.d/rhel.repo
vi
/etc/yum.repos.d/rhel.repo
insert the following
text into the file
[rhel]
name=rhel repo
baseurl=file:///repo
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
save changes and
exit
run the following
commands
yum clean all
yum list available
No comments:
Post a Comment