how to configure yum in RHEL-8

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

No alt text provided for this image

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

No alt text provided for this image

In the next step make the file dvd2.repo and add the following commands-

vi dvd2.repo

[Dvd2]

baseurl = file:///dvd/BaseOS

gpgcheck = 0

No alt text provided for this image

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

Very helpful

Prabhjeet Singh

Software Engineer @ FinSpectra | Platform Developer-1 Certified Salesforce Developer | Salesforce QA Tester

4 年

Great Saket

要查看或添加评论,请登录

Saket Sharma的更多文章

  • AI on AWS Workshop

    AI on AWS Workshop

    The key points of AI on AWS workshop are given as: #day1 - how to make cloud intelligent and allow to read the image -…

  • Git and GitHub workshop

    Git and GitHub workshop

    The workshop was all about the deep concepts of the Git and Github , this workshop was delivered by the world record…

  • Wordpress with RDS service

    Wordpress with RDS service

    ARTH - Task 18 ??????? Task Description?? ?? Create an AWS EC2 instance ?? Configure the instance with Apache…

    2 条评论
  • Chat program using UDP(with and without multi-threading)

    Chat program using UDP(with and without multi-threading)

    ARTH - Task 17 ??????? Task Description?? ??-17.1 Create your own Chat Servers, and establish a network to transfer…

  • ARTH Task 14.3

    ARTH Task 14.3

    ARTH - Task 14 ??????? Task Description?? ?? 14.3 Create an Ansible Playbook which will dynamically load the variable…

  • Retrieving new container IP

    Retrieving new container IP

    ARTH - Task 14 ??????? Task Description?? ?? 14.2 Further in ARTH - Task 10 have to create an Ansible playbook that…

  • Task 12.2

    Task 12.2

    ARTH ARTH - Task 12 ????? Task Description ?? 12.2 Configure the same setup as 12.

  • Expert session: Ansible tower

    Expert session: Ansible tower

    First of all I would like to thank my mentor Vimal daga sir and Preeti maam who have arranged Industry Expert Practical…

  • What is kubernetes and its case study : Nokia

    What is kubernetes and its case study : Nokia

    What is kubernetes? Kubernetes is the container orchestrator that was developed at Google which has been donated to the…

  • ping google but not able to ping Facebook from same system

    ping google but not able to ping Facebook from same system

    This task is very interesting , the task details is given as- ARTH - Task 13 ??????? Task Description?? ?? Create a…

社区洞察

其他会员也浏览了