-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tips #13
Comments
Do not symlink |
Hi, Thank you for tips @solsticedhiver :)
As for the line
Thank you @anatol for this pretty good piece of software. |
Thank for @solsticedhiver and @okalm .These suggestions are very useful. |
I have a small tip to add for anyone else who wants to run the pacoloco caching proxy on an arm64 SBC. You can compile on powerful system and then copy binary to SBC. The host system does not need to be Arch based to run pacoloco, as we can see from the Dockerfile as an example. To compile for a Pine64 device for example, clone the pacoloco git repo, change into its directory, and then run these two commands: export GOARCH=arm64
go build From there, I used the Arch PKGBUILD file to guide me on where to place the binary and config files on the system. This is how Arch does it:
Doing those steps on Debian works as well. Finally, you will want to create a system account and
When testing on a client, be sure to do Next step would be to rightfully package it for Debian, but that hasn't been done yet. |
Any issues with setting |
One issue would a race condition between pacoloco when it downloading a package; and local pacman when it also tries to check/download the same package. |
Wouldn't pacoloco have to download the file completely before being able to serve it to the host's pacman instance? Or is the issue that pacoloco could be triggered to start downloading, the host pacman gives up on pacoloco for some reason and also starts downloading simultaneously from another mirror? |
@fhteagle you end up having two processes (pacoloco and pacman) trying to write on the same package file |
This is not a bug report but more about sharing my uses around pacoloco. I don't know if it is suitable to be added as tips or notes to your README.
As I don't like the time related cleanup of pacoloco, I have setup paccache to cleanup pacoloco cache using
paccache -r -k 2 -c /var/cache/pacoloco/pkgs/archlinux
The host running pacoloco (most likely running archlinux) will see a duplication of package present on disk. The package archives are both present in
/var/cache/pacoloco
/var/cache/pacman/pkg
So I have setup that host to use localhost pacoloco mirror and changed
/etc/pacman.conf
to use aCacheDir
to point to a directory in/tmp
The duplication is still there. I have added a .conf in
/etc/tmpfiles.d
to create my directory in/tmp
at boot.For example, in
/etc/tmpfiles.d/pacman-pkg-cache.conf
:And a .service and a .timer systemd file to clean up the
/tmp/pacman-pkg-cache.d
dirThe second "tip" is more questionnable and might not suit everyone.
The text was updated successfully, but these errors were encountered: