Pawan Bahuguna

Let's Learn and Share
Menu
  • Home
  • Books
    • Free Books
    • RHEL 7 Books
  • Practice Papers
  • Tools
    • Responsive Checker
  • Scripts
  • Contact
  • Privacy

Preparing for RHCSA or RHCE Certification? >>> Check RHEL 7 : RHCSA & RHCE Practice Papers

YES, Show Me Sample Papers.
Home
Linux
How to Configure Yum Repo using CD/DVD ROM in RHEL 7 / CentOS 7
Linux

How to Configure Yum Repo using CD/DVD ROM in RHEL 7 / CentOS 7

Pawan Bahuguna

Yum repository is very important and they help us in installing required RPM from vendor websites or even local repo. You will be surprised to know that a major part of RHEL 7 operating system DVD are RPM’s and if you make a local repo for configuring yum repo, it will take large space on your hard disk. So the solution is to configure yum repo using CD/DVD ROM and this tutorial focus on same.

 

So, if you have space crunch on your Linux machine, using YUM repo through CD/DVD ROM is a good option.

 

How to Configure Yum Repo using CD DVD ROM in RHEL 7 and CentOS 7

 

Configuring Yum Repo using CD/DVD Rom in RHEL 7/CentOS 7

 

This method is easy and good for students preparing for RHCSA and RHCE exam. Students can set up practice LAB and can do this configuration and this can practice on minimum hard disk requirement.

If you also want to see this tutorial in action, then please watch below the video. It will show you how easily you can configure Yum Repo using CR ROM in RHEL7 or CentOS 7.

Advertisements

 

 

1. Firstly, go to virtual machine setting and add your CD/DVD ROM, like shown below. You can do this for all the VM’s where you want to configure YUM repo through CD/DVD ROM.

 

VM setting for CD DVD ROM

 

2. Make a directory to mount your CD/DVD ROM and mount it under that DIR.

1
2
# mkdir /cdrom
# mount /dev/cdrom /cdrom

 

3. Now make configuration file for your YUM repo for installing packages from CD/DVD ROM. Use below commands. Delete all other repo files under folder /etc/yum.repos.d/

1
# vi /etc/yum.repos.d/cdrom.repo

Insert below lines on the file.

1
2
3
4
[cdrom]
name=CDROM Repo
baseurl=file:///cdrom
gpgcheck=0

 

4. Enter below command to check packages in repo.

1
# yum repolist

 

Now, your yum repo using CD/DVD ROM is configured, verify it by installing some packages.

Hope this tutorial on configuring yum repository with CD ROM will help you and if you have any problem or question regarding this, please use below comment form or directly send email to me. If you like the tutorial do not forget to share it.

Incoming search terms:

  • adf repo yum installs from centos cd
  • centos 7 /dev/sr0 mount repo
  • centos8 yum local cdrom checksum error
  • use cd as repository rhel 7
  • yum add cd repo
  • yum install from cd
  • yum iso error getting repository

Show your love by Sharing:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • More
  • Click to share on Telegram (Opens in new window)
  • Click to print (Opens in new window)
  • Click to email this to a friend (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Pocket (Opens in new window)
Share
Pinterest
Linkedin
Tweet
Google+
Stumble
Email
Prev Article
Next Article

Related Articles

Things You Should Know About Red Hat Enterprise Linux 8
If you are a Linux lover then here is an …

7 Things You Should Know About Red Hat Enterprise Linux 8

RHEL 7 Syllabus
From many days after we published our article on RHEL …

RHEL 7 Syllabus for RHCSA & RHCE

Tags:How To Linux Linux Basics Redhat Certification RHCE RHCSA

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 

Find a domain starting at $0.48

powered by Namecheap

Like Our Book

Like Our Book

Lets Connect

Subscribe Below & Get RHEL 7 EXAM TIPS eBook

GET eBOOK NOW!

We don’t spam! Read our privacy policy for more info.

Check your inbox or spam folder to confirm your subscription.

  • Popular
  • Recent

Pawan Bahuguna

Let's Learn and Share
Copyright © 2021 Pawan Bahuguna
Home | Privacy Policy | Contact
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.