Skip to content

fhd/dpkg-purge-deleted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

dpkg-purge-deleted

Removes all deleted but not purged packages on Debian and Ubuntu systems.

Rationale

When you remove packages via dpkg, apt-get or aptitude, it doesn't remove everything, it leaves things like configuration files behind. You can tell each of these commands to delete those as well (i.e. purge), but I sometimes forget. Plus apt-get autoremove can't do it.

In the past few years, I regularly did something like this:

for i in `dpkg -l | grep ^rc | cut -d" " -f 3`; do dpkg -P $i; done

But today I was fed up with that. Today I created this script.

Installation

Download the script, put in on root's $PATH and make it executable.

Usage

Just execute dpkg-purge-deleted as root. Don't worry, it will ask you before purging anything.

About

Removes all deleted but not purged packages on Debian and Ubuntu systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages