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

Re: dpkg --set-selections



ciao Roberto Zanasi,

> Devo ripristinare una /usr danneggiata, ho dato la lista dei pacchetti
> in pasto a dpkg --set-selections, e poi come devo fare per dirgli di
> installare? Per ora non succede nulla, digerisce la lista senza dire
> nulla. Mi sfugge qualcosa...

# cat apt-duplicate.sh  
#!/bin/sh
OPT=$1

if [ "$OPT" = "save" ] ; then
	echo "dpkg --get-selections > dpkg--get-selections.txt"
	dpkg --get-selections > dpkg--get-selections.txt
	exit 0
fi

if [ "$OPT" = "load" ] ; then
	echo "dpkg --set-selections < dpkg--get-selections.txt"
	dpkg --set-selections < dpkg--get-selections.txt
	apt-get dselect-upgrade
	exit 0
fi

echo "errore, save o load"

-- 
Paolo Pedaletti, Como, ITALYa     www.fastflow.it/~paolop
paolop@matapp.unimib.it           paped@jabber.org

Attachment: pgpor3UonHwwh.pgp
Description: PGP signature


Reply to: