|
Packit Service |
21c75c |
..
|
|
Packit Service |
21c75c |
Copyright (C) 2014-2018 Red Hat, Inc.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This copyrighted material is made available to anyone wishing to use,
|
|
Packit Service |
21c75c |
modify, copy, or redistribute it subject to the terms and conditions of
|
|
Packit Service |
21c75c |
the GNU General Public License v.2, or (at your option) any later version.
|
|
Packit Service |
21c75c |
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
Packit Service |
21c75c |
ANY WARRANTY expressed or implied, including the implied warranties of
|
|
Packit Service |
21c75c |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
Packit Service |
21c75c |
Public License for more details. You should have received a copy of the
|
|
Packit Service |
21c75c |
GNU General Public License along with this program; if not, write to the
|
|
Packit Service |
21c75c |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit Service |
21c75c |
02110-1301, USA. Any Red Hat trademarks that are incorporated in the
|
|
Packit Service |
21c75c |
source code or documentation are not subject to the GNU General Public
|
|
Packit Service |
21c75c |
License and may only be used or replicated with the express permission of
|
|
Packit Service |
21c75c |
Red Hat, Inc.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _command_ref-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
#######################
|
|
Packit Service |
21c75c |
DNF Command Reference
|
|
Packit Service |
21c75c |
#######################
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
Synopsis
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] <command> [<args>...]``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
===========
|
|
Packit Service |
21c75c |
Description
|
|
Packit Service |
21c75c |
===========
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _command_provides-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
`DNF`_ is the next upcoming major version of `YUM`_, a package manager for RPM-based Linux
|
|
Packit Service |
21c75c |
distributions. It roughly maintains CLI compatibility with YUM and defines a strict API for
|
|
Packit Service |
21c75c |
extensions and plugins.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Plugins can modify or extend features of DNF or provide additional CLI commands on top of those
|
|
Packit Service |
21c75c |
mentioned below. If you know the name of such a command (including commands mentioned below), you
|
|
Packit Service |
21c75c |
may find/install the package which provides it using the appropriate virtual provide in the form of
|
|
Packit Service |
21c75c |
``dnf-command(<alias>)``, where ``<alias>`` is the name of the command; e.g.``dnf install
|
|
Packit Service |
21c75c |
'dnf-command(versionlock)'`` installs a ``versionlock`` plugin. This approach also applies to
|
|
Packit Service |
21c75c |
specifying dependencies of packages that require a particular DNF command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _exit_codes-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Return values:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* ``0`` : Operation was successful.
|
|
Packit Service |
21c75c |
* ``1`` : An error occurred, which was handled by dnf.
|
|
Packit Service |
21c75c |
* ``3`` : An unknown unhandled error occurred during operation.
|
|
Packit Service |
21c75c |
* ``100``: See :ref:`check-update <check_update_command-label>`
|
|
Packit Service |
21c75c |
* ``200``: There was a problem with acquiring or releasing of locks.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Available commands:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* :ref:`alias <alias_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`autoremove <autoremove_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`check <check_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`check-update <check_update_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`clean <clean_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`deplist <deplist_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`distro-sync <distro_sync_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`downgrade <downgrade_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`group <group_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`help <help_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`history <history_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`info <info_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`install <install_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`list <list_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`makecache <makecache_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`mark <mark_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`module <module_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`provides <provides_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`reinstall <reinstall_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`remove <remove_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`repoinfo <repoinfo_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`repolist <repolist_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`repoquery <repoquery_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`repository-packages <repository_packages_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`search <search_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`shell <shell_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`swap <swap_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`updateinfo <updateinfo_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`upgrade <upgrade_command-label>`
|
|
Packit Service |
21c75c |
* :ref:`upgrade-minimal <upgrade_minimal_command-label>`
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Additional information:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* :ref:`Options <options-label>`
|
|
Packit Service |
21c75c |
* :ref:`Specifying Packages <specifying_packages-label>`
|
|
Packit Service |
21c75c |
* :ref:`Specifying Provides <specifying_provides-label>`
|
|
Packit Service |
21c75c |
* :ref:`Specifying Groups <specifying_groups-label>`
|
|
Packit Service |
21c75c |
* :ref:`Specifying Transactions <specifying_transactions-label>`
|
|
Packit Service |
21c75c |
* :ref:`Metadata Synchronization <metadata_synchronization-label>`
|
|
Packit Service |
21c75c |
* :ref:`Configuration Files Replacement Policy <configuration_files_replacement_policy-label>`
|
|
Packit Service |
21c75c |
* :ref:`Files <files-label>`
|
|
Packit Service |
21c75c |
* :ref:`See Also <see_also-label>`
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _options-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
=======
|
|
Packit Service |
21c75c |
Options
|
|
Packit Service |
21c75c |
=======
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-4``
|
|
Packit Service |
21c75c |
Resolve to IPv4 addresses only.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-6``
|
|
Packit Service |
21c75c |
Resolve to IPv6 addresses only.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--advisory=<advisory>, --advisories=<advisory>``
|
|
Packit Service |
21c75c |
Include packages corresponding to the advisory ID, Eg. FEDORA-2201-123.
|
|
Packit Service |
21c75c |
Applicable for the install, repoquery, updateinfo and upgrade commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--allowerasing``
|
|
Packit Service |
21c75c |
Allow erasing of installed packages to resolve dependencies. This option could be used as an alternative to the ``yum swap`` command where packages to remove are not explicitly defined.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--assumeno``
|
|
Packit Service |
21c75c |
Automatically answer no for all questions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-b, --best``
|
|
Packit Service |
21c75c |
Try the best available package versions in transactions. Specifically during :ref:`dnf upgrade <upgrade_command-label>`, which by default skips over updates that can not be installed for dependency reasons, the switch forces DNF to only consider the latest packages. When running into packages with broken dependencies, DNF will fail giving a reason why the latest version can not be installed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--bugfix``
|
|
Packit Service |
21c75c |
Include packages that fix a bugfix issue. Applicable for the install, repoquery, updateinfo and
|
|
Packit Service |
21c75c |
upgrade commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--bz=<bugzilla>, --bzs=<bugzilla>``
|
|
Packit Service |
21c75c |
Include packages that fix a Bugzilla ID, Eg. 123123. Applicable for the install, repoquery,
|
|
Packit Service |
21c75c |
updateinfo and upgrade commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-C, --cacheonly``
|
|
Packit Service |
21c75c |
Run entirely from system cache, don't update the cache and use it even in case it is expired.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
DNF uses a separate cache for each user under which it executes. The cache for the root user is called the system cache. This switch allows a regular user read-only access to the system cache, which usually is more fresh than the user's and thus he does not have to wait for metadata sync.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--color=<color>``
|
|
Packit Service |
21c75c |
Control whether color is used in terminal output. Valid values are ``always``, ``never`` and ``auto`` (default).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--comment=<comment>``
|
|
Packit Service |
21c75c |
Add a comment to the transaction history.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-c <config file>, --config=<config file>``
|
|
Packit Service |
21c75c |
Configuration file location.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--cve=<cves>, --cves=<cves>``
|
|
Packit Service |
21c75c |
Include packages that fix a CVE (Common Vulnerabilities and Exposures) ID
|
|
Packit Service |
21c75c |
(http://cve.mitre.org/about/), Eg. CVE-2201-0123. Applicable for the install, repoquery, updateinfo,
|
|
Packit Service |
21c75c |
and upgrade commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-d <debug level>, --debuglevel=<debug level>``
|
|
Packit Service |
21c75c |
Debugging output level. This is an integer value between 0 (no additional information strings) and 10 (shows all debugging information, even that not understandable to the user), default is 2. Deprecated, use ``-v`` instead.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--debugsolver``
|
|
Packit Service |
21c75c |
Dump data aiding in dependency solver debugging into ``./debugdata``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _disableexcludes-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--disableexcludes=[all|main|<repoid>], --disableexcludepkgs=[all|main|<repoid>]``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Disable the configuration file excludes. Takes one of the following three options:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* ``all``, disables all configuration file excludes
|
|
Packit Service |
21c75c |
* ``main``, disables excludes defined in the ``[main]`` section
|
|
Packit Service |
21c75c |
* ``repoid``, disables excludes defined for the given repository
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--disable, --set-disabled``
|
|
Packit Service |
21c75c |
Disable specified repositories (automatically saves). The option has to be used together with the
|
|
Packit Service |
21c75c |
``config-manager`` command (dnf-plugins-core).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _disableplugin-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--disableplugin=<plugin names>``
|
|
Packit Service |
21c75c |
Disable the listed plugins specified by names or globs.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--disablerepo=<repoid>``
|
|
Packit Service |
21c75c |
Disable specific repositories by an id or a glob. This option is mutually exclusive with ``--repo``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--downloaddir=<path>, --destdir=<path>``
|
|
Packit Service |
21c75c |
Redirect downloaded packages to provided directory. The option has to be used together with the \-\
|
|
Packit Service |
21c75c |
:ref:`-downloadonly <downloadonly-label>` command line option, with the
|
|
Packit Service |
21c75c |
``download`` command (dnf-plugins-core) or with the ``system-upgrade`` command
|
|
Packit Service |
21c75c |
(dnf-plugins-extras).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _downloadonly-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--downloadonly``
|
|
Packit Service |
21c75c |
Download the resolved package set without performing any rpm transaction (install/upgrade/erase).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-e <error level>, --errorlevel=<error level>``
|
|
Packit Service |
21c75c |
Error output level. This is an integer value between 0 (no error output) and
|
|
Packit Service |
21c75c |
10 (shows all error messages), default is 3. Deprecated, use ``-v`` instead.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--enable, --set-enabled``
|
|
Packit Service |
21c75c |
Enable specified repositories (automatically saves). The option has to be used together with the
|
|
Packit Service |
21c75c |
``config-manager`` command (dnf-plugins-core).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--enableplugin=<plugin names>``
|
|
Packit Service |
21c75c |
Enable the listed plugins specified by names or globs.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--enablerepo=<repoid>``
|
|
Packit Service |
21c75c |
Enable additional repositories by an id or a glob.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--enhancement``
|
|
Packit Service |
21c75c |
Include enhancement relevant packages. Applicable for the install, repoquery, updateinfo and
|
|
Packit Service |
21c75c |
upgrade commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _exclude_option-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-x <package-file-spec>, --exclude=<package-file-spec>``
|
|
Packit Service |
21c75c |
Exclude packages specified by ``<package-file-spec>`` from the operation.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--excludepkgs=<package-file-spec>``
|
|
Packit Service |
21c75c |
Deprecated option. It was replaced by the \-\ :ref:`-exclude <exclude_option-label>` option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--forcearch=<arch>``
|
|
Packit Service |
21c75c |
Force the use of an architecture. Any architecture can be specified.
|
|
Packit Service |
21c75c |
However, use of an architecture not supported natively by your CPU will
|
|
Packit Service |
21c75c |
require emulation of some kind. This is usually through QEMU. The behavior of ``--forcearch``
|
|
Packit Service |
21c75c |
can be configured by using the :ref:`arch <arch-label>` and :ref:`ignorearch <ignorearch-label>`
|
|
Packit Service |
21c75c |
configuration options with values ``<arch>`` and ``True`` respectively.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-h, --help, --help-cmd``
|
|
Packit Service |
21c75c |
Show the help.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _installroot-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--installroot=<path>``
|
|
Packit Service |
21c75c |
Specifies an alternative installroot, relative to where all packages will be
|
|
Packit Service |
21c75c |
installed. Think of this like doing ``chroot <root> dnf``, except using
|
|
Packit Service |
21c75c |
``--installroot`` allows dnf to work before the chroot is created. It requires absolute path.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
- *cachedir*, *log files*, *releasever*, and *gpgkey* are taken from or
|
|
Packit Service |
21c75c |
stored in the installroot. *Gpgkeys* are imported into the installroot from
|
|
Packit Service |
21c75c |
a path relative to the host which can be specified in the repository section
|
|
Packit Service |
21c75c |
of configuration files.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
- *configuration file* and :ref:`reposdir <reposdir-label>` are searched inside the installroot first. If
|
|
Packit Service |
21c75c |
they are not present, they are taken from the host system.
|
|
Packit Service |
21c75c |
Note: When a path is specified within a command line argument
|
|
Packit Service |
21c75c |
(``--config=<config file>`` in case of *configuration file* and
|
|
Packit Service |
21c75c |
``--setopt=reposdir=<reposdir>`` for *reposdir*) then this path is always
|
|
Packit Service |
21c75c |
relative to the host with no exceptions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
- *vars* are taken from the host system or installroot according to :ref:`reposdir <reposdir-label>`
|
|
Packit Service |
21c75c |
. When *reposdir* path is specified within a command line argument, vars are taken from the
|
|
Packit Service |
21c75c |
installroot. When :ref:`varsdir <varsdir_options-label>` paths are specified within a command line
|
|
Packit Service |
21c75c |
argument (``--setopt=varsdir=<reposdir>``) then those path are always relative to the host with no
|
|
Packit Service |
21c75c |
exceptions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
- The *pluginpath* and *pluginconfpath* are relative to the host.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Note: You may also want to use the command-line option
|
|
Packit Service |
21c75c |
``--releasever=<release>`` when creating the installroot, otherwise the
|
|
Packit Service |
21c75c |
*$releasever* value is taken from the rpmdb within the installroot (and thus
|
|
Packit Service |
21c75c |
it is empty at the time of creation and the transaction will fail). If ``--releasever=/`` is used, the
|
|
Packit Service |
21c75c |
releasever will be detected from the host (``/``) system. The new installroot path at the time of creation
|
|
Packit Service |
21c75c |
does not contain the *repository*, *releasever* and *dnf.conf* files.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
On a modular system you may also want to use the
|
|
Packit Service |
21c75c |
``--setopt=module_platform_id=<module_platform_name:stream>`` command-line option when creating the installroot,
|
|
Packit Service |
21c75c |
otherwise the :ref:`module_platform_id <module_platform_id-label>` value will be taken from the
|
|
Packit Service |
21c75c |
``/etc/os-release`` file within the installroot (and thus it will be empty at the time of creation, the modular
|
|
Packit Service |
21c75c |
dependency could be unsatisfied and modules content could be excluded).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Installroot examples:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf --installroot=<installroot> --releasever=<release> install system-release``
|
|
Packit Service |
21c75c |
Permanently sets the ``releasever`` of the system in the
|
|
Packit Service |
21c75c |
``<installroot>`` directory to ``<release>``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf --installroot=<installroot> --setopt=reposdir=<path> --config /path/dnf.conf upgrade``
|
|
Packit Service |
21c75c |
Upgrades packages inside the installroot from a repository described by
|
|
Packit Service |
21c75c |
``--setopt`` using configuration from ``/path/dnf.conf``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--newpackage``
|
|
Packit Service |
21c75c |
Include newpackage relevant packages. Applicable for the install, repoquery, updateinfo and
|
|
Packit Service |
21c75c |
upgrade commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--noautoremove``
|
|
Packit Service |
21c75c |
Disable removal of dependencies that are no longer used. It sets
|
|
Packit Service |
21c75c |
:ref:`clean_requirements_on_remove <clean_requirements_on_remove-label>` configuration option to ``False``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--nobest``
|
|
Packit Service |
21c75c |
Set best option to ``False``, so that transactions are not limited to best candidates only.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--nodocs``
|
|
Packit Service |
21c75c |
Do not install documentation. Sets the rpm flag 'RPMTRANS_FLAG_NODOCS'.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--nogpgcheck``
|
|
Packit Service |
21c75c |
Skip checking GPG signatures on packages (if RPM policy allows).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--noplugins``
|
|
Packit Service |
21c75c |
Disable all plugins.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _obsoletes_option-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--obsoletes``
|
|
Packit Service |
21c75c |
This option has an effect on an install/update, it enables
|
|
Packit Service |
21c75c |
dnf's obsoletes processing logic. For more information see the
|
|
Packit Service |
21c75c |
:ref:`obsoletes <obsoletes_conf_option-label>` option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This option also displays capabilities that the package obsoletes when used together with the :ref:`repoquery <repoquery_command-label>` command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Configuration Option: :ref:`obsoletes <obsoletes_conf_option-label>`
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-q, --quiet``
|
|
Packit Service |
21c75c |
In combination with a non-interactive command, shows just the relevant content. Suppresses messages notifying about the current state or actions of DNF.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-R <minutes>, --randomwait=<minutes>``
|
|
Packit Service |
21c75c |
Maximum command wait time.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _refresh_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--refresh``
|
|
Packit Service |
21c75c |
Set metadata as expired before running the command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--releasever=<release>``
|
|
Packit Service |
21c75c |
Configure DNF as if the distribution release was ``<release>``. This can
|
|
Packit Service |
21c75c |
affect cache paths, values in configuration files and mirrorlist URLs.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _repofrompath_options-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--repofrompath <repo>,<path/url>``
|
|
Packit Service |
21c75c |
Specify a repository to add to the repositories for this query.
|
|
Packit Service |
21c75c |
This option can be used multiple times.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
- The repository label is specified by ``<repo>``.
|
|
Packit Service |
21c75c |
- The path or url to the repository is specified by ``<path/url>``.
|
|
Packit Service |
21c75c |
It is the same path as a baseurl and can be also enriched by the
|
|
Packit Service |
21c75c |
:ref:`repo variables <repo-variables-label>`.
|
|
Packit Service |
21c75c |
- The configuration for the repository can be adjusted using \-\
|
|
Packit Service |
21c75c |
:ref:`-setopt <setopt_option-label>`\=<repo>.<option>=<value>\.
|
|
Packit Service |
21c75c |
- If you want to view only packages from this repository, combine this
|
|
Packit Service |
21c75c |
with the ``--repo=<repo>`` or ``--disablerepo="*"`` switches.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--repo=<repoid>, --repoid=<repoid>``
|
|
Packit Service |
21c75c |
Enable just specific repositories by an id or a glob. Can be used multiple
|
|
Packit Service |
21c75c |
times with accumulative effect. It is basically a shortcut for
|
|
Packit Service |
21c75c |
``--disablerepo="*" --enablerepo=<repoid>`` and is mutually exclusive with
|
|
Packit Service |
21c75c |
the ``--disablerepo`` option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--rpmverbosity=<name>``
|
|
Packit Service |
21c75c |
RPM debug scriptlet output level. Sets the debug level to ``<name>`` for RPM scriptlets.
|
|
Packit Service |
21c75c |
For available levels, see the ``rpmverbosity`` configuration option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--sec-severity=<severity>, --secseverity=<severity>``
|
|
Packit Service |
21c75c |
Includes packages that provide a fix for an issue of the specified severity.
|
|
Packit Service |
21c75c |
Applicable for the install, repoquery, updateinfo and upgrade commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--security``
|
|
Packit Service |
21c75c |
Includes packages that provide a fix for a security issue. Applicable for the
|
|
Packit Service |
21c75c |
upgrade command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _setopt_option-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--setopt=<option>=<value>``
|
|
Packit Service |
21c75c |
Override a configuration option from the configuration file. To override configuration options for repositories, use
|
|
Packit Service |
21c75c |
``repoid.option`` for the ``<option>``. Values for configuration options like ``excludepkgs``, ``includepkgs``,
|
|
Packit Service |
21c75c |
``installonlypkgs`` and ``tsflags`` are appended to the original value, they do not override it. However, specifying
|
|
Packit Service |
21c75c |
an empty value (e.g. ``--setopt=tsflags=``) will clear the option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _skip-broken_option-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--skip-broken``
|
|
Packit Service |
21c75c |
Resolve depsolve problems by removing packages that are causing problems from the transaction.
|
|
Packit Service |
21c75c |
It is an alias for the :ref:`strict <strict-label>` configuration option with value ``False``.
|
|
Packit Service |
21c75c |
Additionally, with the :ref:`enable <module_enable_command-label>` and
|
|
Packit Service |
21c75c |
:ref:`disable <module_disable_command-label>` module subcommands it allows one to perform an action even in case of
|
|
Packit Service |
21c75c |
broken modular dependencies.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--showduplicates``
|
|
Packit Service |
21c75c |
Show duplicate packages in repositories. Applicable for the list and search commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _verbose_options-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-v, --verbose``
|
|
Packit Service |
21c75c |
Verbose operation, show debug messages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--version``
|
|
Packit Service |
21c75c |
Show DNF version and exit.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-y, --assumeyes``
|
|
Packit Service |
21c75c |
Automatically answer yes for all questions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
List options are comma-separated. Command-line options override respective settings from configuration files.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
Commands
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
For an explanation of ``<package-spec>``, ``<package-file-spec>`` and ``<package-name-spec>`` see
|
|
Packit Service |
21c75c |
:ref:`\specifying_packages-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
For an explanation of ``<provide-spec>`` see :ref:`\specifying_provides-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
For an explanation of ``<group-spec>`` see :ref:`\specifying_groups-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
For an explanation of ``<module-spec>`` see :ref:`\specifying_modules-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
For an explanation of ``<transaction-spec>`` see :ref:`\specifying_transactions-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _alias_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
Alias Command
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``alias``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Allows the user to define and manage a list of aliases (in the form ``<name=value>``),
|
|
Packit Service |
21c75c |
which can be then used as dnf commands to abbreviate longer command sequences. For examples on using
|
|
Packit Service |
21c75c |
the alias command, see :ref:`\Alias Examples\ <alias_examples-label>`. For examples on the alias
|
|
Packit Service |
21c75c |
processing, see :ref:`\Alias Processing Examples\ <alias_processing_examples-label>`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
To use an alias (name=value), the name must be placed as the first "command" (e.g. the first argument
|
|
Packit Service |
21c75c |
that is not an option). It is then replaced by its value and the resulting sequence is again searched
|
|
Packit Service |
21c75c |
for aliases. The alias processing stops when the first found command is not a name of any alias.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
In case the processing would result in an infinite recursion, the original arguments are used instead.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Also, like in shell aliases, if the result starts with a ``\``, the alias processing will stop.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
All aliases are defined in configuration files in the ``/etc/dnf/aliases.d/`` directory in the [aliases] section,
|
|
Packit Service |
21c75c |
and aliases created by the alias command are written to the ``USER.conf`` file. In case of conflicts,
|
|
Packit Service |
21c75c |
the ``USER.conf`` has the highest priority, and alphabetical ordering is used for the rest of the
|
|
Packit Service |
21c75c |
configuration files.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Optionally, there is the ``enabled`` option in the ``[main]`` section defaulting to True. This can be set for each
|
|
Packit Service |
21c75c |
file separately in the respective file, or globally for all aliases in the ``ALIASES.conf`` file.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf alias [options] [list] [<name>...]``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
List aliases with their final result. The ``[<alias>...]`` parameter further limits the result to only those aliases matching it.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf alias [options] add <name=value>...``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Create new aliases.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf alias [options] delete <name>...``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Delete aliases.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _alias_examples-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Alias Examples
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf alias list``
|
|
Packit Service |
21c75c |
Lists all defined aliases.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf alias add rm=remove``
|
|
Packit Service |
21c75c |
Adds a new command alias called ``rm`` which works the same as the ``remove`` command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf alias add upgrade="\upgrade --skip-broken --disableexcludes=all --obsoletes"``
|
|
Packit Service |
21c75c |
Adds a new command alias called ``upgrade`` which works the same as the ``upgrade`` command,
|
|
Packit Service |
21c75c |
with additional options. Note that the original ``upgrade`` command is prefixed with a ``\``
|
|
Packit Service |
21c75c |
to prevent an infinite loop in alias processing.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _alias_processing_examples-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Alias Processing Examples
|
|
Packit Service |
21c75c |
-------------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
If there are defined aliases ``in=install`` and ``FORCE="--skip-broken --disableexcludes=all"``:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* ``dnf FORCE in`` will be replaced with ``dnf --skip-broken --disableexcludes=all install``
|
|
Packit Service |
21c75c |
* ``dnf in FORCE`` will be replaced with ``dnf install FORCE`` (which will fail)
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
If there is defined alias ``in=install``:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* ``dnf in`` will be replaced with ``dnf install``
|
|
Packit Service |
21c75c |
* ``dnf --repo updates in`` will be replaced with ``dnf --repo updates in`` (which will fail)
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _autoremove_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
------------------
|
|
Packit Service |
21c75c |
Autoremove Command
|
|
Packit Service |
21c75c |
------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``autoremove``
|
|
Packit Service |
21c75c |
| Aliases for :ref:`explicit NEVRA matching <specifying_nevra_matching_explicitly-label>`: ``autoremove-n``, ``autoremove-na``, ``autoremove-nevra``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] autoremove``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Removes all "leaf" packages from the system that were originally installed as dependencies of user-installed packages, but which are no longer required by any such package.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Packages listed in :ref:`installonlypkgs <installonlypkgs-label>` are never automatically removed by
|
|
Packit Service |
21c75c |
this command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] autoremove <spec>...``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This is an alias for the :ref:`\remove_command-label` command with clean_requirements_on_remove set to
|
|
Packit Service |
21c75c |
``True``. It removes the specified packages from the system along with any packages depending on the
|
|
Packit Service |
21c75c |
packages being removed. Each ``<spec>`` can be either a ``<package-spec>``, which specifies a
|
|
Packit Service |
21c75c |
package directly, or a ``@<group-spec>``, which specifies an (environment) group which contains
|
|
Packit Service |
21c75c |
it. It also removes any dependencies that are no longer needed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
There are also a few specific autoremove commands ``autoremove-n``, ``autoremove-na`` and
|
|
Packit Service |
21c75c |
``autoremove-nevra`` that allow the specification of an exact argument in the NEVRA
|
|
Packit Service |
21c75c |
(name-epoch:version-release.architecture) format.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This command by default does not force a sync of expired metadata. See also :ref:`\metadata_synchronization-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _check_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
Check Command
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``check``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] check [--dependencies] [--duplicates] [--obsoleted] [--provides]``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Checks the local packagedb and produces information on any problems it
|
|
Packit Service |
21c75c |
finds. You can limit the checks to be performed by using the ``--dependencies``,
|
|
Packit Service |
21c75c |
``--duplicates``, ``--obsoleted`` and ``--provides`` options (the default is to
|
|
Packit Service |
21c75c |
check everything).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _check_update_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
--------------------
|
|
Packit Service |
21c75c |
Check-Update Command
|
|
Packit Service |
21c75c |
--------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``check-update``
|
|
Packit Service |
21c75c |
| Aliases: ``check-upgrade``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] check-update [--changelogs] [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Non-interactively checks if updates of the specified packages are available. If no ``<package-file-spec>`` is given, checks whether any updates at all are available for your system. DNF exit code will be 100 when there are updates available and a list of the updates will be printed, 0 if not and 1 if an error occurs. If ``--changelogs`` option is specified, also changelog delta of packages about to be updated is printed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Please note that having a specific newer version available for an installed package (and reported by ``check-update``) does not imply that subsequent ``dnf upgrade`` will install it. The difference is that ``dnf upgrade`` has restrictions (like package dependencies being satisfied) to take into account.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The output is affected by the :ref:`autocheck_running_kernel <autocheck_running_kernel-label>` configuration option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _clean_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
Clean Command
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``clean``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Performs cleanup of temporary files kept for repositories. This includes any
|
|
Packit Service |
21c75c |
such data left behind from disabled or removed repositories as well as for
|
|
Packit Service |
21c75c |
different distribution release versions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf clean dbcache``
|
|
Packit Service |
21c75c |
Removes cache files generated from the repository metadata. This forces DNF
|
|
Packit Service |
21c75c |
to regenerate the cache files the next time it is run.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf clean expire-cache``
|
|
Packit Service |
21c75c |
Marks the repository metadata expired. DNF will re-validate the cache for
|
|
Packit Service |
21c75c |
each repository the next time it is used.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf clean metadata``
|
|
Packit Service |
21c75c |
Removes repository metadata. Those are the files which DNF uses to determine
|
|
Packit Service |
21c75c |
the remote availability of packages. Using this option will make DNF
|
|
Packit Service |
21c75c |
download all the metadata the next time it is run.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf clean packages``
|
|
Packit Service |
21c75c |
Removes any cached packages from the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf clean all``
|
|
Packit Service |
21c75c |
Does all of the above.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _deplist_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
Deplist Command
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] deplist [<select-options>] [<query-options>] [<package-spec>]``
|
|
Packit Service |
21c75c |
Alias for :ref:`dnf repoquery --deplist <deplist_option-label>`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _distro_sync_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-------------------
|
|
Packit Service |
21c75c |
Distro-Sync Command
|
|
Packit Service |
21c75c |
-------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``distro-sync``
|
|
Packit Service |
21c75c |
| Aliases: ``dsync``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``distrosync``, ``distribution-synchronization``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf distro-sync [<package-spec>...]``
|
|
Packit Service |
21c75c |
As necessary upgrades, downgrades or keeps selected installed packages to match
|
|
Packit Service |
21c75c |
the latest version available from any enabled repository. If no package is given, all installed packages are considered.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
See also :ref:`\configuration_files_replacement_policy-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _downgrade_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
Downgrade Command
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``downgrade``
|
|
Packit Service |
21c75c |
| Aliases: ``dg``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] downgrade <package-spec>...``
|
|
Packit Service |
21c75c |
Downgrades the specified packages to the highest installable package of all known lower versions
|
|
Packit Service |
21c75c |
if possible. When version is given and is lower than version of installed package then it
|
|
Packit Service |
21c75c |
downgrades to target version.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _group_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
Group Command
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``group``
|
|
Packit Service |
21c75c |
| Aliases: ``grp``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``groups``, ``grouplist``, ``groupinstall``, ``groupupdate``, ``groupremove``, ``grouperase``, ``groupinfo``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Groups are virtual collections of packages. DNF keeps track of groups that the user selected ("marked") installed and can manipulate the comprising packages with simple commands.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group [summary] <group-spec>``
|
|
Packit Service |
21c75c |
Display overview of how many groups are installed and available. With a
|
|
Packit Service |
21c75c |
spec, limit the output to the matching groups. ``summary`` is the default
|
|
Packit Service |
21c75c |
groups subcommand.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group info <group-spec>``
|
|
Packit Service |
21c75c |
Display package lists of a group. Shows which packages are installed or
|
|
Packit Service |
21c75c |
available from a repository when ``-v`` is used.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group install [--with-optional] <group-spec>...``
|
|
Packit Service |
21c75c |
Mark the specified group installed and install packages it contains. Also
|
|
Packit Service |
21c75c |
include `optional` packages of the group if ``--with-optional`` is
|
|
Packit Service |
21c75c |
specified. All `mandatory` and `Default` packages will be installed whenever possible.
|
|
Packit Service |
21c75c |
Conditional packages are installed if they meet their requirement.
|
|
Packit Service |
21c75c |
If the group is already (partially) installed, the command installs the missing packages from the group.
|
|
Packit Service |
21c75c |
Depending on the value of :ref:`obsoletes configuration option <obsoletes_conf_option-label>` group installation takes obsoletes into account.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _grouplist_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group list <group-spec>...``
|
|
Packit Service |
21c75c |
List all matching groups, either among installed or available groups. If
|
|
Packit Service |
21c75c |
nothing is specified, list all known groups. ``--installed`` and ``--available`` options narrow down the requested list.
|
|
Packit Service |
21c75c |
Records are ordered by the `display_order` tag defined in comps.xml file.
|
|
Packit Service |
21c75c |
Provides a list of all hidden groups by using option ``--hidden``.
|
|
Packit Service |
21c75c |
Provides group IDs when the ``-v`` or ``--ids`` options are used.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group remove <group-spec>...``
|
|
Packit Service |
21c75c |
Mark the group removed and remove those packages in the group from the system which do not belong to another installed group and were not installed explicitly by the user.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group upgrade <group-spec>...``
|
|
Packit Service |
21c75c |
Upgrades the packages from the group and upgrades the group itself. The latter comprises of installing packages that were added to the group by the distribution and removing packages that got removed from the group as far as they were not installed explicitly by the user.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Groups can also be marked installed or removed without physically manipulating any packages:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group mark install <group-spec>...``
|
|
Packit Service |
21c75c |
Mark the specified group installed. No packages will be installed by this command, but the group is then considered installed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] group mark remove <group-spec>...``
|
|
Packit Service |
21c75c |
Mark the specified group removed. No packages will be removed by this command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
See also :ref:`\configuration_files_replacement_policy-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _help_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
Help Command
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``help``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf help [<command>]``
|
|
Packit Service |
21c75c |
Displays the help text for all commands. If given a command name then only
|
|
Packit Service |
21c75c |
displays help for that particular command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _history_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
History Command
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``history``
|
|
Packit Service |
21c75c |
| Aliases: ``hist``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The history command allows the user to view what has happened in past
|
|
Packit Service |
21c75c |
transactions and act according to this information (assuming the
|
|
Packit Service |
21c75c |
``history_record`` configuration option is set).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _history_list_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history [list] [--reverse] [<spec>...]``
|
|
Packit Service |
21c75c |
The default history action is listing information about given transactions
|
|
Packit Service |
21c75c |
in a table. Each ``<spec>`` can be either a ``<transaction-spec>``, which
|
|
Packit Service |
21c75c |
specifies a transaction directly, or a ``<transaction-spec>..<transaction-spec>``,
|
|
Packit Service |
21c75c |
which specifies a range of transactions, or a ``<package-name-spec>``,
|
|
Packit Service |
21c75c |
which specifies a transaction by a package which it manipulated. When no
|
|
Packit Service |
21c75c |
transaction is specified, list all known transactions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--reverse``
|
|
Packit Service |
21c75c |
The order of ``history list`` output is printed in reverse order.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history info [<spec>...]``
|
|
Packit Service |
21c75c |
Describe the given transactions. The meaning of ``<spec>`` is the same as
|
|
Packit Service |
21c75c |
in the :ref:`History List Command <history_list_command-label>`. When no
|
|
Packit Service |
21c75c |
transaction is specified, describe what happened during the latest
|
|
Packit Service |
21c75c |
transaction.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _history_redo_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history redo <transaction-spec>|<package-file-spec>``
|
|
Packit Service |
21c75c |
Repeat the specified transaction. Uses the last transaction (with the highest ID)
|
|
Packit Service |
21c75c |
if more than one transaction for given <package-file-spec> is found. If it is not possible
|
|
Packit Service |
21c75c |
to redo some operations due to the current state of RPMDB, it will not redo the transaction.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _history_replay_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history replay [--ignore-installed] [--ignore-extras] [--skip-unavailable] <filename>``
|
|
Packit Service |
21c75c |
Replay a transaction stored in file ``<filename>`` by :ref:`History Store
|
|
Packit Service |
21c75c |
Command <history_store_command-label>`. The replay will perform the exact
|
|
Packit Service |
21c75c |
same operations on the packages as in the original transaction and will
|
|
Packit Service |
21c75c |
return with an error if case of any differences in installed packages or
|
|
Packit Service |
21c75c |
their versions. See also the :ref:`Transaction JSON Format specification <transaction_json-label>` of the
|
|
Packit Service |
21c75c |
file format.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--ignore-installed``
|
|
Packit Service |
21c75c |
Don't check for the installed packages being in the same state as those
|
|
Packit Service |
21c75c |
recorded in the transaction. E.g. in case there is an upgrade
|
|
Packit Service |
21c75c |
``foo-1.0`` -> ``foo-2.0`` stored in the transaction, but there is
|
|
Packit Service |
21c75c |
``foo-1.1`` installed on the target system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--ignore-extras``
|
|
Packit Service |
21c75c |
Don't check for extra packages pulled into the transaction on the
|
|
Packit Service |
21c75c |
target system. E.g. the target system may not have some dependency,
|
|
Packit Service |
21c75c |
which was installed on the source system. The replay errors out on this
|
|
Packit Service |
21c75c |
by default, as the transaction would not be the same.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--skip-unavailable``
|
|
Packit Service |
21c75c |
In case some packages stored in the transaction are not available on
|
|
Packit Service |
21c75c |
the target system, skip them instead of erroring out.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history rollback <transaction-spec>|<package-file-spec>``
|
|
Packit Service |
21c75c |
Undo all transactions performed after the specified transaction. Uses the last transaction
|
|
Packit Service |
21c75c |
(with the highest ID) if more than one transaction for given <package-file-spec> is found.
|
|
Packit Service |
21c75c |
If it is not possible to undo some transactions due to the current state of RPMDB, it will not undo
|
|
Packit Service |
21c75c |
any transaction.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _history_store_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history store [--output <output-file>] <transaction-spec>``
|
|
Packit Service |
21c75c |
Store a transaction specified by ``<transaction-spec>``. The transaction
|
|
Packit Service |
21c75c |
can later be replayed by the :ref:`History Replay Command
|
|
Packit Service |
21c75c |
<history_replay_command-label>`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Warning: The stored transaction format is considered unstable and may
|
|
Packit Service |
21c75c |
change at any time. It will work if the same version of dnf is used to
|
|
Packit Service |
21c75c |
store and replay (or between versions as long as it stays the same).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-o <output-file>, --output=<output-file>``
|
|
Packit Service |
21c75c |
Store the serialized transaction into ``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history undo <transaction-spec>|<package-file-spec>``
|
|
Packit Service |
21c75c |
Perform the opposite operation to all operations performed in the specified transaction.
|
|
Packit Service |
21c75c |
Uses the last transaction (with the highest ID) if more than one transaction for given
|
|
Packit Service |
21c75c |
<package-file-spec> is found. If it is not possible to undo some operations due to
|
|
Packit Service |
21c75c |
the current state of RPMDB, it will not undo the transaction.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf history userinstalled``
|
|
Packit Service |
21c75c |
Show all installonly packages, packages installed outside of DNF and packages not
|
|
Packit Service |
21c75c |
installed as dependency. I.e. it lists packages that will stay on the system when
|
|
Packit Service |
21c75c |
:ref:`\autoremove_command-label` or :ref:`\remove_command-label` along with
|
|
Packit Service |
21c75c |
`clean_requirements_on_remove` configuration option set to True is executed. Note the same
|
|
Packit Service |
21c75c |
results can be accomplished with ``dnf repoquery --userinstalled``, and the repoquery
|
|
Packit Service |
21c75c |
command is more powerful in formatting of the output.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This command by default does not force a sync of expired metadata, except for
|
|
Packit Service |
21c75c |
the redo, rollback, and undo subcommands.
|
|
Packit Service |
21c75c |
See also :ref:`\metadata_synchronization-label`
|
|
Packit Service |
21c75c |
and :ref:`\configuration_files_replacement_policy-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _info_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
Info Command
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``info``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] info [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
Lists description and summary information about installed and available packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The info command limits the displayed packages the same way as the :ref:`list command<list_command-label>`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This command by default does not force a sync of expired metadata. See also :ref:`\metadata_synchronization-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _install_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
Install Command
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``install``
|
|
Packit Service |
21c75c |
| Aliases: ``in``
|
|
Packit Service |
21c75c |
| Aliases for :ref:`explicit NEVRA matching <specifying_nevra_matching_explicitly-label>`: ``install-n``, ``install-na``, ``install-nevra``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``localinstall``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] install <spec>...``
|
|
Packit Service |
21c75c |
Makes sure that the given packages and their dependencies are installed
|
|
Packit Service |
21c75c |
on the system. Each ``<spec>`` can be either a :ref:`<package-spec> <specifying_packages-label>`,
|
|
Packit Service |
21c75c |
or a \@\ :ref:`\<module-spec>\ <specifying_modules-label>`, or a \@\ :ref:`\<group-spec>\ <specifying_groups-label>`.
|
|
Packit Service |
21c75c |
See :ref:`\Install Examples\ <install_examples-label>`.
|
|
Packit Service |
21c75c |
If a given package or provide cannot be (and is not already) installed,
|
|
Packit Service |
21c75c |
the exit code will be non-zero.
|
|
Packit Service |
21c75c |
If the ``<spec>`` matches both a \@\ :ref:`\<module-spec>\ <specifying_modules-label>` and
|
|
Packit Service |
21c75c |
a \@\ :ref:`\<group-spec>\ <specifying_groups-label>`, only the module is installed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
When :ref:`<package-spec> <specifying_packages-label>` to specify the exact version
|
|
Packit Service |
21c75c |
of the package is given, DNF will install the desired version, no matter which
|
|
Packit Service |
21c75c |
version of the package is already installed. The former version of the package
|
|
Packit Service |
21c75c |
will be removed in the case of non-installonly package.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
There are also a few specific install commands ``install-n``, ``install-na`` and
|
|
Packit Service |
21c75c |
``install-nevra`` that allow the specification of an exact argument in the NEVRA format.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
See also :ref:`\configuration_files_replacement_policy-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _install_examples-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Install Examples
|
|
Packit Service |
21c75c |
----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install tito``
|
|
Packit Service |
21c75c |
Install the ``tito`` package (tito is the package name).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install ~/Downloads/tito-0.6.2-1.fc22.noarch.rpm``
|
|
Packit Service |
21c75c |
Install a local rpm file tito-0.6.2-1.fc22.noarch.rpm from the ~/Downloads/
|
|
Packit Service |
21c75c |
directory.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install tito-0.5.6-1.fc22``
|
|
Packit Service |
21c75c |
Install the package with a specific version. If the package is already installed it
|
|
Packit Service |
21c75c |
will automatically try to downgrade or upgrade to the specific version.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf --best install tito``
|
|
Packit Service |
21c75c |
Install the latest available version of the package. If the package is already installed it
|
|
Packit Service |
21c75c |
will try to automatically upgrade to the latest version. If the latest version
|
|
Packit Service |
21c75c |
of the package cannot be installed, the installation will fail.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install vim``
|
|
Packit Service |
21c75c |
DNF will automatically recognize that vim is not a package name, but
|
|
Packit Service |
21c75c |
will look up and install a package that provides vim with all the required
|
|
Packit Service |
21c75c |
dependencies. Note: Package name match has precedence over package provides
|
|
Packit Service |
21c75c |
match.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install https://kojipkgs.fedoraproject.org//packages/tito/0.6.0/1.fc22/noarch/tito-0.6.0-1.fc22.noarch.rpm``
|
|
Packit Service |
21c75c |
Install a package directly from a URL.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install '@docker'``
|
|
Packit Service |
21c75c |
Install all default profiles of module 'docker' and their RPMs. Module streams get enabled accordingly.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install '@Web Server'``
|
|
Packit Service |
21c75c |
Install the 'Web Server' environmental group.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install /usr/bin/rpmsign``
|
|
Packit Service |
21c75c |
Install a package that provides the /usr/bin/rpmsign file.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf -y install tito --setopt=install_weak_deps=False``
|
|
Packit Service |
21c75c |
Install the ``tito`` package (tito is the package name) without weak deps. Weak deps are not required for
|
|
Packit Service |
21c75c |
core functionality of the package, but they enhance the original package (like extended
|
|
Packit Service |
21c75c |
documentation, plugins, additional functions, etc.).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf install --advisory=FEDORA-2018-b7b99fe852 \*``
|
|
Packit Service |
21c75c |
Install all packages that belong to the "FEDORA-2018-b7b99fe852" advisory.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _list_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
List Command
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``list``
|
|
Packit Service |
21c75c |
| Aliases: ``ls``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Prints lists of packages depending on the packages' relation to the
|
|
Packit Service |
21c75c |
system. A package is ``installed`` if it is present in the RPMDB, and it is ``available``
|
|
Packit Service |
21c75c |
if it is not installed but is present in a repository that DNF knows about.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The list command also limits the displayed packages according to specific criteria,
|
|
Packit Service |
21c75c |
e.g. to only those that update an installed package (respecting the repository
|
|
Packit Service |
21c75c |
:ref:`priority<repo_priority-label>`). The :ref:`exclude
|
|
Packit Service |
21c75c |
<exclude-label>` option in the configuration file can influence the
|
|
Packit Service |
21c75c |
result, but if the \-\ :ref:`-disableexcludes <disableexcludes-label>` command line
|
|
Packit Service |
21c75c |
option is used, it ensures that all installed packages will be listed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list [--all] [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
Lists all packages, present in the RPMDB, in a repository or both.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list --installed [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
Lists installed packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list --available [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
Lists available packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list --extras [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
Lists extras, that is packages installed on the system that are not
|
|
Packit Service |
21c75c |
available in any known repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list --obsoletes [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages installed on the system that are obsoleted by packages in
|
|
Packit Service |
21c75c |
any known repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list --recent [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages recently added into the repositories.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list --upgrades [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List upgrades available for the installed packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] list --autoremove``
|
|
Packit Service |
21c75c |
List packages which will be removed by the ``dnf autoremove`` command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This command by default does not force a sync of expired metadata. See also :ref:`\metadata_synchronization-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _makecache_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
Makecache Command
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``makecache``
|
|
Packit Service |
21c75c |
| Aliases: ``mc``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] makecache``
|
|
Packit Service |
21c75c |
Downloads and caches metadata for all known repos. Tries to
|
|
Packit Service |
21c75c |
avoid downloading whenever possible (e.g. when the local metadata hasn't
|
|
Packit Service |
21c75c |
expired yet or when the metadata timestamp hasn't changed).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] makecache --timer``
|
|
Packit Service |
21c75c |
Like plain ``makecache``, but instructs DNF to be more resource-aware,
|
|
Packit Service |
21c75c |
meaning it will not do anything if running on battery power and will terminate
|
|
Packit Service |
21c75c |
immediately if it's too soon after the last successful ``makecache`` run
|
|
Packit Service |
21c75c |
(see :manpage:`dnf.conf(5)`, :ref:`metadata_timer_sync
|
|
Packit Service |
21c75c |
<metadata_timer_sync-label>`).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _mark_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
Mark Command
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``mark``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf mark install <package-spec>...``
|
|
Packit Service |
21c75c |
Marks the specified packages as installed by user. This can be useful if any package was installed as a dependency and is desired to stay on the system when :ref:`\autoremove_command-label` or :ref:`\remove_command-label` along with `clean_requirements_on_remove` configuration option set to ``True`` is executed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf mark remove <package-spec>...``
|
|
Packit Service |
21c75c |
Unmarks the specified packages as installed by user. Whenever you as a user don't need a specific package you can mark it for removal. The package stays installed on the system but will be removed when :ref:`\autoremove_command-label` or :ref:`\remove_command-label` along with `clean_requirements_on_remove` configuration option set to ``True`` is executed. You should use this operation instead of :ref:`\remove_command-label` if you're not sure whether the package is a requirement of other user installed packages on the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf mark group <package-spec>...``
|
|
Packit Service |
21c75c |
Marks the specified packages as installed by group. This can be useful if any package was
|
|
Packit Service |
21c75c |
installed as a dependency or a user and is desired to be protected and handled as a group
|
|
Packit Service |
21c75c |
member like during group remove.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _module_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
Module Command
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``module``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Modularity overview is available at :ref:`man page dnf.modularity(7) <modularity-label>`.
|
|
Packit Service |
21c75c |
Module subcommands take :ref:`\<module-spec>\ <specifying_modules-label>`... arguments that specify modules or profiles.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _module_install_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module install <module-spec>...``
|
|
Packit Service |
21c75c |
Install module profiles, including their packages.
|
|
Packit Service |
21c75c |
In case no profile was provided, all default profiles get installed.
|
|
Packit Service |
21c75c |
Module streams get enabled accordingly.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
c8eb20 |
This command cannot be used for switching module streams. It is recommended to remove all
|
|
Packit Service |
c8eb20 |
installed content from the module and reset the module using the
|
|
Packit Service |
c8eb20 |
:ref:`reset <module_reset_command-label>` command. After you reset the module, you can install
|
|
Packit Service |
c8eb20 |
the other stream.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module update <module-spec>...``
|
|
Packit Service |
21c75c |
Update packages associated with an active module stream, optionally restricted to a profile.
|
|
Packit Service |
21c75c |
If the `profile_name` is provided, only the packages referenced by that profile will be updated.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module remove <module-spec>...``
|
|
Packit Service |
21c75c |
Remove installed module profiles, including packages that were installed with the
|
|
Packit Service |
21c75c |
:ref:`dnf module install <module_install_command-label>` command. Will not remove packages
|
|
Packit Service |
21c75c |
required by other installed module profiles or by other user-installed packages.
|
|
Packit Service |
21c75c |
In case no profile was provided, all installed profiles get removed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module remove --all <module-spec>...``
|
|
Packit Service |
21c75c |
Remove installed module profiles, including packages that were installed with the
|
|
Packit Service |
21c75c |
:ref:`dnf module install <module_install_command-label>` command.
|
|
Packit Service |
21c75c |
With --all option it additionally removes all packages whose names are provided by specified
|
|
Packit Service |
21c75c |
modules. Packages required by other installed module profiles and packages whose names are also
|
|
Packit Service |
21c75c |
provided by any other module are not removed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _module_enable_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module enable <module-spec>...``
|
|
Packit Service |
21c75c |
Enable a module stream and make the stream RPMs available in the package set.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Modular dependencies are resolved, dependencies checked and also recursively enabled. In case
|
|
Packit Service |
21c75c |
of modular dependency issue the operation will be rejected. To perform the action anyway please use
|
|
Packit Service |
21c75c |
\-\ :ref:`-skip-broken <skip-broken_option-label>` option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
c8eb20 |
This command cannot be used for switching module streams. It is recommended to remove all
|
|
Packit Service |
c8eb20 |
installed content from the module, and reset the module using the
|
|
Packit Service |
c8eb20 |
:ref:`reset <module_reset_command-label>` command. After you reset the module, you can enable
|
|
Packit Service |
c8eb20 |
the other stream.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _module_disable_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module disable <module-name>...``
|
|
Packit Service |
21c75c |
Disable a module. All related module streams will become unavailable.
|
|
Packit Service |
21c75c |
Consequently, all installed profiles will be removed and the module RPMs
|
|
Packit Service |
21c75c |
will become unavailable in the package set. In case of modular
|
|
Packit Service |
21c75c |
dependency issue the operation will be rejected. To perform the action anyway please use \-\
|
|
Packit Service |
21c75c |
:ref:`-skip-broken <skip-broken_option-label>` option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _module_reset_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module reset <module-name>...``
|
|
Packit Service |
21c75c |
Reset module state so it's no longer enabled or disabled.
|
|
Packit Service |
21c75c |
Consequently, all installed profiles will be removed and
|
|
Packit Service |
21c75c |
only RPMs from the default stream will be available in the package set.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _module_provide_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module provides <package-name-spec>...``
|
|
Packit Service |
21c75c |
Lists all modular packages matching ``<package-name-spec>`` from all modules (including disabled), along with the modules and streams they belong to.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module list [--all] [module_name...]``
|
|
Packit Service |
21c75c |
Lists all module streams, their profiles and states (enabled, disabled, default).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module list --enabled [module_name...]``
|
|
Packit Service |
21c75c |
Lists module streams that are enabled.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module list --disabled [module_name...]``
|
|
Packit Service |
21c75c |
Lists module streams that are disabled.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module list --installed [module_name...]``
|
|
Packit Service |
21c75c |
List module streams with installed profiles.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module info <module-spec>...``
|
|
Packit Service |
21c75c |
Print detailed information about given module stream.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module info --profile <module-spec>...``
|
|
Packit Service |
21c75c |
Print detailed information about given module profiles.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module repoquery <module-spec>...``
|
|
Packit Service |
21c75c |
List all available packages belonging to selected modules.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module repoquery --available <module-spec>...``
|
|
Packit Service |
21c75c |
List all available packages belonging to selected modules.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] module repoquery --installed <module-spec>...``
|
|
Packit Service |
21c75c |
List all installed packages with same name like packages belonging to selected modules.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _provides_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
----------------
|
|
Packit Service |
21c75c |
Provides Command
|
|
Packit Service |
21c75c |
----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``provides``
|
|
Packit Service |
21c75c |
| Aliases: ``prov``, ``whatprovides``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] provides <provide-spec>``
|
|
Packit Service |
21c75c |
Finds the packages providing the given ``<provide-spec>``. This is useful
|
|
Packit Service |
21c75c |
when one knows a filename and wants to find what package (installed or not)
|
|
Packit Service |
21c75c |
provides this file.
|
|
Packit Service |
21c75c |
The ``<provide-spec>`` is gradually looked for at following locations:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
1. The ``<provide-spec>`` is matched with all file provides of any available package::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
$ dnf provides /usr/bin/gzip
|
|
Packit Service |
21c75c |
gzip-1.9-9.fc29.x86_64 : The GNU data compression program
|
|
Packit Service |
21c75c |
Matched from:
|
|
Packit Service |
21c75c |
Filename : /usr/bin/gzip
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
2. Then all provides of all available packages are searched::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
$ dnf provides "gzip(x86-64)"
|
|
Packit Service |
21c75c |
gzip-1.9-9.fc29.x86_64 : The GNU data compression program
|
|
Packit Service |
21c75c |
Matched from:
|
|
Packit Service |
21c75c |
Provide : gzip(x86-64) = 1.9-9.fc29
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
3. DNF assumes that the ``<provide-spec>`` is a system command, prepends it with ``/usr/bin/``, ``/usr/sbin/`` prefixes (one at a time) and does the file provides search again. For legacy reasons (packages that didn't do UsrMove) also ``/bin`` and ``/sbin`` prefixes are being searched::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
$ dnf provides zless
|
|
Packit Service |
21c75c |
gzip-1.9-9.fc29.x86_64 : The GNU data compression program
|
|
Packit Service |
21c75c |
Matched from:
|
|
Packit Service |
21c75c |
Filename : /usr/bin/zless
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
4. If this last step also fails, DNF returns "Error: No Matches found".
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This command by default does not force a sync of expired metadata. See also :ref:`\metadata_synchronization-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _reinstall_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
Reinstall Command
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``reinstall``
|
|
Packit Service |
21c75c |
| Aliases: ``rei``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] reinstall <package-spec>...``
|
|
Packit Service |
21c75c |
Installs the specified packages, fails if some of the packages are either
|
|
Packit Service |
21c75c |
not installed or not available (i.e. there is no repository where to
|
|
Packit Service |
21c75c |
download the same RPM).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _remove_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
Remove Command
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``remove``
|
|
Packit Service |
21c75c |
| Aliases: ``rm``
|
|
Packit Service |
21c75c |
| Aliases for :ref:`explicit NEVRA matching <specifying_nevra_matching_explicitly-label>`: ``remove-n``, ``remove-na``, ``remove-nevra``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``erase``, ``erase-n``, ``erase-na``, ``erase-nevra``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] remove <package-spec>...``
|
|
Packit Service |
21c75c |
Removes the specified packages from the system along with any packages depending on the packages being removed. Each ``<spec>`` can be either a ``<package-spec>``, which specifies a package directly, or a ``@<group-spec>``, which specifies an (environment) group which contains it. If ``clean_requirements_on_remove`` is enabled (the default), also removes any dependencies that are no longer needed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] remove --duplicates``
|
|
Packit Service |
21c75c |
Removes older versions of duplicate packages. To ensure the integrity of the system it
|
|
Packit Service |
21c75c |
reinstalls the newest package. In some cases the command cannot resolve conflicts. In such cases
|
|
Packit Service |
21c75c |
the :ref:`dnf shell <shell_command-label>` command with ``remove --duplicates`` and ``upgrade``
|
|
Packit Service |
21c75c |
dnf-shell sub-commands could help.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] remove --oldinstallonly``
|
|
Packit Service |
21c75c |
Removes old installonly packages, keeping only latest versions and version of running kernel.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
There are also a few specific remove commands ``remove-n``, ``remove-na`` and ``remove-nevra``
|
|
Packit Service |
21c75c |
that allow the specification of an exact argument in the NEVRA format.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Remove Examples
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf remove acpi tito``
|
|
Packit Service |
21c75c |
Remove the ``acpi`` and ``tito`` packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf remove $(dnf repoquery --extras --exclude=tito,acpi)``
|
|
Packit Service |
21c75c |
Remove packages not present in any repository, but don't remove the ``tito``
|
|
Packit Service |
21c75c |
and ``acpi`` packages (they still might be removed if they depend on some of the removed packages).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Remove older versions of duplicated packages (an equivalent of yum's `package-cleanup --cleandups`)::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf remove --duplicates
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _repoinfo_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
----------------
|
|
Packit Service |
21c75c |
Repoinfo Command
|
|
Packit Service |
21c75c |
----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``repoinfo``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
An alias for the :ref:`repolist <repolist_command-label>` command
|
|
Packit Service |
21c75c |
that provides more detailed information like ``dnf repolist -v``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _repolist_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
----------------
|
|
Packit Service |
21c75c |
Repolist Command
|
|
Packit Service |
21c75c |
----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``repolist``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repolist [--enabled|--disabled|--all]``
|
|
Packit Service |
21c75c |
Depending on the exact command lists enabled, disabled or all known
|
|
Packit Service |
21c75c |
repositories. Lists all enabled repositories by default. Provides more
|
|
Packit Service |
21c75c |
detailed information when ``-v`` option is used.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This command by default does not force a sync of expired metadata. See also :ref:`\metadata_synchronization-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _repoquery_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
Repoquery Command
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``repoquery``
|
|
Packit Service |
21c75c |
| Aliases: ``rq``
|
|
Packit Service |
21c75c |
| Aliases for :ref:`explicit NEVRA matching <specifying_nevra_matching_explicitly-label>`: ``repoquery-n``, ``repoquery-na``, ``repoquery-nevra``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repoquery [<select-options>] [<query-options>] [<package-file-spec>]``
|
|
Packit Service |
21c75c |
Searches available DNF repositories for selected packages and displays the requested information about them. It
|
|
Packit Service |
21c75c |
is an equivalent of ``rpm -q`` for remote repositories.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repoquery --querytags``
|
|
Packit Service |
21c75c |
Provides the list of tags recognized by the \-\ :ref:`-queryformat <queryformat_repoquery-label>` repoquery option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
There are also a few specific repoquery commands ``repoquery-n``, ``repoquery-na`` and ``repoquery-nevra``
|
|
Packit Service |
21c75c |
that allow the specification of an exact argument in the NEVRA format (does not affect arguments of options like --whatprovides <arg>, ...).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Select Options
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Together with ``<package-file-spec>``, control what packages are displayed in the output. If ``<package-file-spec>`` is given, limits the resulting set of
|
|
Packit Service |
21c75c |
packages to those matching the specification. All packages are considered if no ``<package-file-spec>`` is specified.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<package-file-spec>``
|
|
Packit Service |
21c75c |
Package specification in the NEVRA format (name[-[epoch:]version[-release]][.arch]), a package provide or a file provide. See :ref:`Specifying Packages
|
|
Packit Service |
21c75c |
<specifying_packages-label>`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-a``, ``--all``
|
|
Packit Service |
21c75c |
Query all packages (for rpmquery compatibility, also a shorthand for repoquery '*' or repoquery
|
|
Packit Service |
21c75c |
without arguments).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--arch <arch>[,<arch>...], --archlist <arch>[,<arch>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages of selected architectures (default is all
|
|
Packit Service |
21c75c |
architectures). In some cases the result is affected by the basearch of the running system, therefore
|
|
Packit Service |
21c75c |
to run repoquery for an arch incompatible with your system use the ``--forcearch=<arch>``
|
|
Packit Service |
21c75c |
option to change the basearch.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--duplicates``
|
|
Packit Service |
21c75c |
Limit the resulting set to installed duplicate packages (i.e. more package versions
|
|
Packit Service |
21c75c |
for the same name and architecture). Installonly packages are excluded from this set.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--unneeded``
|
|
Packit Service |
21c75c |
Limit the resulting set to leaves packages that were installed as dependencies so they are no longer needed. This
|
|
Packit Service |
21c75c |
switch lists packages that are going to be removed after executing the ``dnf autoremove`` command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--available``
|
|
Packit Service |
21c75c |
Limit the resulting set to available packages only (set by default).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--disable-modular-filtering``
|
|
Packit Service |
21c75c |
Disables filtering of modular packages, so that packages of inactive module streams are included in the result.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--extras``
|
|
Packit Service |
21c75c |
Limit the resulting set to packages that are not present in any of the available repositories.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-f <file>``, ``--file <file>``
|
|
Packit Service |
21c75c |
Limit the resulting set only to the package that owns ``<file>``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--installed``
|
|
Packit Service |
21c75c |
Limit the resulting set to installed packages only. The :ref:`exclude <exclude-label>` option in the configuration file
|
|
Packit Service |
21c75c |
might influence the result, but if the command line option \-\
|
|
Packit Service |
21c75c |
:ref:`-disableexcludes <disableexcludes-label>` is used, it ensures that all installed packages will be listed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--installonly``
|
|
Packit Service |
21c75c |
Limit the resulting set to installed installonly packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--latest-limit <number>``
|
|
Packit Service |
21c75c |
Limit the resulting set to <number> of latest packages for every package name and architecture.
|
|
Packit Service |
21c75c |
If <number> is negative, skip <number> of latest packages. For a negative <number> use the
|
|
Packit Service |
21c75c |
``--latest-limit=<number>`` syntax.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--recent``
|
|
Packit Service |
21c75c |
Limit the resulting set to packages that were recently edited.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--repo <repoid>``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages from a repository identified by ``<repoid>``.
|
|
Packit Service |
21c75c |
Can be used multiple times with accumulative effect.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--unsatisfied``
|
|
Packit Service |
21c75c |
Report unsatisfied dependencies among installed packages (i.e. missing requires and
|
|
Packit Service |
21c75c |
and existing conflicts).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--upgrades``
|
|
Packit Service |
21c75c |
Limit the resulting set to packages that provide an upgrade for some already installed package.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--userinstalled``
|
|
Packit Service |
21c75c |
Limit the resulting set to packages installed by the user. The :ref:`exclude <exclude-label>` option
|
|
Packit Service |
21c75c |
in the configuration file might influence the result, but if the command line option \-\
|
|
Packit Service |
21c75c |
:ref:`-disableexcludes <disableexcludes-label>` is used, it ensures that all installed packages will be listed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _whatdepends_option-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatdepends <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that require, enhance, recommend, suggest or
|
|
Packit Service |
21c75c |
supplement any of ``<capabilities>``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatconflicts <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that conflict with any of ``<capabilities>``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatenhances <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that enhance any of ``<capabilities>``. Use \-\
|
|
Packit Service |
21c75c |
:ref:`-whatdepends <whatdepends_option-label>` if you want to list all depending packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatobsoletes <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that obsolete any of ``<capabilities>``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatprovides <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that provide any of ``<capabilities>``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatrecommends <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that recommend any of ``<capabilities>``. Use \-\
|
|
Packit Service |
21c75c |
:ref:`-whatdepends <whatdepends_option-label>` if you want to list all depending packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatrequires <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that require any of ``<capabilities>``. Use \-\
|
|
Packit Service |
21c75c |
:ref:`-whatdepends <whatdepends_option-label>` if you want to list all depending packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatsuggests <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that suggest any of ``<capabilities>``. Use \-\
|
|
Packit Service |
21c75c |
:ref:`-whatdepends <whatdepends_option-label>` if you want to list all depending packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--whatsupplements <capability>[,<capability>...]``
|
|
Packit Service |
21c75c |
Limit the resulting set only to packages that supplement any of ``<capabilities>``. Use \-\
|
|
Packit Service |
21c75c |
:ref:`-whatdepends <whatdepends_option-label>` if you want to list all depending packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--alldeps``
|
|
Packit Service |
21c75c |
This option is stackable with ``--whatrequires`` or \-\
|
|
Packit Service |
21c75c |
:ref:`-whatdepends <whatdepends_option-label>` only. Additionally it adds all packages requiring
|
|
Packit Service |
21c75c |
the package features to the result set (used as default).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--exactdeps``
|
|
Packit Service |
21c75c |
This option is stackable with ``--whatrequires`` or \-\
|
|
Packit Service |
21c75c |
:ref:`-whatdepends <whatdepends_option-label>` only. Limit the resulting set only to packages
|
|
Packit Service |
21c75c |
that require ``<capability>`` specified by --whatrequires.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--srpm``
|
|
Packit Service |
21c75c |
Operate on the corresponding source RPM.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Query Options
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Set what information is displayed about each package.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The following are mutually exclusive, i.e. at most one can be specified. If no query option is given, matching packages
|
|
Packit Service |
21c75c |
are displayed in the standard NEVRA notation.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _info_repoquery-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-i, --info``
|
|
Packit Service |
21c75c |
Show detailed information about the package.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-l, --list``
|
|
Packit Service |
21c75c |
Show the list of files in the package.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``-s, --source``
|
|
Packit Service |
21c75c |
Show the package source RPM name.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--changelogs``
|
|
Packit Service |
21c75c |
Print the package changelogs.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--conflicts``
|
|
Packit Service |
21c75c |
Display capabilities that the package conflicts with. Same as ``--qf "%{conflicts}``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--depends``
|
|
Packit Service |
21c75c |
Display capabilities that the package depends on, enhances, recommends, suggests or
|
|
Packit Service |
21c75c |
supplements.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--enhances``
|
|
Packit Service |
21c75c |
Display capabilities enhanced by the package. Same as ``--qf "%{enhances}""``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--location``
|
|
Packit Service |
21c75c |
Show a location where the package could be downloaded from.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--obsoletes``
|
|
Packit Service |
21c75c |
Display capabilities that the package obsoletes. Same as ``--qf "%{obsoletes}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--provides``
|
|
Packit Service |
21c75c |
Display capabilities provided by the package. Same as ``--qf "%{provides}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--recommends``
|
|
Packit Service |
21c75c |
Display capabilities recommended by the package. Same as ``--qf "%{recommends}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--requires``
|
|
Packit Service |
21c75c |
Display capabilities that the package depends on. Same as ``--qf "%{requires}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--requires-pre``
|
|
Packit Service |
21c75c |
Display capabilities that the package depends on for running a ``%pre`` script.
|
|
Packit Service |
21c75c |
Same as ``--qf "%{requires-pre}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--suggests``
|
|
Packit Service |
21c75c |
Display capabilities suggested by the package. Same as ``--qf "%{suggests}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--supplements``
|
|
Packit Service |
21c75c |
Display capabilities supplemented by the package. Same as ``--qf "%{supplements}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--tree``
|
|
Packit Service |
21c75c |
Display a recursive tree of packages with capabilities specified by one of the following supplementary options:
|
|
Packit Service |
21c75c |
``--whatrequires``, ``--requires``, ``--conflicts``, ``--enhances``, ``--suggests``, ``--provides``,
|
|
Packit Service |
21c75c |
``--supplements``, ``--recommends``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _deplist_option-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--deplist``
|
|
Packit Service |
21c75c |
Produce a list of all direct dependencies and what packages provide those
|
|
Packit Service |
21c75c |
dependencies for the given packages. The result only shows the newest
|
|
Packit Service |
21c75c |
providers (which can be changed by using --verbose).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--nvr``
|
|
Packit Service |
21c75c |
Show found packages in the name-version-release format. Same as
|
|
Packit Service |
21c75c |
``--qf "%{name}-%{version}-%{release}"``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--nevra``
|
|
Packit Service |
21c75c |
Show found packages in the name-epoch:version-release.architecture format. Same as
|
|
Packit Service |
21c75c |
``--qf "%{name}-%{epoch}:%{version}-%{release}.%{arch}"`` (default).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--envra``
|
|
Packit Service |
21c75c |
Show found packages in the epoch:name-version-release.architecture format. Same as
|
|
Packit Service |
21c75c |
``--qf "%{epoch}:%{name}-%{version}-%{release}.%{arch}"``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _queryformat_repoquery-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--qf <format>``, ``--queryformat <format>``
|
|
Packit Service |
21c75c |
Custom display format. ``<format>`` is the string to output for each matched package. Every occurrence of
|
|
Packit Service |
21c75c |
``%{<tag>}`` within is replaced by the corresponding attribute of the package. The list of recognized tags can be displayed
|
|
Packit Service |
21c75c |
by running ``dnf repoquery --querytags``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--recursive``
|
|
Packit Service |
21c75c |
Query packages recursively. Has to be used with ``--whatrequires <REQ>``
|
|
Packit Service |
21c75c |
(optionally with ``--alldeps``, but not with ``--exactdeps``) or with
|
|
Packit Service |
21c75c |
``--requires <REQ> --resolve``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``--resolve``
|
|
Packit Service |
21c75c |
resolve capabilities to originating package(s).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Examples
|
|
Packit Service |
21c75c |
--------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display NEVRAs of all available packages matching ``light*``::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery 'light*'
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display NEVRAs of all available packages matching name ``light*`` and architecture ``noarch`` (accepts only arguments in the "<name>.<arch>" format)::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery-na 'light*.noarch'
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display requires of all lighttpd packages::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --requires lighttpd
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display packages providing the requires of python packages::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --requires python --resolve
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display source rpm of ligttpd package::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --source lighttpd
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display package name that owns the given file::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --file /etc/lighttpd/lighttpd.conf
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display name, architecture and the containing repository of all lighttpd packages::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --queryformat '%{name}.%{arch} : %{reponame}' lighttpd
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display all available packages providing "webserver"::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --whatprovides webserver
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display all available packages providing "webserver" but only for "i686" architecture::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --whatprovides webserver --arch i686
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display duplicate packages::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --duplicates
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Display source packages that require a <provide> for a build::
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
dnf repoquery --disablerepo="*" --enablerepo="*-source" --arch=src --whatrequires <provide>
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _repository_packages_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
---------------------------
|
|
Packit Service |
21c75c |
Repository-Packages Command
|
|
Packit Service |
21c75c |
---------------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``repository-packages``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``repo-pkgs``, ``repo-packages``, ``repository-pkgs``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The repository-packages command allows the user to run commands on top of all packages in the repository named ``<repoid>``. However, any dependency resolution takes into account packages from all enabled repositories. The ``<package-file-spec>`` and ``<package-spec>`` specifications further limit the candidates to only those packages matching at least one of them.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The ``info`` subcommand lists description and summary information about packages depending on the packages' relation to the repository. The ``list`` subcommand just prints lists of those packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> check-update [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
Non-interactively checks if updates of the specified packages in the repository are available. DNF exit code will be 100 when there are updates available and a list of the updates will be printed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> info [--all] [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List all related packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> info --installed [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages installed from the repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> info --available [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages available in the repository but not currently installed on the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> info --extras [<package-file-specs>...]``
|
|
Packit Service |
21c75c |
List packages installed from the repository that are not available in any repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> info --obsoletes [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages in the repository that obsolete packages installed on the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> info --recent [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages recently added into the repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> info --upgrades [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages in the repository that upgrade packages installed on the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> install [<package-spec>...]``
|
|
Packit Service |
21c75c |
Install all packages in the repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> list [--all] [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List all related packages.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> list --installed [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages installed from the repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> list --available [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages available in the repository but not currently installed on the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> list --extras [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages installed from the repository that are not available in any repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> list --obsoletes [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages in the repository that obsolete packages installed on the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> list --recent [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages recently added into the repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> list --upgrades [<package-file-spec>...]``
|
|
Packit Service |
21c75c |
List packages in the repository that upgrade packages installed on the system.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> move-to [<package-spec>...]``
|
|
Packit Service |
21c75c |
Reinstall all those packages that are available in the repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> reinstall [<package-spec>...]``
|
|
Packit Service |
21c75c |
Run the ``reinstall-old`` subcommand. If it fails, run the ``move-to`` subcommand.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> reinstall-old [<package-spec>...]``
|
|
Packit Service |
21c75c |
Reinstall all those packages that were installed from the repository and simultaneously are available in the repository.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> remove [<package-spec>...]``
|
|
Packit Service |
21c75c |
Remove all packages installed from the repository along with any packages depending on the packages being removed. If ``clean_requirements_on_remove`` is enabled (the default) also removes any dependencies that are no longer needed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> remove-or-distro-sync [<package-spec>...]``
|
|
Packit Service |
21c75c |
Select all packages installed from the repository. Upgrade, downgrade or keep those of them that are available in another repository to match the latest version available there and remove the others along with any packages depending on the packages being removed. If ``clean_requirements_on_remove`` is enabled (the default) also removes any dependencies that are no longer needed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> remove-or-reinstall [<package-spec>...]``
|
|
Packit Service |
21c75c |
Select all packages installed from the repository. Reinstall those of them that are available in another repository and remove the others along with any packages depending on the packages being removed. If ``clean_requirements_on_remove`` is enabled (the default) also removes any dependencies that are no longer needed.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> upgrade [<package-spec>...]``
|
|
Packit Service |
21c75c |
Update all packages to the highest resolvable version available in the repository.
|
|
Packit Service |
21c75c |
When versions are specified in the ``<package-spec>``, update to these versions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] repository-packages <repoid> upgrade-to [<package-specs>...]``
|
|
Packit Service |
21c75c |
A deprecated alias for the upgrade subcommand.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _search_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
Search Command
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``search``
|
|
Packit Service |
21c75c |
| Aliases: ``se``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] search [--all] <keywords>...``
|
|
Packit Service |
21c75c |
Search package metadata for keywords. Keywords are matched as case-insensitive substrings, globbing is supported.
|
|
Packit Service |
21c75c |
By default lists packages that match all requested keys (AND operation). Keys are searched in package names and summaries.
|
|
Packit Service |
21c75c |
If the "--all" option is used, lists packages that match at least one of the keys (an OR operation).
|
|
Packit Service |
21c75c |
In addition the keys are searched in the package descriptions and URLs.
|
|
Packit Service |
21c75c |
The result is sorted from the most relevant results to the least.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
This command by default does not force a sync of expired metadata. See also :ref:`\metadata_synchronization-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _shell_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
Shell Command
|
|
Packit Service |
21c75c |
-------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``shell``
|
|
Packit Service |
21c75c |
| Aliases: ``sh``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] shell [filename]``
|
|
Packit Service |
21c75c |
Open an interactive shell for conducting multiple commands during a single execution of DNF. These commands can be issued manually
|
|
Packit Service |
21c75c |
or passed to DNF from a file. The commands are much the same as the normal DNF command line options. There are a few additional
|
|
Packit Service |
21c75c |
commands documented below.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``config [conf-option] [value]``
|
|
Packit Service |
21c75c |
* Set a configuration option to a requested value. If no value is given it prints the current value.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``repo [list|enable|disable] [repo-id]``
|
|
Packit Service |
21c75c |
* list: list repositories and their status
|
|
Packit Service |
21c75c |
* enable: enable repository
|
|
Packit Service |
21c75c |
* disable: disable repository
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``transaction [list|reset|solve|run]``
|
|
Packit Service |
21c75c |
* list: resolve and list the content of the transaction
|
|
Packit Service |
21c75c |
* reset: reset the transaction
|
|
Packit Service |
21c75c |
* run: resolve and run the transaction
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Note that all local packages must be used in the first shell transaction subcommand (e.g.
|
|
Packit Service |
21c75c |
`install /tmp/nodejs-1-1.x86_64.rpm /tmp/acpi-1-1.noarch.rpm`) otherwise an error will occur.
|
|
Packit Service |
21c75c |
Any `disable`, `enable`, and `reset` module operations (e.g. `module enable nodejs`) must also
|
|
Packit Service |
21c75c |
be performed before any other shell transaction subcommand is used.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _swap_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
Swap Command
|
|
Packit Service |
21c75c |
------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``swap``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] swap <remove-spec> <install-spec>``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Remove spec and install spec in one transaction. Each ``<spec>`` can be either a
|
|
Packit Service |
21c75c |
:ref:`<package-spec> <specifying_packages-label>`, which specifies a package directly, or a
|
|
Packit Service |
21c75c |
``@<group-spec>``, which specifies an (environment) group which contains it. Automatic
|
|
Packit Service |
21c75c |
conflict solving is provided in DNF by the --allowerasing option that provides the functionality of the swap
|
|
Packit Service |
21c75c |
command automatically.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _updateinfo_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
------------------
|
|
Packit Service |
21c75c |
Updateinfo Command
|
|
Packit Service |
21c75c |
------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``updateinfo``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``list-updateinfo``, ``list-security``, ``list-sec``, ``info-updateinfo``, ``info-security``, ``info-sec``, ``summary-updateinfo``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] updateinfo [--summary|--list|--info] [<availability>] [<spec>...]``
|
|
Packit Service |
21c75c |
Display information about update advisories.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Depending on the output type, DNF displays just counts of advisory types
|
|
Packit Service |
21c75c |
(omitted or ``--summary``), list of advisories (``--list``) or detailed
|
|
Packit Service |
21c75c |
information (``--info``). The ``-v`` option extends the output. When
|
|
Packit Service |
21c75c |
used with ``--info``, the information is even more detailed. When used
|
|
Packit Service |
21c75c |
with ``--list``, an additional column with date of the last advisory update
|
|
Packit Service |
21c75c |
is added.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<availability>`` specifies whether advisories about newer versions of
|
|
Packit Service |
21c75c |
installed packages (omitted or ``--available``), advisories about equal and
|
|
Packit Service |
21c75c |
older versions of installed packages (``--installed``), advisories about
|
|
Packit Service |
21c75c |
newer versions of those installed packages for which a newer version is
|
|
Packit Service |
21c75c |
available (``--updates``) or advisories about any versions of installed
|
|
Packit Service |
21c75c |
packages (``--all``) are taken into account. Most of the time, ``--available``
|
|
Packit Service |
21c75c |
and ``--updates`` displays the same output. The outputs differ only in the
|
|
Packit Service |
21c75c |
cases when an advisory refers to a newer version but there is no enabled
|
|
Packit Service |
21c75c |
repository which contains any newer version.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Note, that ``--available`` tooks only the latest installed versions of
|
|
Packit Service |
21c75c |
packages into account. In case of the kernel packages (when multiple
|
|
Packit Service |
21c75c |
version could be installed simultaneously) also packages of the currently
|
|
Packit Service |
21c75c |
running version of kernel are added.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
To print only advisories referencing a CVE or a bugzilla use ``--with-cve`` or
|
|
Packit Service |
21c75c |
``--with-bz`` options. When these switches are used also the output
|
|
Packit Service |
21c75c |
of the ``--list`` is altered - the ID of the CVE or the bugzilla is printed
|
|
Packit Service |
21c75c |
instead of the one of the advisory.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
If given and if neither ID, type (``bugfix``, ``enhancement``,
|
|
Packit Service |
21c75c |
``security``/``sec``) nor a package name of an advisory matches
|
|
Packit Service |
21c75c |
``<spec>``, the advisory is not taken into account. The matching is
|
|
Packit Service |
21c75c |
case-sensitive and in the case of advisory IDs and package names, globbing
|
|
Packit Service |
21c75c |
is supported.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Output of the ``--summary`` option is affected by the :ref:`autocheck_running_kernel <autocheck_running_kernel-label>` configuration option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _upgrade_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
Upgrade Command
|
|
Packit Service |
21c75c |
---------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``upgrade``
|
|
Packit Service |
21c75c |
| Aliases: ``up``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``update``, ``upgrade-to``, ``update-to``, ``localupdate``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] upgrade``
|
|
Packit Service |
21c75c |
Updates each package to the latest version that is both available and
|
|
Packit Service |
21c75c |
resolvable.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] upgrade <package-spec>...``
|
|
Packit Service |
21c75c |
Updates each specified package to the latest available version. Updates
|
|
Packit Service |
21c75c |
dependencies as necessary. When versions are specified in the
|
|
Packit Service |
21c75c |
``<package-spec>``, update to these versions.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] upgrade @<spec>...``
|
|
Packit Service |
21c75c |
Alias for the `dnf module update` command.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
If the main ``obsoletes`` configure option is true or the ``--obsoletes`` flag
|
|
Packit Service |
21c75c |
is present, dnf will include package obsoletes in its calculations.
|
|
Packit Service |
21c75c |
For more information see :ref:`obsoletes <obsoletes_conf_option-label>`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
See also :ref:`\configuration_files_replacement_policy-label`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _upgrade_minimal_command-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----------------------
|
|
Packit Service |
21c75c |
Upgrade-Minimal Command
|
|
Packit Service |
21c75c |
-----------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
| Command: ``upgrade-minimal``
|
|
Packit Service |
21c75c |
| Aliases: ``up-min``
|
|
Packit Service |
21c75c |
| Deprecated aliases: ``update-minimal``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] upgrade-minimal``
|
|
Packit Service |
21c75c |
Updates each package to the latest available version that provides a bugfix, enhancement
|
|
Packit Service |
21c75c |
or a fix for a security issue (security).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf [options] upgrade-minimal <package-spec>...``
|
|
Packit Service |
21c75c |
Updates each specified package to the latest available version that provides
|
|
Packit Service |
21c75c |
a bugfix, enhancement or a fix for security issue (security). Updates
|
|
Packit Service |
21c75c |
dependencies as necessary.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _specifying_packages-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
===================
|
|
Packit Service |
21c75c |
Specifying Packages
|
|
Packit Service |
21c75c |
===================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Many commands take a ``<package-spec>`` parameter that selects a package for
|
|
Packit Service |
21c75c |
the operation. The ``<package-spec>`` argument is matched against package
|
|
Packit Service |
21c75c |
NEVRAs, provides and file provides.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<package-file-spec>`` is similar to ``<package-spec>``, except provides
|
|
Packit Service |
21c75c |
matching is not performed. Therefore, ``<package-file-spec>`` is matched only
|
|
Packit Service |
21c75c |
against NEVRAs and file provides.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<package-name-spec>`` is matched against NEVRAs only.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----
|
|
Packit Service |
21c75c |
Globs
|
|
Packit Service |
21c75c |
-----
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Package specification supports the same glob pattern matching that shell does,
|
|
Packit Service |
21c75c |
in all three above mentioned packages it matches against (NEVRAs, provides and
|
|
Packit Service |
21c75c |
file provides).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The following patterns are supported:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``*``
|
|
Packit Service |
21c75c |
Matches any number of characters.
|
|
Packit Service |
21c75c |
``?``
|
|
Packit Service |
21c75c |
Matches any single character.
|
|
Packit Service |
21c75c |
``[]``
|
|
Packit Service |
21c75c |
Matches any one of the enclosed characters. A pair of characters separated
|
|
Packit Service |
21c75c |
by a hyphen denotes a range expression; any character that falls between
|
|
Packit Service |
21c75c |
those two characters, inclusive, is matched. If the first character
|
|
Packit Service |
21c75c |
following the ``[`` is a ``!`` or a ``^`` then any character not enclosed
|
|
Packit Service |
21c75c |
is matched.
|
|
Packit Service |
c8eb20 |
``{}``
|
|
Packit Service |
c8eb20 |
Matches any of the comma separated list of enclosed strings.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
NEVRA Matching
|
|
Packit Service |
21c75c |
--------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
When matching against NEVRAs, partial matching is supported. DNF tries to match
|
|
Packit Service |
21c75c |
the spec against the following list of NEVRA forms (in decreasing order of
|
|
Packit Service |
21c75c |
priority):
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* ``name-[epoch:]version-release.arch``
|
|
Packit Service |
21c75c |
* ``name.arch``
|
|
Packit Service |
21c75c |
* ``name``
|
|
Packit Service |
21c75c |
* ``name-[epoch:]version-release``
|
|
Packit Service |
21c75c |
* ``name-[epoch:]version``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Note that ``name`` can in general contain dashes (e.g. ``package-with-dashes``).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The first form that matches any packages is used and the remaining forms are
|
|
Packit Service |
21c75c |
not tried. If none of the forms match any packages, an attempt is made to match
|
|
Packit Service |
21c75c |
the ``<package-spec>`` against full package NEVRAs. This is only relevant
|
|
Packit Service |
21c75c |
if globs are present in the ``<package-spec>``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<package-spec>`` matches NEVRAs the same way ``<package-name-spec>`` does,
|
|
Packit Service |
21c75c |
but in case matching NEVRAs fails, it attempts to match against provides and
|
|
Packit Service |
21c75c |
file provides of packages as well.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
You can specify globs as part of any of the five NEVRA components. You can also
|
|
Packit Service |
21c75c |
specify a glob pattern to match over multiple NEVRA components (in other words,
|
|
Packit Service |
21c75c |
to match across the NEVRA separators). In that case, however, you need to write
|
|
Packit Service |
21c75c |
the spec to match against full package NEVRAs, as it is not possible to split
|
|
Packit Service |
21c75c |
such spec into NEVRA forms.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _specifying_nevra_matching_explicitly-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Specifying NEVRA Matching Explicitly
|
|
Packit Service |
21c75c |
------------------------------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Some commands (``autoremove``, ``install``, ``remove`` and ``repoquery``) also
|
|
Packit Service |
21c75c |
have aliases with suffixes ``-n``, ``-na`` and ``-nevra`` that allow to
|
|
Packit Service |
21c75c |
explicitly specify how to parse the arguments:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* Command ``install-n`` only matches against ``name``.
|
|
Packit Service |
21c75c |
* Command ``install-na`` only matches against ``name.arch``.
|
|
Packit Service |
21c75c |
* Command ``install-nevra`` only matches against ``name-[epoch:]version-release.arch``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _specifying_provides-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
===================
|
|
Packit Service |
21c75c |
Specifying Provides
|
|
Packit Service |
21c75c |
===================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<provide-spec>`` in command descriptions means the command operates on
|
|
Packit Service |
21c75c |
packages providing the given spec. This can either be an explicit provide, an
|
|
Packit Service |
21c75c |
implicit provide (i.e. name of the package) or a file provide. The selection is
|
|
Packit Service |
21c75c |
case-sensitive and globbing is supported.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _specifying_groups-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
=================
|
|
Packit Service |
21c75c |
Specifying Groups
|
|
Packit Service |
21c75c |
=================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<group-spec>`` allows one to select (environment) groups a particular operation should work
|
|
Packit Service |
21c75c |
on. It is a case insensitive string (supporting globbing characters) that is
|
|
Packit Service |
21c75c |
matched against a group's ID, canonical name and name translated into the
|
|
Packit Service |
21c75c |
current LC_MESSAGES locale (if possible).
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _specifying_modules-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
==================
|
|
Packit Service |
21c75c |
Specifying Modules
|
|
Packit Service |
21c75c |
==================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<module-spec>`` allows one to select modules or profiles a particular operation should work
|
|
Packit Service |
21c75c |
on.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
It is in the form of ``NAME:STREAM:VERSION:CONTEXT:ARCH/PROFILE`` and supported partial forms are the following:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* ``NAME``
|
|
Packit Service |
21c75c |
* ``NAME:STREAM``
|
|
Packit Service |
21c75c |
* ``NAME:STREAM:VERSION``
|
|
Packit Service |
21c75c |
* ``NAME:STREAM:VERSION:CONTEXT``
|
|
Packit Service |
21c75c |
* all above combinations with ``::ARCH`` (e.g. ``NAME::ARCH``)
|
|
Packit Service |
21c75c |
* ``NAME:STREAM:VERSION:CONTEXT:ARCH``
|
|
Packit Service |
21c75c |
* all above combinations with ``/PROFILE`` (e.g. ``NAME/PROFILE``)
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
In case stream is not specified, the enabled or the default stream is used, in this order. In case profile is not specified, the system default profile or the 'default' profile is used.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _specifying_transactions-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
=======================
|
|
Packit Service |
21c75c |
Specifying Transactions
|
|
Packit Service |
21c75c |
=======================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``<transaction-spec>`` can be in one of several forms. If it is an integer, it
|
|
Packit Service |
21c75c |
specifies a transaction ID. Specifying ``last`` is the same as specifying the ID
|
|
Packit Service |
21c75c |
of the most recent transaction. The last form is ``last-<offset>``, where
|
|
Packit Service |
21c75c |
``<offset>`` is a positive integer. It specifies offset-th transaction preceding
|
|
Packit Service |
21c75c |
the most recent transaction.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _excluded_packages-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
=================
|
|
Packit Service |
21c75c |
Package Filtering
|
|
Packit Service |
21c75c |
=================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Package filtering filters packages out from the available package set, making them invisible to most
|
|
Packit Service |
21c75c |
of dnf commands. They cannot be used in a transaction. Packages can be filtered out by either
|
|
Packit Service |
21c75c |
Exclude Filtering or Modular Filtering.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
Exclude Filtering
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Exclude Filtering is a mechanism used by a user or by a DNF plugin to modify the set of available
|
|
Packit Service |
21c75c |
packages. Exclude Filtering can be modified by either :ref:`includepkgs <include-label>` or
|
|
Packit Service |
21c75c |
:ref:`excludepkgs <exclude-label>` configuration options in
|
|
Packit Service |
21c75c |
:ref:`configuration files <conf_ref-label>`. The -:ref:`-disableexcludes <disableexcludes-label>`
|
|
Packit Service |
21c75c |
command line option can be used to override excludes from configuration files. In addition to
|
|
Packit Service |
21c75c |
user-configured excludes, plugins can also extend the set of excluded packages. To disable excludes
|
|
Packit Service |
21c75c |
from a DNF plugin you can use the -:ref:`-disableplugin <disableplugin-label>` command line option.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
To disable all excludes for e.g. the install command you can use the following combination
|
|
Packit Service |
21c75c |
of command line options:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``dnf --disableexcludes=all --disableplugin="*" install bash``
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
Modular Filtering
|
|
Packit Service |
21c75c |
-----------------
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Please see :ref:`the modularity documentation <modularity-label>` for details on how Modular
|
|
Packit Service |
21c75c |
Filtering works.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
With modularity, only RPM packages from ``active`` module streams are included in the available
|
|
Packit Service |
21c75c |
package set. RPM packages from ``inactive`` module streams, as well as non-modular packages with
|
|
Packit Service |
21c75c |
the same name or provides as a package from an ``active`` module stream, are filtered out. Modular
|
|
Packit Service |
21c75c |
filtering is not applied to packages added from the command line, installed packages, or packages
|
|
Packit Service |
21c75c |
from repositories with ``module_hotfixes=true`` in their ``.repo`` file.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Disabling of modular filtering is not recommended, because it could cause the system to get into
|
|
Packit Service |
21c75c |
a broken state. To disable modular filtering for a particular repository, specify
|
|
Packit Service |
21c75c |
``module_hotfixes=true`` in the ``.repo`` file or use ``--setopt=<repo_id>.module_hotfixes=true``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
To discover the module which contains an excluded package use
|
|
Packit Service |
21c75c |
:ref:`dnf module provides <module_provide_command-label>`.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _metadata_synchronization-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
========================
|
|
Packit Service |
21c75c |
Metadata Synchronization
|
|
Packit Service |
21c75c |
========================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
Correct operation of DNF depends on having access to up-to-date data from all enabled repositories but contacting remote mirrors on every operation considerably slows it down and costs bandwidth for both the client and the repository provider. The :ref:`metadata_expire <metadata_expire-label>` (see :manpage:`dnf.conf(5)`) repository configuration option is used by DNF to determine whether a particular local copy of repository data is due to be re-synced. It is crucial that the repository providers set the option well, namely to a value where it is guaranteed that if particular metadata was available in time ``T`` on the server, then all packages it references will still be available for download from the server in time ``T + metadata_expire``.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
To further reduce the bandwidth load, some of the commands where having up-to-date metadata is not critical (e.g. the ``list`` command) do not look at whether a repository is expired and whenever any version of it is locally available to the user's account, it will be used. For non-root use, see also the ``--cacheonly`` switch. Note that in all situations the user can force synchronization of all enabled repositories with the ``--refresh`` switch.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _configuration_files_replacement_policy-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
======================================
|
|
Packit Service |
21c75c |
Configuration Files Replacement Policy
|
|
Packit Service |
21c75c |
======================================
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
The updated packages could replace the old modified configuration files
|
|
Packit Service |
21c75c |
with the new ones or keep the older files. Neither of the files are actually replaced.
|
|
Packit Service |
21c75c |
To the conflicting ones RPM gives additional suffix to the origin name. Which file
|
|
Packit Service |
21c75c |
should maintain the true name after transaction is not controlled by package manager
|
|
Packit Service |
21c75c |
but is specified by each package itself, following packaging guideline.
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _files-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
Files
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``Cache Files``
|
|
Packit Service |
21c75c |
/var/cache/dnf
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``Main Configuration``
|
|
Packit Service |
21c75c |
/etc/dnf/dnf.conf
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
``Repository``
|
|
Packit Service |
21c75c |
/etc/yum.repos.d/
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _see_also-label:
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
See Also
|
|
Packit Service |
21c75c |
========
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
* :manpage:`dnf.conf(5)`, :ref:`DNF Configuration Reference <conf_ref-label>`
|
|
Packit Service |
21c75c |
* :manpage:`dnf-PLUGIN(8)` for documentation on DNF plugins.
|
|
Packit Service |
21c75c |
* :manpage:`dnf.modularity(7)`, :ref:`Modularity overview <modularity-label>`.
|
|
Packit Service |
21c75c |
* :manpage:`dnf-transaction-json(5)`, :ref:`Stored Transaction JSON Format Specification <transaction_json-label>`.
|
|
Packit Service |
21c75c |
* `DNF`_ project homepage (https://github.com/rpm-software-management/dnf/)
|
|
Packit Service |
21c75c |
* How to report a bug (https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting)
|
|
Packit Service |
21c75c |
* `YUM`_ project homepage (http://yum.baseurl.org/)
|
|
Packit Service |
21c75c |
|
|
Packit Service |
21c75c |
.. _dnf config-manager: https://dnf-plugins-core.readthedocs.org/en/latest/config_manager.html
|