I have about 5 (I think) Raspberry Pis now and I was wondering how to upgrade them all without them all having to download every package.
1 Answer
I found a quick way to upgrade multiple Pis is by first upgrading one pi.
Put in a USB flash and mount it:
sudo mkdir -p /mnt/usb; sudo mount /dev/sda1 /mnt/usb)
tar cf /mnt/usb/up.tar /var/cache/apt/archives
sudo umount /mnt/usb
- Insert USB flash in other Pis to be upgraded and mount it.
- At the terminal type:
tar xf /mnt/usb/up.tar
cd var/cache/archives
sudo cp -n *.deb /var/cache/apt/archives
sudo apt-get upgrade
cd ..; rm -rf var
Now the upgrade will already have all the files and it will not download anything making upgrades tons faster.
-
I removed the "community wiki" status here -- you don't have to use that. See: raspberrypi.stackexchange.com/help/privileges/… ).– goldilocks ♦Dec 7, 2014 at 13:51
-
1
-
If you don't care about downloading, you could use multiple SSH ( Pssh ) Dec 9, 2014 at 12:22
-
2A more hands free approach could be to do this with rsync. Sure you still have the network load, but at least it's entirely internal. The speed from reading across the local network should be fairly similar to that of a USB drive. Dec 9, 2014 at 21:56