Archive
Posts Tagged ‘update’
Update several machines
September 30, 2010
Leave a comment
As the release date of the new Ubuntu is approaching, it’s time to revise how to update several machines without downloading the packages on each machine. There is a simple solution for this:
- Upgrade the first machine normally.
- Then copy the .deb packages from
/var/cache/apt/archivesto the other machine.
Careful, don’t run apt-get clean on the first machine before copying the packages because clean will delete these files. Of course, after copying the .deb files you can run the clean command.
Categories: ubuntu
multiple machines, several machines, update
Update script
September 30, 2010
1 comment
For updating my Ubuntu, I use the following script:
#!/usr/bin/bash # good_shape.sh sudo dpkg --configure -a\ && sudo apt-get -f install\ && sudo apt-get --fix-missing install\ && sudo apt-get clean\ && sudo apt-get update\ && sudo apt-get upgrade\ && sudo apt-get dist-upgrade\ && sudo apt-get clean\ && sudo apt-get autoremove
As it calls apt-get clean, it’ll remove the previously downloaded .deb packages which is usually no problem. If you don’t want that, here is a modified version of the same same script without apt-get clean:
#!/usr/bin/bash # good_shape_safe.sh sudo dpkg --configure -a\ && sudo apt-get -f install\ && sudo apt-get --fix-missing install\ && sudo apt-get update\ && sudo apt-get upgrade\ && sudo apt-get dist-upgrade\ && sudo apt-get autoremove
I execute this script every day if I don’t forget that.