Blame doc/debug.rst

Packit 3a9065
..
Packit 3a9065
  Copyright (C) 2015  Red Hat, Inc.
Packit 3a9065
Packit 3a9065
  This copyrighted material is made available to anyone wishing to use,
Packit 3a9065
  modify, copy, or redistribute it subject to the terms and conditions of
Packit 3a9065
  the GNU General Public License v.2, or (at your option) any later version.
Packit 3a9065
  This program is distributed in the hope that it will be useful, but WITHOUT
Packit 3a9065
  ANY WARRANTY expressed or implied, including the implied warranties of
Packit 3a9065
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
Packit 3a9065
  Public License for more details.  You should have received a copy of the
Packit 3a9065
  GNU General Public License along with this program; if not, write to the
Packit 3a9065
  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Packit 3a9065
  02110-1301, USA.  Any Red Hat trademarks that are incorporated in the
Packit 3a9065
  source code or documentation are not subject to the GNU General Public
Packit 3a9065
  License and may only be used or replicated with the express permission of
Packit 3a9065
  Red Hat, Inc.
Packit 3a9065
Packit 3a9065
================
Packit 3a9065
DNF debug Plugin
Packit 3a9065
================
Packit 3a9065
Packit 3a9065
-----------
Packit 3a9065
Description
Packit 3a9065
-----------
Packit 3a9065
Packit Service 6746a6
The plugin provides two dnf commands:
Packit Service 6746a6
Packit Service 6746a6
``debug-dump``
Packit Service 6746a6
    Writes system RPM configuration to a dump file
Packit Service 6746a6
Packit Service 6746a6
``debug-restore``
Packit Service 6746a6
    Restore the installed packages to the versions written in the dump file. By
Packit Service 6746a6
    default, it does not remove already installed versions of install-only
Packit Service 6746a6
    packages and only marks those versions that are mentioned in the dump file
Packit Service 6746a6
    for installation. The final decision on which versions to keep on the
Packit Service 6746a6
    system is left to dnf and can be fine-tuned using the `installonly_limit`
Packit Service 6746a6
    (see :manpage:`dnf.conf(5)`) configuration option.
Packit 3a9065
Packit 3a9065
.. note:: DNF and Yum debug files are not compatible and thus can't be used
Packit 3a9065
          by the other program.
Packit 3a9065
Packit 3a9065
--------
Packit 3a9065
Synopsis
Packit 3a9065
--------
Packit 3a9065
Packit 3a9065
``dnf debug-dump [--norepos] [<filename>]``
Packit 3a9065
Packit 3a9065
``dnf debug-restore [--output] [--install-latest] [--ignore-arch]
Packit 3a9065
[--filter-types = [install,remove,replace]] <filename>``
Packit 3a9065
Packit 3a9065
---------
Packit 3a9065
Arguments
Packit 3a9065
---------
Packit 3a9065
Packit 3a9065
``<filename>``
Packit 3a9065
    File to write dump to or read from.
Packit 3a9065
Packit 3a9065
-------
Packit 3a9065
Options
Packit 3a9065
-------
Packit 3a9065
Packit 3a9065
All general DNF options are accepted, see `Options` in :manpage:`dnf(8)` for details.
Packit 3a9065
Packit 3a9065
``dnf debug-dump``
Packit 3a9065
Packit 3a9065
``--norepos``
Packit 3a9065
    Do not dump content of enabled repos.
Packit 3a9065
Packit 3a9065
``dnf debug-restore``
Packit 3a9065
Packit Service 6746a6
``--filter-types=[install,remove,replace]``
Packit Service 6746a6
    Limit package changes to specified type.
Packit 9df71d
Packit Service 4c2e05
``--ignore-arch``
Packit Service 4c2e05
    When installing package ignore architecture and install missing packages
Packit Service 4c2e05
    matching the name, epoch, version and release.
Packit 6bee63
Packit Service 6746a6
``--install-latest``
Packit Service 6746a6
    When installing use the latest package of the same name and architecture.
Packit Service 6746a6
Packit Service 6746a6
``--output``
Packit Service 6746a6
    Only output list of packages which will be installed or removed.
Packit Service 6746a6
    No actuall changes are done.
Packit Service 6746a6
Packit Service 6746a6
``--remove-installonly``
Packit Service 6746a6
    Allow removal of install-only packages. Using this option may result in an
Packit Service 6746a6
    attempt to remove the running kernel version (in situations when the currently
Packit Service 6746a6
    running kernel version is not part of the dump file).