You are not logged in.
Pages: 1
Is it possible to change the cache for pacstrap?
pacman does this
pacman --changedir /mnt/cachelocation -S $(< whateverpackages)can I do something similar with the caching in
pacstrap /mnt base base-develI saw something in a help file about a -c switch for pacstrap to make it use another cahce.
Last edited by ShaneHutter (2016-01-08 03:14:57)
Never ESC:q! on your dreams!!!
Offline
...--changedir? You mean --cachedir right?
pacstrap would pass for example "--cachedir /mnt/var/cache/pacman/pkg" to pacman if the "-c" switch is not used, so if you wanna use custom cache dir, you can do something like `pacstrap -c --cachedir /path_to_custom_cache_dir`.
If all you wish is to make it use /var/cache/pacman/pkg on the "host side", -c alone is enough.
Offline
Thank you, and yes I did mean --cachedir.
Never ESC:q! on your dreams!!!
Offline
I'm reopening this, because
pacstrap -c --cachedir /path_to_custom_cache_dirDoesn't seem to work.
I get
==> ERROR: pacstrap: invalid option -- '-'
Never ESC:q! on your dreams!!!
Offline
Ugh, the new_root...
pacstrap -c /mnt/ --cachedir /path_to_custom_cache_dirOffline
The problem exists between keyboard and chair.
I had my arguments in the wrong order and it is working fine now. Thanks again.
Never ESC:q! on your dreams!!!
Offline
Pages: 1