mkdir -p /root/bin/
vi /root/bin/purge
#!/bin/bash
apt -y autoremove
dpkg -l | grep ^rc | awk '{print $2}'
vi /root/bin/purgepurge
#!/bin/bash
echo -n purging...
dpkg -l | grep ^rc | awk '{print $2}' | xargs dpkg --purge && echo done
chmod +x /root/bin/purge /root/bin/purgepurge
Show some package’s dependencies and enhancements,
apt depends unbound
List installed package’s content,
dpkg -L unbound-anchor
From what package does this file come from?
dpkg -S /usr/sbin/unbound-anchor
What package is going to provide some file e.g. the ods-ksmutil executable?
apt install apt-file apt-file update apt-file search ods-ksmutil
List not yet installed package’s content,
apt-file list ods-ksmutil