aquaballoon

APT Cacher Server

Jun 22nd, 2011
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. A.Server Setup
  2.  
  3. $ sudo apt-get install apt-cacher
  4.  
  5. $ sudo gedit /etc/default/apt-cacher
  6. # set to 1 to start the daemon at boot time
  7. AUTOSTART=1
  8.  
  9. $ sudo /usr/share/apt-cacher/apt-cacher-import.pl -s /var/cache/apt/archives
  10.  
  11. $ sudo /etc/init.d/apt-cacher start
  12.  
  13.  
  14. B.Client Setup
  15.  
  16. $ sudo gedit /etc/apt/apt.conf.d/01proxy
  17. Acquire::http::Proxy "http://your-server:3142/apt-cacher/";
Advertisement
Add Comment
Please, Sign In to add comment