Talk:Pacman/Rosetta

From ArchWiki

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)Reply

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)Reply

pacdiff?

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)Reply

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)Reply

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)Reply

Commands for removing dependencies and for removing configuration files

Currently the page claims that pacman -Rs is equivalent to apt remove; however, while pacman -Rs recursively removes packages (which removes dependencies), apt remove only remove the binaries. The correct command on Debian would be apt autoremove.

Also, it would be nice to include pacman -Rn (apt purge) and 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.

See https://askubuntu.com/a/380030.

ClimbTheStairs (talk) 22:00, 5 December 2021 (UTC)Reply