From ArchWiki
Jump to navigation Jump to search

zypper rm -u does not remove orphans of a package that was removed

zypper rm -u requires an argument, for example a package name. The command can only remove orphans of a package during removal of that package. Once the package is removed, the command will not be equivalent to pacman -Qdtq | pacman -Rs -.

zypper >= 1.9.2 can list orphans after a package was removed by using --unneeded. See this issue and the manual.

--Markus00000 (talk) 07:39, 25 August 2016 (UTC)

Indeed. It seems zypper rm -u is equivalent to pacman -Ru. On the other side, the command zypper pa --unneeded prints all unneeded packages, but not in easily pipe-able output for a remove command. How about "zypper pa --unneeded to list packages, then append them to zypper rm" ? -- Josephgbr (talk) 17:35, 27 August 2019 (UTC)


I think a row for pacdiff(8) with stuff like rpmconf -a would be helpful, but I'm not sure which would be the best section for it. -- ImNtReal (talk) 14:16, 4 January 2017 (UTC)

What about adding a new section, titled handling user modification to configuration files? How the other distributions handle that? Regid (talk) 12:32, 22 August 2020 (UTC)

Verification and repair

I think paccheck(1) should probably be mentioned here since pacman -Qk does not use checksums like debsums does -- Norgaladir (talk) 17:47, 5 February 2021 (UTC)