Linux

Ready Use Commands

Setting date and time.

#date -s "2 OCT 2006 18:00:00"

mount like below.

Raw

# mkdir -p /mnt/disc

# mount /dev/sr0 /mnt/disc

media.repo file from the root of the mounted directory to /etc/yum.repos.d/ and set the permissions to 0644 or another similar permissions set:

Raw

# cp /mnt/disc/media.repo /etc/yum.repos.d/rhel7dvd.repo

# chmod 644 /etc/yum.repos.d/rhel7dvd.repo

changing the gpgcheck=0 setting to 1 and adding the following 3 lines

Raw

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

enabled=1

baseurl=file:///mnt/disc/

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Clear the cache and check whether you can get the packages list from the DVD repo

Raw

# yum clean all

# yum repolist enabled