NB: This may break your install if they've been disabled for a reason e.g. on a bespoke Linux
If the yum repos containing the packages you need are disabled by default:
- Find the version of CentOS:
cat /etc/issue - List the installed repos:
yum repolist all - Enable the repository in the config file e.g.:
- Copy original:
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.orig - Edit file:
vi /etc/yum.repos.d/CentOS-Base.repo - Initiate INSERT mode: i
- Make necessary changes in the first repo:
Uncomment (remove #) from baseurl=http
Replace centos/$releasever with the version e.g. centos/7.2.1511
enabled=1 - Update the repositories:
yum update - Install yum-utils:yum install yum-utils
No comments:
Post a Comment