You are not logged in.

#1 2017-08-12 10:25:48

7thSon
Member
Registered: 2017-05-07
Posts: 186

[SOLVED ]How to manage disk space on /

So I see that my / keeps filling up, and is now at 93% full and climbing. This is because of updates downloaded by pacman, as I dont download or create big files otherwise on the filesystem. How can I clean up or keep this space under control so that I don't end up with a completely full root folder? What are good practices for this?

Last edited by 7thSon (2017-08-18 05:56:30)

Offline

#2 2017-08-12 11:13:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED ]How to manage disk space on /

You just delete packages you deem unnecessary from the cache?
You could conduct a find to only delete files older than a certain time or whatever - there's no best practice.

After a "major" update I wait for the next reboot, ensure that I still got network and then just nuke the pacman cache. If I really ever feel like I need older package versions later on, I'd fetch them from the archives.

Offline

#3 2017-08-12 11:28:16

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

Re: [SOLVED ]How to manage disk space on /

You could create a pacman hook that calls the required paccache commands after every update.

Edit - I knew I'd seen it somewhere...
https://bbs.archlinux.org/viewtopic.php … 3#p1694743

Last edited by Slithery (2017-08-12 11:29:12)


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

#4 2017-08-12 12:55:19

Blasphemist
Member
From: Colorado
Registered: 2013-01-17
Posts: 160

Re: [SOLVED ]How to manage disk space on /

I'd start with using paccache to leave in place all but the current versions and one more of all packages.

# paccache -rk 1

Then evaluate how much that helped and see if you need to look elsewhere for space.


Simple and Open

Offline

#5 2017-08-12 20:41:42

7thSon
Member
Registered: 2017-05-07
Posts: 186

Re: [SOLVED ]How to manage disk space on /

Thanks!

paccache -rk 1

This just recovered 5GiB of space on my root partition, so now I'm back to pretty reasonable levels.

Offline

#6 2017-08-12 21:52:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [SOLVED ]How to manage disk space on /

Blasphemist wrote:

I'd start with using paccache to leave in place all but the current versions and one more of all packages.

# paccache -rk 1

Your advice doesn't match your command.  To acheive that you should be using -rk2 not -rk1.  -ruk0 is also useful to get rid of all cached packages that are no longer installed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2017-08-13 01:13:32

Blasphemist
Member
From: Colorado
Registered: 2013-01-17
Posts: 160

Re: [SOLVED ]How to manage disk space on /

Trilby wrote:

Your advice doesn't match your command.  To acheive that you should be using -rk2 not -rk1.  -ruk0 is also useful to get rid of all cached packages that are no longer installed.

Thanks for picking me up!


Simple and Open

Offline

Board footer

Powered by FluxBB