You are not logged in.

#1 2011-08-30 19:20:05

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

[SOLVED] Pacman package cache issues in /var

Hello smile

I have a 502.03 MiB partition for /var and I keep getting the message below when trying to install some packages that require a large amount of dependencies:

error: error writing to file '/var/cache/pacman/pkg/empathy-3.0.2-2-x86_64.pkg.tar.xz.part': No space left on device

(Above is just an example of when trying to install Empathy before clearing my package cache as stated below)

I have to keep running 'sudo pacman -Scc' to clear the cache, which of course isn't the best practice s I would have no means of downgrading a package if an update broke my system.

Are there any means by which I can solve this issue?

Thanks in advance.

Last edited by Starfall (2011-08-31 18:31:21)


Visit my blog and my DeviatArt page

Offline

#2 2011-08-30 19:23:35

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

Re: [SOLVED] Pacman package cache issues in /var

You need a bigger /var partition or remove the separate /var altogether.

You can still use http://arm.konnichi.com/search/ for downgrading using e.g. https://aur.archlinux.org/packages.php?ID=31937

Last edited by karol (2011-08-30 19:27:36)

Offline

#3 2011-08-30 19:55:46

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Pacman package cache issues in /var

Thanks for the reply karol.

Let's say i boot into Gparted like and change the sizes of my partitions to make /var bigger, is this going to break my system?

What steps need to be taken?

Thanks for your help, appreciate it.


Visit my blog and my DeviatArt page

Offline

#4 2011-08-30 19:57:30

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] Pacman package cache issues in /var

You may also try another cache folder instead. Its location can be set in the CacheDir variable in /etc/pacman.conf.
See "man pacman.conf" for more detail.


To know or not to know ...
... the questions remain forever.

Offline

#5 2011-08-30 19:58:59

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: [SOLVED] Pacman package cache issues in /var

If you have enough space on your root partition, isn't it easier to just use that instead and remove the seperate /var like karol says?

In any case, backup your system before you resize partitions.

Offline

#6 2011-08-30 20:28:49

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Pacman package cache issues in /var

I think it'd be best practice to just configure pacman to use a different directory. I only set /var on a separate partition as I was advised /var on it's own partition using reiserfs would make pacman perform better.

If I just remove the /var partition in Gparted and extend my /root to use the rest of the disk (they're the only two partitions I have on my primary drive) will Arch create it's own /var in /root? Or are there steps I'll have to take to manually make/specify the /var location?


Visit my blog and my DeviatArt page

Offline

#7 2011-08-31 00:13:03

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,674
Website

Re: [SOLVED] Pacman package cache issues in /var

You can look at the CacheDir option in pacman.conf and move your cache somewhere else.  That leaves your pacman database on your /var partition and saves you breaking stuff trying to remove the /var partition.

Offline

#8 2011-08-31 12:53:32

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: [SOLVED] Pacman package cache issues in /var

Excellent smile

Thanks very much Allan, I'll try it as soon as I'm home

EDIT:

Great! That's solved it, I just created a hidden directory under my home directory (because I know space will never be an issue there) and set Pacman to store it's cache there. Just did a full system update of all my packages, there was quite a lot to be done and it worked flawlessly!

Thanks very much for all your help everyone smile

Last edited by Starfall (2011-08-31 18:31:04)


Visit my blog and my DeviatArt page

Offline

Board footer

Powered by FluxBB