We mount the CD-ROM
CODE
bash
mount -o loop /dev/sr0 /mediaWe copy the repository
CODE
bash
cp /media/media.repo /etc/yum.repos.d/rhel7dvd.repoWe configure the repository as follows:
CODE
config
# cat /etc/yum.repos.d/rhel7dvd.repo
[InstallMedia]
name=redhatcdrom
mediaid=1476915898.899142
metadata_expire=-1
gpgcheck=0
cost=500
enabled=1
baseurl=file:///media/
file:///media/cdrom/
file:///media/cdrecorder/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseWe clear the cache
BASH
bash
yum clean allWe install the necessary software
BASH
bash
yum --disablerepo=\* --enablerepo=InstallMedia install <PAQUETE>
Comments