[SOLVED] How to change the Default folder of AptCacherNg

If none of the more specific forums is the right place to ask

[SOLVED] How to change the Default folder of AptCacherNg

Postby makh » 2018-08-10 00:40

Hi

I was looking into:
https://wiki.debian.org/AptCacherNg

It uses by default:
Code: Select all
/var/cache/apt-cacher-ng/


Can I use:
Code: Select all
/var/cache/apt/archives/

... instead.

But I see a small issue: /var/cache/apt-cacher-ng/ has sub folders system.

Thankyou
Last edited by makh on 2018-09-23 10:36, edited 1 time in total.
HP Probook 440 G2: Arch, Debian Stable
Server: none
Past: Debian, Centos, Ubuntu, Opensuse
GUI: Openbox, Cinnamon
Chroot: Debian, Ubuntu, Fedora
VM: Devuan

Employing the best:
Arabic
Debian
Homeopathic

For new: Try Linux Mint
User avatar
makh
 
Posts: 622
Joined: 2011-10-09 09:16

Re: How to change the Default folder of AptCacherNg

Postby makh » 2018-08-13 14:08

Hi

I tested this for arch:
https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Network_shared_pacman_cache
This worked.

Can I do the same in Debian?

Thankyou
HP Probook 440 G2: Arch, Debian Stable
Server: none
Past: Debian, Centos, Ubuntu, Opensuse
GUI: Openbox, Cinnamon
Chroot: Debian, Ubuntu, Fedora
VM: Devuan

Employing the best:
Arabic
Debian
Homeopathic

For new: Try Linux Mint
User avatar
makh
 
Posts: 622
Joined: 2011-10-09 09:16

Re: How to change the Default folder of AptCacherNg

Postby CwF » 2018-08-13 15:59

For an alternative to a complete package solution you could use the package dpkg-dev.

Arrange your pool how and where you like and serve it up as you like.

from a terminal in the top of your structure run
Code: Select all
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz


along with an http solution you can also make it local with sources.list something like
deb [trusted=yes] file:///pool/dists/stretch/binary-amd64/ ./


In my arrangement this pool is served up by passing around a usb, either real or as a qcow2. Works fine.
CwF
 
Posts: 168
Joined: 2018-06-20 15:16

Re: How to change the Default folder of AptCacherNg

Postby makh » 2018-09-23 10:35

Hi
I was concerned for the efficiency in download: the servers own apt downloaded in separate.
... So, I tested one more configuration: used apt-chacher-ng for the server access to the debian files. Interestingly, for server itself, it works in reverse!

But it was not the direct solution.

Thankyou
HP Probook 440 G2: Arch, Debian Stable
Server: none
Past: Debian, Centos, Ubuntu, Opensuse
GUI: Openbox, Cinnamon
Chroot: Debian, Ubuntu, Fedora
VM: Devuan

Employing the best:
Arabic
Debian
Homeopathic

For new: Try Linux Mint
User avatar
makh
 
Posts: 622
Joined: 2011-10-09 09:16


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable