Blame doc/config_manager.rst

Packit Service 27f74b
..
Packit Service 27f74b
  Copyright (C) 2015  Red Hat, Inc.
Packit Service 27f74b
Packit Service 27f74b
  This copyrighted material is made available to anyone wishing to use,
Packit Service 27f74b
  modify, copy, or redistribute it subject to the terms and conditions of
Packit Service 27f74b
  the GNU General Public License v.2, or (at your option) any later version.
Packit Service 27f74b
  This program is distributed in the hope that it will be useful, but WITHOUT
Packit Service 27f74b
  ANY WARRANTY expressed or implied, including the implied warranties of
Packit Service 27f74b
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
Packit Service 27f74b
  Public License for more details.  You should have received a copy of the
Packit Service 27f74b
  GNU General Public License along with this program; if not, write to the
Packit Service 27f74b
  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Packit Service 27f74b
  02110-1301, USA.  Any Red Hat trademarks that are incorporated in the
Packit Service 27f74b
  source code or documentation are not subject to the GNU General Public
Packit Service 27f74b
  License and may only be used or replicated with the express permission of
Packit Service 27f74b
  Red Hat, Inc.
Packit Service 27f74b
Packit Service 27f74b
==========================
Packit Service 27f74b
 DNF config-manager Plugin
Packit Service 27f74b
==========================
Packit Service 27f74b
Packit Service 27f74b
Manage main and repository DNF configuration options, toggle which
Packit Service 27f74b
repositories are enabled or disabled, and add new repositories.
Packit Service 27f74b
Packit Service 27f74b
--------
Packit Service 27f74b
Synopsis
Packit Service 27f74b
--------
Packit Service 27f74b
Packit Service 27f74b
``dnf config-manager [options] <section>...``
Packit Service 27f74b
Packit Service 27f74b
---------
Packit Service 27f74b
Arguments
Packit Service 27f74b
---------
Packit Service 27f74b
Packit Service 27f74b
``<section>``
Packit Service 27f74b
    This argument can be used to explicitly select the configuration sections to manage.
Packit Service 27f74b
    A section can either be ``main`` or a repoid.
Packit Service 27f74b
    If not specified, the program will select the ``main`` section and each repoid
Packit Service 27f74b
    used within any ``--setopt`` options.
Packit Service 27f74b
    A repoid can be specified using globs.
Packit Service 27f74b
Packit Service 27f74b
-------
Packit Service 27f74b
Options
Packit Service 27f74b
-------
Packit Service 27f74b
Packit Service 27f74b
All general DNF options are accepted, see `Options` in :manpage:`dnf(8)` for details.
Packit Service 27f74b
Packit Service 27f74b
``--help-cmd``
Packit Service 27f74b
    Show this help.
Packit Service 27f74b
Packit Service 27f74b
``--add-repo=URL``
Packit Service 27f74b
    Add (and enable) the repo from the specified file or url. If it has to be added into installroot, combine it with
Packit Service 27f74b
    ``--setopt=reposdir=/<installroot>/etc/yum.repos.d`` command-line option.
Packit Service 27f74b
Packit Service 27f74b
``--dump``
Packit Service 27f74b
    Print dump of current configuration values to stdout.
Packit Service 27f74b
Packit Service 27f74b
``--set-disabled``, ``--disable``
Packit Service 27f74b
    Disable the specified repos (implies ``--save``).
Packit Service 27f74b
Packit Service 27f74b
``--set-enabled``, ``--enable``
Packit Service 27f74b
    Enable the specified repos (implies ``--save``).
Packit Service 27f74b
Packit Service 27f74b
``--save``
Packit Service 27f74b
    Save the current options (useful with ``--setopt``).
Packit Service 27f74b
Packit Service 27f74b
``--setopt=<option>=<value>``
Packit Service 27f74b
    Set a configuration option. To set configuration options for repositories, use
Packit Service 27f74b
    ``repoid.option`` for the ``<option>``. Globs are supported in repoid.
Packit Service 27f74b
Packit Service 27f74b
--------
Packit Service 27f74b
Examples
Packit Service 27f74b
--------
Packit Service 27f74b
``dnf config-manager --add-repo http://example.com/some/additional.repo``
Packit Service 27f74b
    Download additional.repo and store it in repodir.
Packit Service 27f74b
Packit Service 27f74b
``dnf config-manager --add-repo http://example.com/different/repo``
Packit Service 27f74b
    Create new repo file with http://example.com/different/repo as baseurl and enable it.
Packit Service 27f74b
Packit Service 27f74b
``dnf config-manager --dump``
Packit Service 27f74b
    Display main DNF configuration.
Packit Service 27f74b
Packit Service 27f74b
``dnf config-manager --dump <section>``
Packit Service 27f74b
    Display configuration of a repository identified by <section>.
Packit Service 27f74b
Packit Service 27f74b
``dnf config-manager --set-enabled <repoid>``
Packit Service 27f74b
    Enable repository identified by <repoid> and make the change permanent.
Packit Service 27f74b
Packit Service 27f74b
``dnf config-manager --save --setopt=*.proxy=http://proxy.example.com:3128/ <repo1> <repo2>``
Packit Service 27f74b
    Update proxy setting in repositories with repoid <repo1> and <repo2> and make the change
Packit Service 27f74b
    permanent.
Packit Service 27f74b
Packit Service 27f74b
``dnf config-manager --save --setopt=*-debuginfo.gpgcheck=0``
Packit Service 27f74b
    Update gpgcheck setting in all repositories whose id ends with -debuginfo and make the change permanent.