Re: sistemare distribuzione
Ciao,
Mon, Feb 17, 2003 at 09:27:11PM +0100, Marco Gaiarin wrote:
> LO> come posso fare?
io ho fatto, se questo puo' esserti utile, uno script:
#!/bin/bash
dpkg --get-selections > lista
server1="http://ftp.debian.org/"
server2="http://nonus.debian.org/debian-non-US/"
server3="http://security.debian.org/debian-security/"
for pacchetto in `cat lista | cut -f 1`
do
filename=`apt-cache show $pacchetto | grep ^Filename | cut -d " " -f
2`
if [ $filename ]
then
echo "**"$filename"**"
wget -Y off $server1$filename >> output 2>&1
wget -Y off $server2$filename >> output 2>&1
wget -Y off $server3$filename >> output 2>&1
fi
done
ti scarica tutti i .deb dei pacchetti installati, poi li scompatti in una
dir qualsiasi (esempio /tmp) con dpkg -X pacchetto.deb . e hai tutti i file
che dovrebbero essere nel tuo sistema...
Una lamerata ? puo' essere, ma a me e' servita :)
--
Bye Enrico - Le finestre sono spiragli di finta liberta'. Scegli Linux.
The Buddha, the Godhead, resides quite as comfortably in the circuits of a
digital computer or the gears of a cycle transmission as he does at the top
of a mountain or in the petals of a flower. To think otherwise is to demean
the Buddha -- which is to demean oneself.
-- Robert Pirsig, "Zen and the Art of Motorcycle Maintenance"
Reply to: