[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: togliere ximian per passare a woody



On Wed, 2001-12-12 at 10:53, Paolo Ariano wrote:
> sib sob qualche mese or sono, ho messo ximian nel source.list ...
> mmm a distanza vorrei disinstallarla (vedi *ranzare via*) e passare a
> woody. Fog mi suggeri' il seguente comando :
> 
> apt-get --purge remove `awk '/ximian/ {print $1}' RS="" FS="n"
> /var/lib/dpkg/status | sed -e 's/Package://'`

dovrebbe essere FS="\n", con uno sleah (il newline, insomma) non "n" e
basta. comunque ecco uno scriptino adeguato allo scopo. lanciare com
permessi di root, giuro che non fa "rm -fr /" :)

ciao,
federico
 
-- 
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
INIT.D Developer                                           fog@initd.org
          The reverse side also has a reverse side.  -- Japanese proverb
#!/bin/sh
#
# ximian-killer.sh - little script to remove ximian packages
# Copyright (c) 2001 Federico Di Gregorio <fog@debian.org>
#
# This script is placed in the public domain. Distribute it 
# any way you want, really...

PACKAGES="`awk '/ximian/ && /Status: install/ {print $1}' RS="" FS="\n" /var/lib/dpkg/status | sed -e 's/Package://'`"

echo "Welcome to Ximian-killer, the automated package cleanser." 
echo "Copyright (c) 2001 Federico Di Gregorio <fog@debian.org>"
echo
echo "The following packages have the word ximian in their name or version"
echo -n "and will be removed: "

for p in $PACKAGES ; do
    echo -n "$p "
done
echo ; echo
echo -n "Really remove them? [Y/n]: "
read ANS

if [ "$ANS" = "N" -o "$ANS" = "n" ] ; then
    echo "Fine. <g>"
    exit 0
fi

echo Very good! Removing the packages...
echo

apt-get --purge remove $PACKAGES

Attachment: pgpEbIph4UGwQ.pgp
Description: PGP signature


Reply to: