You are not logged in.

#1 2018-06-11 17:54:21

jmannonpdx
Member
Registered: 2018-05-29
Posts: 6

[Solved] Where is all of my disk space!!

I have been running Arch for the past couple of weeks and moved from Ubuntu.  Somehow my build is using 74GB!!!!  When I was using Ubuntu, with the same dev tools setup I was using around 30Gb.  With Gnome + Ubuntu, I used Disk Usage Analyzer to look over my hard drive, but it doesn't seem to be available for Arch + KDE, can anyone recommend an alternative?.  Could it have to so something with how i'm managing packages?  I am using pacman -R 'package' to remove packages, is that the correct way?

Last edited by jmannonpdx (2018-06-11 19:56:07)

Offline

#2 2018-06-11 18:05:06

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 74

Re: [Solved] Where is all of my disk space!!

Lots of ways to do this, but for a nice gui app and since you're already running Plasma I highly recommend filelight. Just make sure that you run with kdesu if you need to scan over restricted folders etc.

Last edited by CarbonChauvinist (2018-06-11 18:05:30)

Offline

#3 2018-06-11 18:12:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 5,266

Re: [Solved] Where is all of my disk space!!

Usual suspects if you've installed many packages is the pacman cache. You might want to look into that: https://wiki.archlinux.org/index.php/Pa … kage_cache

Offline

#4 2018-06-11 18:28:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 19,988
Website

Re: [Solved] Where is all of my disk space!!

jmannonpdx wrote:

I am using pacman -R 'package' to remove packages, is that the correct way?

That is one valid way, but often not the best as it will leave behind "orphans" or packages that were installed as dependencies of the package you removed.  You should read the pacman man page and consider adding the 's' and perhaps 'n' flags to that.  My 'default' method of removing packages is `pacman -Rsn ...`

You can check for orphans with `pacman -Qdt` and if you want to remove all the packages in that list, `pacman -Rsn $(pacman -Qdtq)`.  You can add a second 't' for an even more inclusive list, but remove those with care as they may be optionally required by packages you have installed.

As for what's using your space, I'd just use `du`.

Last edited by Trilby (2018-06-11 18:29:39)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2018-06-11 19:13:31

kokoko3k
Member
Registered: 2008-11-14
Posts: 1,746

Re: [Solved] Where is all of my disk space!!

ncdu is also really handy

Offline

#6 2018-06-11 19:52:02

jmannonpdx
Member
Registered: 2018-05-29
Posts: 6

Re: [Solved] Where is all of my disk space!!

Thanks, I went through everyone's suggestions and found out where there was a problem.  Android studio was taking up almost 40 gb, because I loaded it up with virtual devices ;0.  But, I have a better understanding of analyzing and cleaning up my hard drive now, thanks!

Offline

#7 2018-06-12 20:10:44

bashM0nk3y
Member
From: the big she-bang
Registered: 2018-05-26
Posts: 41

Re: [Solved] Where is all of my disk space!!

I personally use '..# pacman -Rsun' when I want to completely remove a certain package. I just added "alias pacrm=`sudo pacman -Rsun`" to my ~/.bash_aliases.

Offline

#8 2018-06-12 20:26:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 19,988
Website

Re: [Solved] Where is all of my disk space!!

I've never use 'u' with '-R' but from reading the man page, it sounds like it'd be implied by 's' anyways.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2018-06-12 21:03:57

bashM0nk3y
Member
From: the big she-bang
Registered: 2018-05-26
Posts: 41

Re: [Solved] Where is all of my disk space!!

After going back and reading the man page, it looks like you may be correct.

I also like how one can remove explicitly installed deps with the `-ss` switch.

Offline

Board footer

Powered by FluxBB