Jump to content

Apt cache: Difference between revisions

From base48
Vega (talk | contribs)
new page!
 
Vega (talk | contribs)
mNo edit summary
 
Line 3: Line 3:
To use the cache simply create a file '''''/etc/apt/apt.conf.d/00baseaptproxy''''' containing the line  
To use the cache simply create a file '''''/etc/apt/apt.conf.d/00baseaptproxy''''' containing the line  
  Acquire::http::Proxy "<nowiki>http://apt-cacher-ng.at.base48.cz:3142</nowiki>";
  Acquire::http::Proxy "<nowiki>http://apt-cacher-ng.at.base48.cz:3142</nowiki>";
or run this scriptlet:
echo 'Acquire::http::Proxy "<nowiki>http://apt-cacher-ng.at.base48.cz:3142</nowiki>";' > /etc/apt/apt.conf.d/00baseaptproxy && apt update
No other configuration needed. Beware: downloading anything will fail if the proxy is down or you're not on base lan, so this is best used for containers/vms on the [[Proxmox|proxmox cluster]], not on your personal laptop, at least not permanently. Running '''apt update''' is all that's needed to apply the changes in proxy settings.  
No other configuration needed. Beware: downloading anything will fail if the proxy is down or you're not on base lan, so this is best used for containers/vms on the [[Proxmox|proxmox cluster]], not on your personal laptop, at least not permanently. Running '''apt update''' is all that's needed to apply the changes in proxy settings.  
[[Category:Services]]
[[Category:Services]]

Latest revision as of 21:48, 24 May 2026

base lan has an apt cache deployed, with the intention to allow people using ubuntu/debian based distros or containers to download and update their packages faster from a lan cache instead of using the flaky starlink uplink.

To use the cache simply create a file /etc/apt/apt.conf.d/00baseaptproxy containing the line

Acquire::http::Proxy "http://apt-cacher-ng.at.base48.cz:3142";

or run this scriptlet:

echo 'Acquire::http::Proxy "http://apt-cacher-ng.at.base48.cz:3142";' > /etc/apt/apt.conf.d/00baseaptproxy && apt update

No other configuration needed. Beware: downloading anything will fail if the proxy is down or you're not on base lan, so this is best used for containers/vms on the proxmox cluster, not on your personal laptop, at least not permanently. Running apt update is all that's needed to apply the changes in proxy settings.