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
- https://manpages.debian.org/stable/ucf/ucf.1
- https://manpages.debian.org/stable/dpkg/dpkg.1.en.html#Filesystem_filenames
Filesystem filenames During unpacking and configuration
dpkguses various filenames for backup and rollback purposes. The following is a simplified explanation of how these filenames get used during package installation.[..]
*.dpkg-oldDuring configuration, when installing a new version,dpkgcan make a backup of the previous modified conffile intopathname.dpkg-old.
*.dpkg-distDuring configuration, when keeping the old version,dpkgcan make a backup of the new unmodified conffile intopathname.dpkg-dist.