Skip to content
Simple Update

Configuration files

When an update brings a new version of a configuration file you changed, the package manager keeps your version and leaves the new one beside it. Simple Update shows how the two differ and lets you choose which one to keep, saving the other first.

The files it finds#

Leftover Left by Means
foo.conf.pacnew pacman A new version of a file you changed
foo.conf.dpkg-dist, foo.conf.ucf-dist dpkg, ucf A new version of a file you changed
foo.conf.pacsave pacman Your old version of a file it replaced or stopped using
foo.conf.dpkg-old dpkg Your old version of a file it replaced or stopped using

Only leftovers under /etc are listed. Some look like these but aren't waiting for you, so they're left out:

Reviewing them#

The files are listed under Needs Attention on the start page and in an update's summary. In a terminal, simple-update --config-files goes through them one by one; it never runs with --yes, since it doesn't change a file without asking.

Each file is shown with how it differs from the file in use, from the older version to the newer one. Files only root can read, such as /etc/shadow, can't be compared. For each one you choose:

Leftover Keep the one in use Put the leftover in use
A new version (.pacnew, .dpkg-dist, .ucf-dist) Keep the Current Version removes the new one Use the New Version replaces the file in use with it
An old version (.pacsave, .dpkg-old) Remove the Old Version removes it Restore the Old Version puts it back in place of the file in use

A new version of /etc/logrotate.conf compared with the one in use, removed lines in red and added lines in green, with Keep the Current Version and Use the New Version

To merge the changes line by line instead, edit the file in use with sudoedit, then choose Keep the Current Version. On Arch, sudo pacdiff does the same interactively.

Backups#

Nothing is lost either way. The helper first copies the file it replaces or removes into /var/lib/simple-update/config-backups/, in a directory for each change named after its time and under its own path, such as config-backups/20261117-214130/etc/pacman.conf.

Files it never replaces#

Some files are only ever kept, never replaced, because a package's default for them can lock everyone out or stop the computer from starting. Merge these by hand:

A .dpkg-new file is left by a dpkg run that didn't finish. Finishing it puts the file in place, so it can only be looked at; see Interrupted updates.

How it's protected#

The helper accepts only leftovers it finds under /etc itself, so a caller can't name another file, and leaves symbolic links alone. While it works, it holds the same lock as an update and the package manager's own lock (dpkg's frontend lock, or pacman's db.lck), so the package manager can't write the files meanwhile.

View this page's source · Documentation for Simple Update 1.3.2