Mercurial > hg > config
comparison bin/really-remove-deb.sh @ 677:f3c73873bcb5
script to really forecably remove debian packages
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 10 May 2014 10:38:56 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
676:1e1bed921c08 | 677:f3c73873bcb5 |
---|---|
1 #!/bin/bash | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 # really remove Ubuntu packages | |
5 # http://www.piprime.fr/1480/manually-remove-broken-package-debian-ubuntu/ | |
6 | |
7 for PACKAGE in $@ | |
8 do | |
9 echo "Removing ${PACKAGE}" | |
10 sudo mv /var/lib/dpkg/info/${PACKAGE}.* /tmp/ | |
11 sudo dpkg --remove --force-remove-reinstreq ${PACKAGE} | |
12 done |