You are not logged in.

#1 2014-03-17 17:40:38

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

[Solved] Replacing package cache directory for pacman

Hi
I want to replace "/var/cache/pacman/pkg" by "/home/zetro/linux/arch/pkg" for caching pacman packages, so that pacman always looks and saves packages in /home/zetro/linux/arch/pkg. Can I do it by simply uncommenting

#CacheDir    = /var/cache/pacman/pkg/

line in /etc/pacman.conf or is there anything else to do?
Regards

Last edited by zetrotrack000 (2014-03-18 11:38:03)

Offline

#2 2014-03-17 17:43:03

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Replacing package cache directory for pacman

That's all, just uncomment that line and edit as required.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-03-17 17:43:57

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] Replacing package cache directory for pacman

That's it pretty much, yes.

Also make sure to read the related manpage (man pacman.conf) for a full overview of the available options.


Burninate!

Offline

#4 2014-03-17 17:48:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Replacing package cache directory for pacman

I'm not sure if paccache picks the cachedir from pacman.conf, I think you may need to specify it with the '-c' switch.
Just something to remember.

Offline

#5 2014-03-18 11:37:39

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] Replacing package cache directory for pacman

I have changed the cache dir in pacman.conf and currently it is working fine, If any thing goes wrong I will report here. Thanks

Offline

Board footer

Powered by FluxBB