Repositories Overview
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Transcription
00:00
>> Hey there Cybrarians and welcome back to
00:00
the Linux Plus course here at Cybrary.
00:00
I'm your instructor Rob Goelz.
00:00
In today's lesson we're going to have
00:00
an overview of repositories.
00:00
Now upon completion of today's lesson,
00:00
you're going to be able to understand what the purpose
00:00
of a software repository is in Linux.
00:00
We're going to find where
00:00
repository files live in CentOS and Ubuntu.
00:00
You're going to understand a little bit more about
00:00
how a repository file is configured.
00:00
Most Linux packages exist
00:00
in something called a repository.
00:00
That really is just a server
00:00
that holds a collection of software,
00:00
like a grocery store holds a collection of food.
00:00
A Linux system gets the application and
00:00
software updates from the repository server.
00:00
But now you might be asking,
00:00
how does Linux system know where
00:00
these repositories and repository servers are?
00:00
They use a repository file.
00:00
In Red Hat, or Red Hat-based distros like CentOS,
00:00
they keep a repository file or
00:00
files in the etc/yum/repos.d directory.
00:00
Debian-based distros like Ubuntu
00:00
only have one file though,
00:00
and that is found in etc/apt/sources.list.
00:00
Now when you're looking at the structure of
00:00
a repository file in CentOS,
00:00
you have to be aware of seven different sections.
00:00
This comes up particularly if you're getting
00:00
into more advanced certification exams or Red Hat,
00:00
you'll find that you're
00:00
spending some time configuring these.
00:00
Or if you're doing system administration
00:00
on Red Hat-based systems,
00:00
you're going to end up working in a repository file.
00:00
The first thing you'll see is a section name and
00:00
that is the name of the repository.
00:00
It's enclosed in brackets.
00:00
In here we see that this is actually the base OS.
00:00
The next thing we see is the descriptive name
00:00
of the repository.
00:00
Then you're going to have a mirror list or URL,
00:00
and that's just where you can actually find
00:00
the repository out there on the Internet,
00:00
a mirror list will be a list of
00:00
different repositories that the system can use,
00:00
ones download go to the next list in the mirror.
00:00
You can see here that the base URL
00:00
is commented out in favor of
00:00
a mirror list so that
00:00
there are a lot of different lists that it can hit.
00:00
Right below we see GPG and GPG check equals one,
00:00
and what that says is that the system is going to
00:00
check the GPG signature of the repo.
00:00
It's using that to ensure that
00:00
>> the repository is correct,
00:00
>> it has been signed by
00:00
the people that create the software and when it's set
00:00
to GPG check you also have the GPG key so
00:00
that you can verify that that is correct.
00:00
We have a path to the GPG
00:00
or GPG key file right here at the bottom.
00:00
Finally, we have an enabled field,
00:00
and that determines whether or
00:00
not the repo is going to be
00:00
used as actively used on the system.
00:00
If it's set to one,
00:00
the repo will be used.
00:00
But if it's set to zero, it'll be disabled,
00:00
so one for enabled, zero for disabled.
00:00
Now, for Ubuntu,
00:00
it's generally just sufficient to know
00:00
that Ubuntu has etc/app/sources.list,
00:00
that's where it configures all of its repos,
00:00
that's really all you need to know for Linux Plus exam.
00:00
But a little bit more detail,
00:00
each repo is going to have
00:00
its own line in this file and there are four main repos.
00:00
The main repo is for canonical supported software.
00:00
The makers of Ubuntu,
00:00
this is their software.
00:00
Universe is going to be community maintain software.
00:00
This is going to be things that are just
00:00
out there in the community that you can use,
00:00
but are officially supported by canonical.
00:00
Restricted as proprietary drivers.
00:00
Things are just used for devices.
00:00
Then multiverse software that
00:00
is restricted by copyright or legal issues,
00:00
so you may be able to use these if
00:00
you have the appropriate copyrights in place.
00:00
But with that, in this lesson,
00:00
we covered software repositories in Linux.
00:00
We also talked about the CentOS and
00:00
Ubuntu repo file locations,
00:00
and we talked a little bit about the structure of
00:00
repo files in CentOS and Ubuntu.
00:00
Thanks so much for being here and I look
00:00
forward to seeing you in the next lesson.
Up Next
Instructed By
Similar Content