33
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 20 Oct 2026
33 points (90.2% liked)
Linux
68215 readers
490 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 7 years ago
MODERATORS
When config files change with an update pacman writes the new one as a .pacnew file instead of overwriting the existing one. That's always an issue with updates on config files (although one less severe on slow updating distros). Do you keep the old config to keep your changes intact while ignoring new default options that should be in there or do you replace the old config with a recent one but risk using manual edits?
pacdiffbasically 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 usevim -dbecause that's already my editor of choice but the package pullsdiffutilsas a dependency so justdiffworks, too) 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:
pacdiffis part of thepacman-contribpackage. That package also providescheckupdates.Running
pacman -Syuupdates 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). Sopacmanshould not be used to just check for available updates without updating. That's wherecheckupdatescomes in, simulatingpacman -Syuwithout actually touching your system and just getting a list of available updates.PPS: the AUR has a similiar
aur-check-updatestools to do the same for AUR packages.