dpkg

Table of Contents

1. List which package provides /path/to/file

dpkg -S /usr/bin/vim

2. List files installed by package

dpkg -L newsboat

3. List of recently installed packages

grep " install " /var/log/dpkg.log

4. The *.dpkg-* and *.ucf-* files in /etc

Filesystem filenames During unpacking and configuration dpkg uses various filenames for backup and rollback purposes. The following is a simplified explanation of how these filenames get used during package installation.

[..]

*.dpkg-old During configuration, when installing a new version, dpkg can make a backup of the previous modified conffile into pathname.dpkg-old.

*.dpkg-dist During configuration, when keeping the old version, dpkg can make a backup of the new unmodified conffile into pathname.dpkg-dist.

5. Related nodes

6. References

ven. 11 sept. 2026

Generated with Emacs 30.1 (Org mode 9.7.11)