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 -.
- Indeed. It seems
zypper rm -uis equivalent to
pacman -Ru. On the other side, the command
zypper pa --unneededprints all unneeded packages, but not in easily pipe-able output for a remove command. How about "
zypper pa --unneededto list packages, then append them to
zypper rm" ? -- Josephgbr (talk) 17:35, 27 August 2019 (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
Commands for removing dependencies and for removing configuration files
Currently the page claims that
pacman -Rs is equivalent to
pacman -Rs recursively removes packages (which removes dependencies),
apt remove only remove the binaries.
The correct command on Debian would be
Also, it would be nice to include
pacman -Rn (
pacman -Rns (
apt autoremove --purge),
as when one removes a package,
one may also want to remove the unneeded configuration files.
I would add them myself,
but I do not know the equivalent on the other distros.