During the try to install yum-utils, I ran into the problem that there seems to be no enabled repos. How can I enable yum-config-manager
, when I seem to need him to do so.
[root@spectrumscale ~]# yum install yum-utils
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>
Best Answer
To install specific package from specific repo you can use
Say there can be conflict between version, consider example of installing
mariadb 5.5.66
, in my case I got 2 repomariadb-5
andmariadb-10
, suppose if I wish to install frommariadb-5
repo then I useTo enable enable specific repo, you can use
Here is example on
Centos 7.7
To Disable
After Disabling
What it actually does ???
I got
MariaDB.repo
file at/etc/yum.repos.d/
, when you use--enable <repo-name>
or--disable <repo-name>
, it will change the value ofenabled =
to0
or1
, based on this,yum repolist
will show you repositories.