Use the yum-config-manager command in linux to manage yum configuration options and repositories
This article mainly introduces the use of yum-config-manager commands in linux to manage yum configuration options and repositories, which is very detailed and has a certain reference value. Interested friends must read it!
Yum-config-manager is a program that manages major yum configuration options, switches enabled or disabled repositories, and adds new repositories.
Syntax format: yum-config-manager [parameters]
Common parameters:
Reference example
Displays the configuration of main and repos foo and bar:
[root@linuxcool ~] # yum-config-manager main foo bar
Use-- add-repo to quickly add a Yum source:
[root@linuxcool ~] # yum-config-manager-- add-repo http://mirrors.aliyun.com/repo/Centos-7.repo
Use-- enable to display enabled software repositories:
[root@linuxcool ~] # yum-config-manager-enable above are all the contents of managing yum configuration options and repositories using the yum-config-manager command in linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!