How to check for modified config files on a Debian system?

To find all Debian managed configuration files which have been changed from the default you can use a command like this. dpkg-query -W -f=”${Conffiles}\n” ‘*’ | awk ‘OFS=” “{print $2,$1}’ | md5sum -c 2>/dev/null | awk -F’: ‘ ‘$2 !~ /OK/{print $1}’ Edit (works with localized systems): dpkg-query -W -f=”${Conffiles}\n” ‘*’ | awk ‘OFS=” “{print … Read more

What is the debian-sys-maint MySQL user (and more)?

What is debian-sys-maint used for? One major thing it is used for is telling the server to roll the logs. It needs at least the reload and shutdown privilege. See the file /etc/logrotate.d/mysql-server It is used by the /etc/init.d/mysql script to get the status of the server. It is used to gracefully shutdown/reload the server. … Read more

What does “debconf: delaying package configuration, since apt-utils is not installed” mean?

apt-utils contains the /usr/bin/apt-extracttemplates program which is used when packages need to ask you questions about how to be configured. This package being Priority: important, means it should really be installed except in rare circumstances. If there is configuration pending, dpkg-reconfigure [package] will perform it. If you missed configuring a number of packages and don’t … Read more

list all packages from a repository in ubuntu / debian

Simple: grep -h -P -o “^Package: \K.*” /var/lib/apt/lists/ppa.launchpad.net_*_Packages | sort -u Or more flexible: grep-dctrl -sPackage . /var/lib/apt/lists/ppa.launchpad.net_*_Packages For fancier querying, use apt-cache policy and aptitude as described here: aptitude search ‘~O LP-PPA-gstreamer-developers’

mysqldump to a tar.gz

mysqldump –opt <database> | gzip -c | ssh user@wherever ‘cat > /tmp/yourfile.sql.gz’ You can’t use tar in a pipe like this, and you don’t need it anyway, as you’re only outputting a single file. tar is only useful if you have multiple files.