You are not logged in.

#1 2016-01-05 05:39:56

ShaneHutter
Member
From: Newcastle, Australia
Registered: 2015-06-01
Posts: 15
Website

[solved] pacstrap cache changeing

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-devel

I 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

#2 2016-01-05 07:09:38

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [solved] pacstrap cache changeing

...--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

#3 2016-01-05 22:58:37

ShaneHutter
Member
From: Newcastle, Australia
Registered: 2015-06-01
Posts: 15
Website

Re: [solved] pacstrap cache changeing

Thank you, and yes I did mean --cachedir.


Never ESC:q! on your dreams!!!

Offline

#4 2016-01-08 00:07:32

ShaneHutter
Member
From: Newcastle, Australia
Registered: 2015-06-01
Posts: 15
Website

Re: [solved] pacstrap cache changeing

I'm reopening this, because

pacstrap -c --cachedir /path_to_custom_cache_dir

Doesn't seem to work.

I get
==> ERROR: pacstrap: invalid option -- '-'


Never ESC:q! on your dreams!!!

Offline

#5 2016-01-08 00:32:49

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [solved] pacstrap cache changeing

Ugh, the new_root...

pacstrap -c /mnt/ --cachedir /path_to_custom_cache_dir

Offline

#6 2016-01-08 03:14:23

ShaneHutter
Member
From: Newcastle, Australia
Registered: 2015-06-01
Posts: 15
Website

Re: [solved] pacstrap cache changeing

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

Board footer

Powered by FluxBB