Tuesday, September 21, 2010

Idea for peer-updating Debian/Ubuntu systems

Maybe someday I can setup a tool to do half of this for me in a peer-to-peer app: it'd be nice to run something that searched all local systems via IPv6 fe80 addresses to see if anyone has the latest set of debs & pull their copy; most of the sites I support use T1 or DSL connections, so downloading is a pain.
sudo bash (or su root)
cd /var/cache/apt/archives && sftp USER@COMPUTER:/var/cache/apt/archives

--- in sftp ---
get *.deb
quit
---

apt-get update && apt-get dist-upgrade -y --force-yes --fix-missing
apt-get dist-upgrade -y --force-yes --fix-missing
reboot

No comments:

Post a Comment