Install CentOS-Base Repository

From NovaOrdis Knowledge Base
Revision as of 19:09, 18 April 2021 by Ovidiu (talk | contribs) (→‎Internal)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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