UrbanPro
true

Learn Linux from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

LINUX - SETTING UP YUM REPOSITORY

A
Aseem .
05/10/2018 0 0

If we buy RHEL 7 the system by default will be connected to Red Hat Network (RHN).

All packages and updates will be installed from RHN. So RHN will be our main source and repository.

 

Since we have not purchased the official licensed version of Red Hat - and using a free version. It is by default not connected to any repository.

 

To create our own repository we need to update information in the system.

For that we need to go to directory,

 cd /etc/yum.repos.d

Create a file with extension .repo

 vim myrepo.repo

 

On this file we need three things,
  1. name - Name or a Label for the repository. We may give any name for repository.
  2. baseurl - The Base URL gives the location of repository to be used/picked.
    1. It can be file:// if local directory
    2. It can be http:// or ftp://
  3. gpgcheck- This is for file integrity checking. Set as 0 if you do not want integrity check. For live environment it is important to set gpgcheck keys carefully. Else for this local setup and testing 0 is ok to continue.

 

Example now,

 name=myRepo

 baseurl=file:///dump/repo/packages

 gpgcheck=0

Save and exit.

 

To verify we can do commands,

  1. yum repolist to give information about repo being used.
  2. Or, yum search ftp to search and verify output. Where ftp is package name as example.
0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

How to detect duplicate address manually in a network from Linux ?
Below script will help you to detect duplicate IP address in a subnet The key command is the arping command which will send out an ARP packet with DAD (duplicate address detection) If the return...

How To Start Shell Scripting?
Hi learners, I would like to share my knowledge in shell scripting: Every new Linux learners goal is to learn shell scripting. But only a few starts quickly writing the shell scripts.Why? The reasons...

UNDERSTANDING PROCESSES - RED HAT ENTERPRISE LINUX
What is a Process An instance of a program is called a Process. Any command that you give to your Linux machine starts a new process. It is possible that for the same program we have multiple processes. Types...
A

Aseem .

1 0
0

Looking for Linux Training?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Linux Classes?

The best tutors for Linux Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Linux with the Best Tutors

The best Tutors for Linux Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more