how_to_set_the_centos-base.repo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
how_to_set_the_centos-base.repo [2023/03/09 22:35] – external edit 127.0.0.1 | how_to_set_the_centos-base.repo [2023/11/01 23:46] – walkeradmin | ||
---|---|---|---|
Line 50: | Line 50: | ||
\\ | \\ | ||
\\ | \\ | ||
- | <sxh [text][; options for SyntaxHighlighter]> | + | <file> |
# CentOS-Base.repo | # CentOS-Base.repo | ||
# | # | ||
Line 93: | Line 93: | ||
enabled=0 | enabled=0 | ||
gpgkey=file:/// | gpgkey=file:/// | ||
- | </sxh> | + | </file> |
+ | \\ | ||
+ | To activate the repos you need to do run the following command: | ||
+ | \\ | ||
+ | \\ | ||
+ | Yum Update | ||
+ | \\ | ||
+ | \\ | ||
+ | You should now be able to install default repository tools like <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | Below is an example output after doing this on a new unit. | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | ====== How to set the CentOS-Base.repo ====== | ||
+ | <color darkorange> | ||
+ | <color darkorange> | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Because the minimal install of CentOS is generally what we use, the base repos are not present, this is not an issue until you need certain features (normally when fault finding) like: | ||
+ | \\ | ||
+ | htop | ||
+ | nload | ||
+ | tcpdump | ||
+ | \\ | ||
+ | To install these you need to setup the base (and possibly EPEL) repositories, | ||
+ | \\ | ||
+ | \\ | ||
+ | To get the base repositories added, you need to navigate to the following location (this is for CentOS, other distributions may differ). | ||
+ | \\ | ||
+ | \\ | ||
+ | / | ||
+ | \\ | ||
+ | If this folder is empty then you have no repositories set, you might see other repositories (like epel) but not the base ones. | ||
+ | \\ | ||
+ | \\ | ||
+ | N<color # | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | </ | ||
+ | Create a new file called <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | If the <color # | ||
+ | marked out <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | # CentOS-Base.repo | ||
+ | # | ||
+ | # The mirror system uses the connecting IP address of the client and the | ||
+ | # update status of each mirror to pick mirrors that are updated to and | ||
+ | # geographically close to the client. | ||
+ | # unless you are manually picking other mirrors. | ||
+ | # | ||
+ | # If the mirrorlist= does not work for you, as a fall back you can try the | ||
+ | # remarked out baseurl= line instead. | ||
+ | # | ||
+ | # | ||
+ | [base] | ||
+ | name=CentOS-$releasever - Base | ||
+ | mirrorlist=http:// | ||
+ | # | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | #released updates | ||
+ | |||
+ | [updates] | ||
+ | name=CentOS-$releasever - Updates | ||
+ | mirrorlist=http:// | ||
+ | # | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | |||
+ | #additional packages that may be useful | ||
+ | [extras] | ||
+ | name=CentOS-$releasever - Extras | ||
+ | mirrorlist=http:// | ||
+ | # | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | |||
+ | #additional packages that extend functionality of existing packages | ||
+ | [centosplus] | ||
+ | name=CentOS-$releasever - Plus | ||
+ | mirrorlist=http:// | ||
+ | # | ||
+ | gpgcheck=1 | ||
+ | enabled=0 | ||
+ | gpgkey=file:/// | ||
+ | </file> | ||
\\ | \\ | ||
To activate the repos you need to do run the following command: | To activate the repos you need to do run the following command: | ||
Line 2422: | Line 2531: | ||
Complete! | Complete! | ||
- | </sxh> | + | </file> |
how_to_set_the_centos-base.repo.txt · Last modified: 2023/11/01 23:50 by walkeradmin