You are not logged in.

#1 2012-05-27 01:19:18

manasij7479
Member
Registered: 2011-10-20
Posts: 31

Can I soft-link /var/cache/pacman/pkg without issues ?

Well, I just did so, after running out of place on my root partition. (It took me a while to discover that my X server not starting was caused by that.)
I moved the whole folder (quite a few gigs) to home , without changing ownership or permissions and created a soft link to the original place.
So far, everything is running fine.
But is there any potential problem I should be worried about ?

Offline

#2 2012-05-27 01:21:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: Can I soft-link /var/cache/pacman/pkg without issues ?

Not in my experience.  I link mine in some virtualboxes as well as in my chroots to /tmp so it gets nuked upon a reboot.  Why not use cacheclean?

Last edited by graysky (2012-05-27 01:23:19)

Offline

#3 2012-05-27 01:28:59

manasij7479
Member
Registered: 2011-10-20
Posts: 31

Re: Can I soft-link /var/cache/pacman/pkg without issues ?

graysky wrote:

Why not use cacheclean?

Nice, didn't know about that.

Offline

#4 2012-05-27 01:31:57

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: Can I soft-link /var/cache/pacman/pkg without issues ?

You can modify the cache location in /etc/pacman.conf:

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

:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-05-27 01:35:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can I soft-link /var/cache/pacman/pkg without issues ?

Or reorganise your partitions - take some space from /home and make a /var partition.

Offline

#6 2012-05-27 02:30:28

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Can I soft-link /var/cache/pacman/pkg without issues ?

Works fine for me, for quite some time.

$ ls -l /var/cache/pacman/pkg
lrwxrwxrwx 1 root root 20 Jan 27  2011 /var/cache/pacman/pkg -> /mnt/Haven/packages/

If we're going to talk about package cache maintenance tools, there's an officially supported tool in pacman-contrib: paccache.

Last edited by falconindy (2012-05-27 02:31:11)

Offline

Board footer

Powered by FluxBB