Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] How to change the Default folder of AptCacherNg

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
makh
Posts: 651
Joined: 2011-10-09 09:16

[SOLVED] How to change the Default folder of AptCacherNg

#1 Post by makh »

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.
ThinkPad E14: Arch, Debian Stable
GUI: Xfce

For new: Try MX Linux, Linux Mint; later join Debian Stable

User avatar
makh
Posts: 651
Joined: 2011-10-09 09:16

Re: How to change the Default folder of AptCacherNg

#2 Post by makh »

Hi

I tested this for arch:
https://wiki.archlinux.org/index.php/Pa ... cman_cache
This worked.

Can I do the same in Debian?

Thankyou
ThinkPad E14: Arch, Debian Stable
GUI: Xfce

For new: Try MX Linux, Linux Mint; later join Debian Stable

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: How to change the Default folder of AptCacherNg

#3 Post by CwF »

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.

User avatar
makh
Posts: 651
Joined: 2011-10-09 09:16

Re: How to change the Default folder of AptCacherNg

#4 Post by makh »

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
ThinkPad E14: Arch, Debian Stable
GUI: Xfce

For new: Try MX Linux, Linux Mint; later join Debian Stable

Post Reply