Install CentOS-Base Repository: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 1: Line 1:
=Internal=
=Internal=
* [[Yum#Adding_a_Repository_Definition|yum]]
* [[Yum#Adding_a_Repository_Definition|yum | Adding a Repository Definition]]


=Overview=
=Overview=

Latest revision as of 19:09, 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