Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the yum-config-manager command in linux to manage yum configuration options and repositories

Shulou Source: shulou.com Published: 2022-06-02 18:07:09 10月01日 Update

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!

Tags: Storage configuration management commands content parameters references warehouses values interests examples guys partners common use more formats knowledge programs articles industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB macOS Huawei Xiaomi vpn