how to configure yum in RHEL-8
To configure yum in RHEL-8 follow the below steps-
make the directory named as- /dvd
mkdir /dvd
Then mount the following-
mount /dev/cdrom /dvd
In next step go to the following directory-
cd /etc/yum.repos.d
Now make a file named as dvd1.repo and write the following commands in it-
vi dvd1.repo
[dvd]
baseurl = file:///dvd/AppStream
gpgcheck=0
In the next step make the file dvd2.repo and add the following commands-
vi dvd2.repo
[Dvd2]
baseurl = file:///dvd/BaseOS
gpgcheck = 0
Now run the command-
yum repolist
now go the file as given below-
vi /etc/rc.d/rc.local
and add the following command in it-
mount /dev/cdrom /dvd
After that restart the system and run yum commands , because yum is now configured.
Example- yum install httpd
DevOps Engineer
4 年Very helpful
Software Engineer @ FinSpectra | Platform Developer-1 Certified Salesforce Developer | Salesforce QA Tester
4 年Great Saket