How to see /etc files have been changed after installing the DEB

DEB packages often contain configuration files installed under /etc. To see if an admin has changed any package provided configuration files, use the following command:

$ dpkg-query -W -f='${Conffiles}\n' '*' |
  awk 'OFS="  "{print $2,$1}' |
  md5sum -c 2>/dev/null |
  awk -F': ' '$2 !~ /OK/{print $1}'

Source: https://serverfault.com/a/90401


~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert