Skip to content

Standard sizes of /usr and /var

I just randomly ran a disk usage check today, and I found that /usr and /var are occupying way too much of my space.

​

I get the reason why /usr occupies so much space (all the binaries and stuff; I also have ~1120 packages installed), but I don't get why /var is taking so much of space. Can anyone provide a reason for it? And, is it normal?

​

Here is the output for du -sh /*.

0 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
b4gnpl

Author

16
posts
132
comments
6
media
View profile

11 comments

Probably Pacman's cache. Did you remove the old package archives recently?

3 points

I have never cleared the cache, or the archive.

Is it recommended?

2 points

Not the full clearing but there is a command in the Wiki that lets you keep 3 versions of each package in case you need a small downgrade.

2 points
unknown author

Deleted before we saved it.

1 points

/var contains all system logs, caches and application data. It can grow to 100s of GB depending on what you do. For example I have docker and it regularly grows that large as it stores all the container volumes and images in /var/lib/docker. The Packman cache is also located there which can grow to 10s of GB over time.

1 points

I don't have it on a seperate partition. I have three partitions for my Linux installation, i.e. boot, swap, and the rest. (I am talking of HDD partitions)

You're correct. Most of my var is occupied by docker and Pacman cache. I have cleared it up a bit, now.

1 points

Ah, sorry I am not sure why I got that impression, completely miss read it.

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