Install CentOS-Base Repository: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * yum =Overview= Add a file named CentOS-Base.repo in <code>/etc/yum.repos.d</code>, with the following content: <syntaxhi...") |
|||
Line 24: | Line 24: | ||
gpgcheck=0 | gpgcheck=0 | ||
enabled=1 | enabled=1 | ||
</syntaxhighlight> | |||
Verify that the repository is correctly installed with: | |||
<syntaxhighlight lang='text'> | |||
yum repolist | |||
</syntaxhighlight> | |||
You should get something similar to: | |||
<syntaxhighlight lang='text'> | |||
repo id repo name status | |||
base/x86_64 CentOS 7Server – Base 10,072 | |||
extras/x86_64 CentOS 7Server – Extras 468 | |||
updates/x86_64 CentOS 7Server – Updates 1,932 | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 03:30, 18 April 2021
Internal
Overview
Add a file named CentOS-Base.repo in /etc/yum.repos.d
, with the following content:
[base]
name=CentOS $releasever – Base
baseurl=http://mirror.centos.org/centos/7/os/$basearch/
gpgcheck=0
enabled=1
[updates]
name=CentOS $releasever – Updates
baseurl=http://mirror.centos.org/centos/7/updates/$basearch/
gpgcheck=0
enabled=1
[extras]
name=CentOS $releasever – Extras
baseurl=http://mirror.centos.org/centos/7/extras/$basearch/
gpgcheck=0
enabled=1
Verify that the repository is correctly installed with:
yum repolist
You should get something similar to:
repo id repo name status
base/x86_64 CentOS 7Server – Base 10,072
extras/x86_64 CentOS 7Server – Extras 468
updates/x86_64 CentOS 7Server – Updates 1,932