Skip to content

Var is too full to update

failed to commit transaction due to lack of free disk space . Any idea how I can fix this without removing checkspace in pacman.conf?

12 points12 comments
Open on Reddit
About this post
Posted
Archived
Score
12 · 100% up
Kind
Text
ID
29hdtv

Author

13
posts
46
comments
0
media
View profile

12 comments

sudo find /var/cache/pacman/pkg -ctime +30 -delete

(double-check that before using, but unless I've screwed that up it should purge all saved package files older than one month, while keeping more recent ones. Change the +30 to a lower number to delete more.)

If you're not worried about reinstalling older or current packages without having to redownload, you can just "sudo rm /var/cache/pacman/pkg/*".

1 points

Thank you, does the second command not do the same as "sudo pacman -Scc" though?

2 points

Looking at the man page, yeah, it pretty much does.

All those years on Slackware and I have a tendency to revert to "generic" commands even when I don't need to...

6 points

sudo pacman -Rcc should clear all the temps in var

-3 points

do you mean 'sudo pacman -Scc' ?

5 points

Also see: paccache --help

Before you run pacman -Scc make sure you don't need packages from the cache:

Use one --clean switch to only remove packages that are no longer installed; use two to remove all files from the cache.

7 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.