Shared / persistent package manager cache for distroboxes? #1769
Unanswered
einarpersson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I use
distrobox assemble create --file dev.ini
for creating a dev container that installs a number of binaries and then exports them to the host. I like having it all declared in a file which I have in my dotfiles git repo.However, every time I add a new binary to my
dev.ini
(underadditional_packages
andexported_bins
) and recreate the container I suppose the package manager (pacman
here) has to re-download all packages from a remote repository. I know that I could of course just run something likedistrobox enter ...
but I would like the.ini
-file to be the single source of truth.So I thought - can I perhaps create a directory on the host (in the home folder) and mount it in the location of the pacman cache directory in the container, so that it at least doesn't have to redownload all stuff everytime I recreate the container?
Will this pattern work, do you think?
I suppose the same thing could be asked for other package managers such as
dnf
andapt
Beta Was this translation helpful? Give feedback.
All reactions