Remove all Development packages from Debian

Another cool one liner to remove all development packages to clean your Debian.

# aptitude remove `dpkg -l | grep -e \-dev | sed 's/ii//g' \| sed 's/rc//g' | sed 's/^ *//;s/ *$//' \| sed 's/ \+ /\t/g' | cut -f 1`

This entry was tagged: debian, cli, linux

Share this post:

Discussions/Feedback.

comments powered by Disqus