...
Code Block | ||
---|---|---|
| ||
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n |
Cleaning up Packages and their Configurations
...
Check for applications that have configurations left behind:
Code Block language bash dpkg --list | grep '^rc\b'
Now you can to a dpkg -P for each individual package, or if you wish to purge everything in the list, you can run the following command:
Code Block language bash dpkg --list | grep '^rc\b' | awk '{ print $2 }' | xargs dpkg -P
To finish, you run the following commands to finalize the cleanup, and sync of apt-cache and lists:
Code Block language bash apt-get autoremove apt-get clean
Manually Uninstall Package
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
mv /var/lib/dpkg/info/PACKAGE.* /tmp/ dpkg --remove --force-remove-reinstreq PACKAGE |
...