Skip to content

Commit 7cba81e

Browse files
committed
[doc] Update documentation of remove --oldinstallonly
1 parent 031b424 commit 7cba81e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

doc/cli_vs_yum.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -387,15 +387,15 @@ Original YUM tool New DNF command Pack
387387

388388
Detailed table for ``package-cleanup`` replacement:
389389

390-
================================== =====================================
391-
``package-cleanup --dupes`` ``dnf repoquery --duplicates``
392-
``package-cleanup --leaves`` ``dnf repoquery --unneeded``
393-
``package-cleanup --orphans`` ``dnf repoquery --extras``
394-
``package-cleanup --oldkernels`` ``dnf repoquery --installonly``
395-
``package-cleanup --problems`` ``dnf repoquery --unsatisfied``
396-
``package-cleanup --cleandupes`` ``dnf remove --duplicates``
397-
``package-cleanup --oldkernels`` ``dnf remove --oldinstallonly``
398-
================================== =====================================
390+
========================================== ===============================================================
391+
``package-cleanup --dupes`` ``dnf repoquery --duplicates``
392+
``package-cleanup --leaves`` ``dnf repoquery --unneeded``
393+
``package-cleanup --orphans`` ``dnf repoquery --extras``
394+
``package-cleanup --problems`` ``dnf repoquery --unsatisfied``
395+
``package-cleanup --cleandupes`` ``dnf remove --duplicates``
396+
``package-cleanup --oldkernels`` ``dnf remove --oldinstallonly``
397+
``package-cleanup --oldkernels --keep=2`` ``dnf remove $(dnf repoquery --installonly --latest-limit=-2)``
398+
========================================== ===============================================================
399399

400400
=============================
401401
yum-updateonboot and yum-cron

doc/command_ref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ Remove Command
10611061
dnf-shell sub-commands could help.
10621062

10631063
``dnf [options] remove --oldinstallonly``
1064-
Removes old installonly packages, keeping only ``installonly_limit`` latest versions.
1064+
Removes old installonly packages, keeping only latest versions and version of running kernel.
10651065

10661066
There are also a few specific remove commands ``remove-n``, ``remove-na`` and ``remove-nevra``
10671067
that allow the specification of an exact argument in the NEVRA format.

0 commit comments

Comments
 (0)