yum-config-manager

yum-config-manager(1)                                  yum-config-manager(1)

NAME         top

       yum-config-manager - manage yum configuration options and yum reposi‐
       tories

SYNOPSIS         top

       yum-config-manager [options] [section ...]

DESCRIPTION         top

       yum-config-manager is a program that can manage main yum
       configuration options, toggle which repositories are enabled or
       disabled, and add new repositories.

       Unless --add-repo is used, the program will output the current
       configuration of the selected sections, and optionally save it back
       to the corresponding files.

       By default, if no positional arguments are specified, the program
       will select the [main] section and each enabled repository.  You can
       override this by specifying your own list of sections as arguments
       (these may also include disabled repositories).  A section can either
       be main or a repoid.

OPTIONS         top

       -h, --help
              Display a help message, and then quit.

       --setopt=option=value
              Set any config option in yum config or repo files. For options
              in the global config just use: --setopt=option=value for repo
              options use: --setopt=repoid.option=value.  The latter form
              accepts wildcards in repoid that will be expanded to the
              selected sections.  If repoid contains no wildcard, it will
              automatically be selected; this is useful if you are
              addressing a disabled repo, in which case you don't have to
              additionally pass it as an argument.

       --save Save the current options (useful with --setopt).

       --enable
              Enable the specified repos (automatically saves). To enable
              all repositories run "yum-config-manager --enable \*".

       --disable
              Disable the specified repos (automatically saves). To disable
              all repositories run "yum-config-manager --disable \*".

       --add-repo=ADDREPO
              Add (and enable) the repo from the specified file or url.

ADDITIONAL OPTIONS         top

       Yum-config-manager inherits all other options from yum. See the
       yum(8) man page for more information.

EXAMPLES         top

       Show the configuration of [main] and the repos foo and bar:

              yum-config-manager main foo bar

       Enable the repos foo and bar:

              yum-config-manager --enable foo bar

       Change a global option:

              yum-config-manager --setopt=installonly_limit=5 --save

       Change a repo option of the repo foo (works even if foo is disabled):

              yum-config-manager --setopt=foo.skip_if_unavailable=1 --save

       Change a repo option of more repos at once:

              yum-config-manager --setopt=\*.skip_if_unavailable=1 --save
              foo bar baz

       Change a repo option of all the enabled repos:

              yum-config-manager --setopt=\*.skip_if_unavailable=1 --save

       Change a repo option of all the configured (that is, enabled and
       disabled) repos:

              yum-config-manager --setopt=\*.skip_if_unavailable=1 --save \*

SEE ALSO         top

       yum.conf(5)
       http://yum.baseurl.org/

AUTHORS         top

       See the Authors file included with this program.

COLOPHON         top

       This page is part of the yum-utils (Yum Package Manager utilities)
       project.  Information about the project can be found at 
       〈http://yum.baseurl.org/〉.  If you have a bug report for this manual
       page, see 〈http://yum.baseurl.org/report〉.  This page was obtained
       from the project's upstream Git repository
       〈git://yum.baseurl.org/yum-utils.git〉 on 2019-03-06.  (At that time,
       the date of the most recent commit that was found in the repository
       was 2017-10-30.)  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-to-
       date source for the page, or you have corrections or improvements to
       the information in this COLOPHON (which is not part of the original
       manual page), send a mail to man-pages@man7.org
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值