You are not logged in.

#1 2007-08-23 04:54:30

Lava Croft
Member
Registered: 2006-11-18
Posts: 11

[solved] Lost 100mb of HD space after upgrading

Hi, I did not find any info about this on the forums, so I though let's just post it.
The issue is that after I upgraded to gcc 4.2.1-3, glibc 2.6.1-1 and kernel26 2.6.22.3-1 it seems I lost a good 100mb of HD space in the process. I have made sure my pacman cache and /tmp was clear of any leftovers. Since I am on an old computer with a small HD, this is a rather big problem for me, as I now have just (eek!) 16mb of HD space left on my Arch partition.

Anyone have any idea what might be causing this, and if possible, how to 'fix' it?

Thank you in advance.

Last edited by Lava Croft (2007-08-26 07:47:25)


Like any dealer I am looking for the car that is so high and wild, I'll never have to deal another.

Offline

#2 2007-08-23 06:36:21

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [solved] Lost 100mb of HD space after upgrading

I indeed see a huge increase of size with last gcc and glibc packages (not kernel26 though) :

-rw-r--r-- 1 root root 13M jui  5 08:09 gcc-4.2.1-1.pkg.tar.gz
-rw-r--r-- 1 root root 36M aoû  8 09:07 gcc-4.2.1-3.pkg.tar.gz

-rw-r--r-- 1 root root 11M jun  5 12:33 glibc-2.6-2.pkg.tar.gz
-rw-r--r-- 1 root root 21M aoû  8 09:06 glibc-2.6.1-1.pkg.tar.gz

And that's compressed size. uncompressed, that's apparently a 84 MB difference .


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2007-08-23 10:59:19

Lava Croft
Member
Registered: 2006-11-18
Posts: 11

Re: [solved] Lost 100mb of HD space after upgrading

Well, I wasn't sure exactly what package caused the 'problem', but yeah, the difference in size is quite big. I wonder if there is any justification for this.


Like any dealer I am looking for the car that is so high and wild, I'll never have to deal another.

Offline

#4 2007-08-23 11:08:23

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: [solved] Lost 100mb of HD space after upgrading

It seems these packages were compiled with debug symbols enabled. Don't know how they get there, but it should be gone by the weekend.

Offline

#5 2007-08-23 11:26:05

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [solved] Lost 100mb of HD space after upgrading

Oh, didn't even think about checking that wink


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2007-08-23 15:16:41

Lava Croft
Member
Registered: 2006-11-18
Posts: 11

Re: [solved] Lost 100mb of HD space after upgrading

JGC wrote:

It seems these packages were compiled with debug symbols enabled. Don't know how they get there, but it should be gone by the weekend.

Heh, thanks for pointing it out. Looking forward to updating it. Is it safe to force pacman to remove the packages, ignoring the depencies, and then install the updated package?


Like any dealer I am looking for the car that is so high and wild, I'll never have to deal another.

Offline

#7 2007-08-23 15:20:10

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [solved] Lost 100mb of HD space after upgrading

Lava Croft wrote:

Heh, thanks for pointing it out. Looking forward to updating it. Is it safe to force pacman to remove the packages, ignoring the depencies, and then install the updated package?

Hmmmm.... probably not.  gcc and glibc provide libraries that loooooots of apps need to run.  If you don't have space for the DL, you might consider temporarily removing some non-essential packages to do the upgrade.

Offline

#8 2007-08-23 15:29:59

Lava Croft
Member
Registered: 2006-11-18
Posts: 11

Re: [solved] Lost 100mb of HD space after upgrading

But inbetween the removal of the packages and installing them again I do not require to run any application besides pacman...


Like any dealer I am looking for the car that is so high and wild, I'll never have to deal another.

Offline

#9 2007-08-23 15:32:57

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [solved] Lost 100mb of HD space after upgrading

Yeah, and pacman is built in C and so requires (at least) glibc.   pacman.static may not have that dependency; I'm not sure if you can statically compile in the c library.

Offline

#10 2007-08-23 15:36:15

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [solved] Lost 100mb of HD space after upgrading

Lava Croft wrote:

But inbetween the removal of the packages and installing them again I do not require to run any application besides pacman...

pacman won't run either though smile though pacman.static apparently does, I just tried it.
I'm not guarantying anything though, so if it breaks your box beyond repair, don't complain smile

What about getting a new hd for avoiding all these unneeded troubles ? Space is cheap these days.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#11 2007-08-23 15:50:52

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: [solved] Lost 100mb of HD space after upgrading

You can strip these libraries by hand to get some space back.
The /usr/lib/gconv directory contains a lot of libraries, on my amd64 system with stripped symbols they take up 7.3MB, on i686 this should be double size with debug symbols.

strip --strip-unneeded /usr/lib/gconv/*.so

You could do this for all .so files in gcc and glibc if you want to save space before updating.

Offline

#12 2007-08-23 16:46:44

Lava Croft
Member
Registered: 2006-11-18
Posts: 11

Re: [solved] Lost 100mb of HD space after upgrading

Thank you for the helpful replies.

@shining: You convinced me, I'll just take the safe route. smile

@JGC: I understand strip --strip-unneeded /usr/lib/gconv/*.so, but I do not get what you mean with You could do this for all .so files in gcc and glibc.
Could you please explain a bit more?

Again, thanks in advance.


Like any dealer I am looking for the car that is so high and wild, I'll never have to deal another.

Offline

#13 2007-08-23 17:00:27

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [solved] Lost 100mb of HD space after upgrading

Lava Croft wrote:

Thank you for the helpful replies.

@shining: You convinced me, I'll just take the safe route. smile

@JGC: I understand strip --strip-unneeded /usr/lib/gconv/*.so, but I do not get what you mean with You could do this for all .so files in gcc and glibc.
Could you please explain a bit more?

Again, thanks in advance.

Well, glibc and gcc have other .so files that you can strip.
See : pacman -Ql glibc gcc | grep "so$"


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#14 2007-08-26 07:47:55

Lava Croft
Member
Registered: 2006-11-18
Posts: 11

Re: [solved] Lost 100mb of HD space after upgrading

I stripped the files and updated the packages, case solved.

Thanks for your help!


Like any dealer I am looking for the car that is so high and wild, I'll never have to deal another.

Offline

Board footer

Powered by FluxBB