Skip to content

Commit

Permalink
Add docs for history --contains-pkgs=.. option
Browse files Browse the repository at this point in the history
Also enhances description of `group` `--contains-pkgs=..` option and
history command changes.
  • Loading branch information
kontura committed Jan 3, 2025
1 parent 457d22a commit 9cfa03d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/changes_from_dnf4.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ Changes to individual commands
* Dropped. The functionality is replaced by the ``--help`` option.

``history``
* Subcommands are now mandatory: ``dnf history`` has to be now ``dnf5 history list``.
* The ``history`` commands now only accept transaction ID arguments; to filter by packages, use the ``--contains-pkgs=PACKAGE_NAME,...`` option, available for ``list`` and ``info``.
* ``undo`` subcommand now accepts ``--ignore-extras`` and ``--ignore-installed`` like original ``history replay`` command.
* ``store`` subcommand now creates a directory with transaction JSON file instead of a single transaction JSON file directly.
* ``store`` subcommand's ``--output`` option now accepts a directory path instead of a file. The default is ``./transaction``.
Expand Down
2 changes: 1 addition & 1 deletion doc/commands/group.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Options for ``list`` and ``info``
``--hidden``
| Show also hidden groups.
``--contains-pkgs``
``--contains-pkgs=PACKAGE_NAME,...``
| Show only groups containing packages with specified names. List option, supports globs.

Expand Down
4 changes: 4 additions & 0 deletions doc/commands/history.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ Options for ``list`` and ``info``
``--reverse``
| Reverse the order of transactions in the output.
``--contains-pkgs=PACKAGE_NAME,...``
| Show only transactions containing packages with specified names.
| This is a list option. Globs are supported.

Options for ``undo``, ``rollback`` and ``redo``
===============================================
Expand Down

0 comments on commit 9cfa03d

Please sign in to comment.