Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 15981

Summary: Disk space recovered/freed after an emerge or unmerge
Product: Portage Development Reporter: Marc 'huz' REYNES <marc.reynes>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: normal CC: alpeterson, magnade, mholzer, morfic
Priority: High    
Version: 2.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marc 'huz' REYNES 2003-02-19 05:00:35 UTC
Hello, 

I would like to find an option in emerge wich indicates me the amount of space 
freed when i emerge an application. It would be useful to precise the amount of 
disk space recovered when we do an emerge unmerge or clean or purge or any 
other 'remove'action from emerge.
I tried to do it myself, but it seems to me too much hassels in regard to my 
skills

Thank you

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-09-09 14:45:04 UTC
check is done in bug #8545

so this bug is for statistic to print out
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-09-21 08:58:07 UTC
etcat -s package gives you the size of an installed package, it needs some time for bigger packages, so I don't think this should be integrated in emerge.
Comment 3 Bret Towe 2003-10-27 22:29:18 UTC
have it optional then
also part of what it would be scanning for size would be in mem cache
Comment 4 Aaron Peterson 2004-05-09 18:13:01 UTC
how many people really want to run/learn the command etcat?

it sounds like...  somebody ate a feline...

No,
emerge -Cp package
or emerge -p package
should say how big it is / how big it is expected to be

We always need it, and it shouldn't take more than 3 or 4 characters at the end of the line anyway.

2.3G
or
1.4K
or
0.5K
100B
12M

This is _IMPORTANT_
my system might have just been screwed by running out of diskspace.. and nobody seems to care about this avoidable problem.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-06-09 20:28:53 UTC
No chance to make this work with `emerge -p`.
Comment 6 Brian Harring (RETIRED) gentoo-dev 2004-08-10 23:07:57 UTC
"This is _IMPORTANT_
my system might have just been screwed by running out of diskspace.. and nobody seems to care about this avoidable problem."

There isn't any easy way to do this for merging, aside from building all packages, and maintaing a central listing of how large each package is.

As for listing how much space is freed by removing a package, I guess, although I personally don't see the need.
Closing in the interim, if you want the latter (space freed by an unmerge) reopen the bug; implementing both is a bit of a pita, although the latter is possible (not high on my list of priorities though).