Ubuntu upgrades

Paul Gear paul at libertysys.com.au
Tue Jul 1 21:24:43 BST 2008


ishwor wrote:
> ...
> One way of doing this is manually. 
> # apt-get clean;
> # aptitude upgrade;
> 
> The download packages are locally stored in /var/cache/apt; stay there.
> 
> Mount the other box as nfs share (or through fuse/sshfs if you prefer. nfs 
> requires setup at the other end. sshfs just requires fuse+sshd at the other 
> end)-
> # mount -t nfs other.box.ip.addy:/some/exported.share /mnt/local.dir/
> # cp /var/cache/apt/*.deb /mnt/local.dir/

A simpler method than NFS would be rsync:
	aptitude install rsync # on both systems
	cd /var/cache/apt
	rsync -av . otherbox:/var/cache/apt # replace /var/cache/apt
					    # with $PWD if you prefer

> Now go to other box-
> # cd /some/exported.share/
> # dpkg -i *.deb;

Now this will get you in big trouble.  What if you have different
packages on the different boxes?  You'll get dependency problems.  The
simple thing to do after you've rsynced the apt cache is just upgrade
normally - it will use the cached files instead of downloading them again.

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4633 bytes
Desc: S/MIME Cryptographic Signature
Url : https://lists.ubuntu.com/archives/ubuntu-au/attachments/20080702/654fc75e/attachment.bin 


More information about the ubuntu-au mailing list