You are not logged in.

#1 2010-02-12 16:27:12

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 174

clean archlinux

Hello,

I'm running out of space so I want to clean my system.
What do you advice me to do ?

I've scanned my disk with Baobab and it seems I've a lot of useless file in /usr/share/local. I guess I don't need russian or spanish language packages.
My /var/abs/local/yaourtbuild contains 2.1 Gb of file for Songbird and notify-osd-bzr. Do I still need this files ?

thank you


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Dell Vostro

Offline

#2 2010-02-12 16:34:49

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: clean archlinux

pacman -Scc?

Offline

#3 2010-02-12 16:37:31

daJense
Member
Registered: 2009-05-17
Posts: 45

Re: clean archlinux

Hi,
really don't know about your files. From personal experience I can say, that for me, running out of space on root is mostly due to the cached packages. You can remove those using pacman (don't do it by hand!!!!). Be aware, that cleaning out the cache will make a downgrade for specific packages much harder, as you need to find the specific version on the net (in case an update brakes something).

Check the pacman wiki for the commands, so you know what you are doing. The same commands also work for yaourt, as far as I know.

http://wiki.archlinux.org/index.php/Pacman

Offline

#4 2010-02-12 16:40:18

leadghost
Member
Registered: 2009-09-09
Posts: 29

Re: clean archlinux


Hand over the spoon Milt...

Offline

#5 2010-02-12 16:43:17

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 174

Re: clean archlinux

I've already done it with "pacman -Qdt" so I think I'm ok for the packages
I'm looking for tips to save space
on ubuntu I had to delete old kernel for exemple but I don't think I've this problem in archlinux


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Dell Vostro

Offline

#6 2010-02-12 16:53:23

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: clean archlinux

Try localepurge or BleachBit to delete localizations for languages you don't use. BleachBit can also be used for general cleaning.

Offline

#7 2010-02-12 16:58:30

TaylanUB
Member
Registered: 2009-09-16
Posts: 150

Re: clean archlinux

martvefun wrote:

I've already done it with "pacman -Qdt" so I think I'm ok for the packages

No, -Qdt is something different. It just looks for programs that were auto-installed as dependencies, and aren't needed anymore for whatever reason. On a well-used system it will give no results most of the time.

Using -Sc will remove the installation-files (.tar.gz files) of all uninstalled packages.
Using -Scc will remove ALL installation-files.

/var/log can grow large too... But my sense of "large" is probably a bit different, keeping my OS on a 2,5 GB partition (of a flash stick). big_smile

Last edited by TaylanUB (2010-02-12 17:00:07)


``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein

Offline

#8 2010-02-12 17:43:24

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: clean archlinux

martvefun wrote:

My /var/abs/local/yaourtbuild contains 2.1 Gb of file for Songbird and notify-osd-bzr. Do I still need this files ?

No you don't. Also I would strongly suggest to build in your $HOME instead (if it is on a separate partion), since running out of space on / can lead to bad things(tm) happening.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2010-02-12 21:15:07

troodux
Member
Registered: 2010-02-02
Posts: 3

Re: clean archlinux

That's why you NEED a /var partition... especially in Arch Linux (lots of cache and downloaded source code)

I don't know why it is no more a strong recomendation (I even don't know if Arch installer automatic partionning tool makes a /var). When i started with Linux... well.. years ago there was a mantra :
"/ ~5Go; /var ~3Go; swap 2*RAM; /home all the rest "
Nowadays, the proportion have changed (twice the RAM is lot lot to much and 5Go may be quite short) but a /var is still necessary. The ability to mount a separate partion here is the raison d'être of /var in UNIX(-like) systems and is one of the killer features that make them simply more rational than others

Last edited by troodux (2010-02-12 21:15:40)

Offline

#10 2010-02-12 21:51:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: clean archlinux

If you'd prefer a shell tools to analyze your usage, ncdu rocks.

# ncdu /

Last edited by graysky (2010-02-12 21:52:10)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#11 2010-02-12 21:53:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: clean archlinux

anonymous_user wrote:

Try localepurge or BleachBit to delete localizations for languages you don't use. BleachBit can also be used for general cleaning.

Any downside to using localepurge or BB dependency-wise down the road...?  Seems like this is a task best suited for pacman itself, no?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#12 2010-02-12 22:24:59

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: clean archlinux

I don't have any problems dependency-wise.

A possible problem could be if you switch to a localization that you previously deleted files for...

Last edited by anonymous_user (2010-02-12 22:25:30)

Offline

#13 2010-02-13 00:28:10

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: clean archlinux

"pacgraph -c" (it is in the AUR) will measure the total size of each installed app + dependencies.  Very useful for find programs not worth their megabytes.

Offline

#14 2010-02-13 00:45:15

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 174

Re: clean archlinux

Mr.Elendig wrote:

Also I would strongly suggest to build in your $HOME instead (if it is on a separate partion), since running out of space on / can lead to bad things(tm) happening.

No I'm using the same partition for my home folder. I just have a different partition for the files I need to share between different partition (documents, music, firefox profile,...) but the configuration of the programs is on the same 20Gb partition
On the 20gb, I've about 6gb used in my home folder and 10gb for the system (after cleaning)

Is there a "nice way" to delete the source files in /var/abs/local/yaourtbuild or should I just do a "rm -rf" ?

With localepurge, I cleaned the languages files (about 400mb freed)
thanks

ps: by the way, fun bug when I select all the folder in / and right click, properties tongue
http://img153.imageshack.us/img153/7672/diskspace.png

Last edited by martvefun (2010-02-13 00:52:46)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Dell Vostro

Offline

#15 2010-02-13 01:13:06

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: clean archlinux

anonymous_user wrote:

Try localepurge or BleachBit to delete localizations for languages you don't use. BleachBit can also be used for general cleaning.

Wow - me like . I step closer to reclaiming some space , Thank You !

[wesley@ratdog ~]$ df -ha
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb3             7.4G  6.8G  527M  93% /
udev                   10M  188K  9.9M   2% /dev
none                     0     0     0   -  /proc
none                     0     0     0   -  /sys
none                     0     0     0   -  /dev/pts
none                  2.0G     0  2.0G   0% /dev/shm
/dev/sdb1              99M   14M   81M  15% /boot
/dev/sdb4             291G   45G  246G  16% /home
gvfs-fuse-daemon         0     0     0   -  /home/wesley/.gvfs
[wesley@ratdog ~]$ sudo updatedb
Password: 
[wesley@ratdog ~]$ df -ha
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb3             7.4G  6.2G  1.2G  85% /
udev                   10M  188K  9.9M   2% /dev
none                     0     0     0   -  /proc
none                     0     0     0   -  /sys
none                     0     0     0   -  /dev/pts
none                  2.0G     0  2.0G   0% /dev/shm
/dev/sdb1              99M   14M   81M  15% /boot
/dev/sdb4             291G   45G  246G  16% /home
gvfs-fuse-daemon         0     0     0   -  /home/wesley/.gvfs

Offline

#16 2010-02-13 02:36:39

IR3uL
Member
From: Buenos Aires - Argentina
Registered: 2010-02-11
Posts: 6

Re: clean archlinux

I was wondering... Anyone here remember the good old du? tongue

Offline

#17 2010-02-13 11:03:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: clean archlinux

keenerd wrote:

"pacgraph -c" (it is in the AUR) will measure the total size of each installed app + dependencies.  Very useful for find programs not worth their megabytes.

Great tip!  I just recovered 724 Mb with the help of this app.

# pacman -Rs k3b ekiga tomboy gnome-games gnome-games-extra-data samba dasher festival-kallpc16k festival orca epiphany stopwatch cheese

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB