File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -387,15 +387,15 @@ Original YUM tool New DNF command Pack
387387
388388Detailed 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=============================
401401yum-updateonboot and yum-cron
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments