-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make local pacman use flexo's cache #64
Comments
So far, I've dealt with this problem by setting the It might be possible to solve this problem without making any changes to Flexo: according to
However, currently it does not work to just set something like:
But this seems to be due to the fact that Flexo currently does not cache I've created a separate issue for this (#65). As soon as Flexo caches |
Thanks for the reply! You wrote:
I found out that using it as:
Is actually a valid solution for the local pacman.. ! I've tested it with a single package that I've downloaded from remote machine that used Flexo as its mirror, and then tried to install that same package on the Flexo server, it worked thus it did not seem that |
Sounds good! I haven't investigated if and why pacman was really falling back to downloading the entire file when the Just to reiterate: If you want pacman to directly fetch existing files from the file system instead of downloading them via HTTP and storing a redundant copy, modify your
If you use any additional repositories, you need to add more You might also want to replace the first
to avoid redundant package files: |
It would be really great to somehow make local pacman use flexo's cache as a cache directory for local system updates;
So for example:
pacman -S
that package,My suggestion is to not indulge pacman to download this certain package from localhost flexo service (thus creating a wasteful copy of the file),
But instead to directly install it from flexo's cache!
I've though of few approaches:
pacman
to officially support storing and using its' system cache in flexo's format (aka the mirror-able tree structure)./var/cache/flexo/pkg/
create a new directory (lets call it./pacman/
for demonstration);/var/cache/flexo/pkg/pacman/*
/etc/pacman.conf
Edit:
I would gladly contribute but unfortunately i don't know Rust (yet!?).
The text was updated successfully, but these errors were encountered: