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
[EMAIL PROTECTED] [EMAIL PROTECTED]
pgpBWeY6TSku5.pgp
Description: PGP signature

