Pages

Wednesday, August 6, 2014

dpkg: purge all packages matching some name

$ sudo dpkg -P $(dpkg -l yourPkgName* | awk '$2 ~ /yourPkgName.*/ && $1 ~ /.i/ {print $2}')

Recently in Debian Wheezy the dpkg command refuses to work with wildcards, so this is the one-liner alternative. (alternative to #13614)




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1sdYj1K

No comments:

Post a Comment