Thursday, April 25, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1376  / 2 Years ago, tue, june 21, 2022, 11:58:12

I have a apt-cacher-ng server on my LAN network, and I was wondering how I could "force" pbuilder to use it (to speed up package builds).



Typical setup client-side of the cache goes something like this:



In /etc/apt/apt.conf:



Acquire::http { Proxy "http://servername:3142"; };


More From » apt-cacher-ng

 Answers
4

Like this:



$ sudo pbuilder --login --save-after-login
# echo 'Acquire::http { Proxy "http://servername:3142"; };' > /etc/apt/apt.conf.d/02proxy
# exit
$


Alternatively, you could use the --execute option:



$ sudo pbuilder --execute --save-after-exec -- /tmp/setup-apt-proxy.sh


... where /tmp/setup-apt-proxy.sh contains commands to create /etc/apt/apt.conf.d/02proxy.


[#40901] Wednesday, June 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pheter

Total Points: 223
Total Questions: 111
Total Answers: 119

Location: Guadeloupe
Member since Sat, Aug 22, 2020
4 Years ago
;