Operating the Debian Packaging System

Usefull Wrappers

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

Against installed packages

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

Against not yet installed packages

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

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun