Mercurial > hg > config
annotate bin/really-remove-deb.sh @ 731:e56610c5ece2
now we need pkg-config for pygraphviz
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 01 Feb 2015 21:15:45 +0000 |
parents | f3c73873bcb5 |
children |
rev | line source |
---|---|
677
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
1 #!/bin/bash |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
2 # -*- coding: utf-8 -*- |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
3 |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
4 # really remove Ubuntu packages |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
5 # http://www.piprime.fr/1480/manually-remove-broken-package-debian-ubuntu/ |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
6 |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
7 for PACKAGE in $@ |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
8 do |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
9 echo "Removing ${PACKAGE}" |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
10 sudo mv /var/lib/dpkg/info/${PACKAGE}.* /tmp/ |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
11 sudo dpkg --remove --force-remove-reinstreq ${PACKAGE} |
f3c73873bcb5
script to really forecably remove debian packages
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
12 done |