Elektrine lite

← Feed

@Ooops@feddit.org

2026-10-20 23:05 UTC

When config files change with an update pacman writes the new one as a .pacnew file in case you did personal changes to your existing config. pacdiff basically just searches for .pacnew files and then queries you what to do with each. You can define a viewer via a DIFFPROG= variable (I simply use vim -d) and compare the new default config file with the existing one side-by-side (with differences highlighted), so you can either copy your personal edits to the new one or copy additional or changed default options to your old one, whatever is easier. After that you have the option to dismiss/delete the .pacnew file or rename it to replace the old one. PS: pacdiff is part of the pacman-contrib package. That package also provide checkupdate. Running pacman -Syu updates your package list to the recent one, then updates all your outdated packages. You are not actually supposed to update the list, then abort the update of packages or just update some of them because Archlinux always assumes up-to-date systems (see: unsupported partial upgrades). So pacman should not be used to just chekc for available updates without updating. That’s where checkupdates comes in, simulating pacman -Syu without actually touching your system and just getting a list of available updates.

Replies (0)

No replies.