Useful Debian commands while debugging new packages

Dry-run installation of packages
sudo apt-get install -s packagename
Removing packages and purging configuration
sudo apt-get remove --purge packagename
Update package repository
sudo apt-get update
Clean local cache of downloaded packages in /var/cache/apt/
sudo apt-get clean
mike – Wed, 2006 – 01 – 11 23:59