public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cleaning up portage
@ 2006-04-12 20:59 CR Little
  2006-04-12 21:09 ` Joshua Schmidlkofer
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: CR Little @ 2006-04-12 20:59 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

I did a df -h on my system today and I only have 300 megs left on /usr

 

So I went into /usr/portage and ran du -sh and it shows as 1.5G

 

I then went into /usr/src and ran du -sh and it shows as 1.5G also

 

Granted this is a small box - 5 Gigs for /usr

 

Should I delete all the outdated sources in /usr/src to gain space and
if so will is a simple rm -rf linux-2.6.outdated work?

 

Next, what will happen if I rm -rf /usr/portage will the next emerge
sync rebuild it?

 

 

Where should I check to get some disk space back?

IIt seems most of the space that is being taken up is /usr/portage and
/usr/src

 

Thanks.

CR.


[-- Attachment #2: Type: text/html, Size: 3929 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Cleaning up portage
  2006-04-12 20:59 [gentoo-user] Cleaning up portage CR Little
@ 2006-04-12 21:09 ` Joshua Schmidlkofer
  2006-04-12 22:12   ` Daniel Drake
  2006-04-12 21:51 ` Robert Crawford
  2006-04-12 22:13 ` Benno Schulenberg
  2 siblings, 1 reply; 8+ messages in thread
From: Joshua Schmidlkofer @ 2006-04-12 21:09 UTC (permalink / raw
  To: gentoo-user

emerge sync cleans up after itself.  Rather, rsync takes care of that,
so do not expect to gain too much.

Cleanup of kernels is good, if they are portage managed than you can
do something akin to this:

emerge -c =gentoo-sources-<version>-<revision>

e.g.

To remove all of these kernels

 linux-2.6.14-r1
 linux-2.6.14-r2
 linux-2.6.14-r4
 linux-2.6.14-r7
 linux-2.6.12-r1
 linux-2.6.13-r1

emerge -c ~sys-kernel/gentoo-sources-2.6.14 \<sys-kernel/gentoo-sources-2.6.14


Exciting.

thanks,
  joshua

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Cleaning up portage
  2006-04-12 20:59 [gentoo-user] Cleaning up portage CR Little
  2006-04-12 21:09 ` Joshua Schmidlkofer
@ 2006-04-12 21:51 ` Robert Crawford
  2006-04-12 22:13 ` Benno Schulenberg
  2 siblings, 0 replies; 8+ messages in thread
From: Robert Crawford @ 2006-04-12 21:51 UTC (permalink / raw
  To: gentoo-user

On Wednesday 12 April 2006 16:59, CR Little wrote:
> I did a df -h on my system today and I only have 300 megs left on /usr
>
>
>
> So I went into /usr/portage and ran du -sh and it shows as 1.5G
>
>
>
> I then went into /usr/src and ran du -sh and it shows as 1.5G also
>
>
>
> Granted this is a small box - 5 Gigs for /usr
>
>
>
> Should I delete all the outdated sources in /usr/src to gain space and
> if so will is a simple rm -rf linux-2.6.outdated work?
Try using yacleaner to clean out obsolete distfiles- works great, and I've 
tried them all- this is the best IMO! Also cleans out other junk too. It's 
usually good for about 1GB if you haven't cleaned up stuff in a while.  Look 
on forum for link to download.  I use version 3.1- the more recent ones have 
had problems.

Robert Crawford
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Cleaning up portage
  2006-04-12 21:09 ` Joshua Schmidlkofer
@ 2006-04-12 22:12   ` Daniel Drake
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Drake @ 2006-04-12 22:12 UTC (permalink / raw
  To: gentoo-user

Joshua Schmidlkofer wrote:
> emerge sync cleans up after itself.  Rather, rsync takes care of that,
> so do not expect to gain too much.

/usr/portage/distfiles will be taking up much of that 1.5GB. It's safe 
to clean that.

> Cleanup of kernels is good, if they are portage managed than you can
> do something akin to this:
> 
> emerge -c =gentoo-sources-<version>-<revision>

I think you mean -C

You need to manually remove the directories after, to get rid of the 
objects and temporary files generated in compilation. Actually, you 
should do the remove operation first, because then the unmerge is quicker.

Daniel
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Cleaning up portage
  2006-04-12 20:59 [gentoo-user] Cleaning up portage CR Little
  2006-04-12 21:09 ` Joshua Schmidlkofer
  2006-04-12 21:51 ` Robert Crawford
@ 2006-04-12 22:13 ` Benno Schulenberg
  2006-04-13  0:36   ` Robert Crawford
  2 siblings, 1 reply; 8+ messages in thread
From: Benno Schulenberg @ 2006-04-12 22:13 UTC (permalink / raw
  To: gentoo-user

CR Little wrote:
> So I went into /usr/portage and ran du -sh and it shows as 1.5G

Use eclean.

> I then went into /usr/src and ran du -sh and it shows as 1.5G
> also

Use 'emerge --prune gentoo-sources'.

> Next, what will happen if I rm -rf /usr/portage will the next
> emerge sync rebuild it?

It would.  But better use eclean, it's part of gentoolkit.

Benno
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Cleaning up portage
  2006-04-12 22:13 ` Benno Schulenberg
@ 2006-04-13  0:36   ` Robert Crawford
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Crawford @ 2006-04-13  0:36 UTC (permalink / raw
  To: gentoo-user

On Wednesday 12 April 2006 18:13, Benno Schulenberg wrote:
> CR Little


CR Little,
Please post output of df -h, and your /etc/fstab. From the posts on your 
problem, I can't tell what's what- looks lke all is on /usr, as its own 
partition.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [gentoo-user] Cleaning up portage
@ 2006-04-13 13:38 CR Little
  2006-04-14  0:42 ` Robert Crawford
  0 siblings, 1 reply; 8+ messages in thread
From: CR Little @ 2006-04-13 13:38 UTC (permalink / raw
  To: gentoo-user

It's a single drive.

/dev/hda3             3.7G  1.3G  2.3G  36% /
/dev/hda5             4.6G  4.1G  285M  94% /usr
/dev/hda6             4.6G  312M  4.1G   7% /var
/dev/hda7             2.8G   33M  2.6G   2% /tmp
/dev/hda8              11G   35M  9.9G   1% /home
none                   89M     0   89M   0% /dev/shm


-----Original Message-----
From: Robert Crawford [mailto:flacycads@cox.net] 
Sent: Wednesday, April 12, 2006 7:36 PM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cleaning up portage

On Wednesday 12 April 2006 18:13, Benno Schulenberg wrote:
> CR Little


CR Little,
Please post output of df -h, and your /etc/fstab. From the posts on your

problem, I can't tell what's what- looks lke all is on /usr, as its own 
partition.
-- 
gentoo-user@gentoo.org mailing list




-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Cleaning up portage
  2006-04-13 13:38 CR Little
@ 2006-04-14  0:42 ` Robert Crawford
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Crawford @ 2006-04-14  0:42 UTC (permalink / raw
  To: gentoo-user

On Thursday 13 April 2006 09:38, CR Little wrote:
> It's a single drive.
>(add this line
> /dev/hda3             3.7G  1.3G  2.3G  36% /
> /dev/hda5             4.6G  4.1G  285M  94% /usr
> /dev/hda6             4.6G  312M  4.1G   7% /var
> /dev/hda7             2.8G   33M  2.6G   2% /tmp
> /dev/hda8              11G   35M  9.9G   1% /home
> none                   89M     0   89M   0% /dev/shm
>
Since /home has a lot of free space, you could put portage (along with 
distfiles) on /home, and after you're satisfied it works OK remove portage 
from /usr, gaining back at least around 1GB or so.

cp -a /usr/portage/ /home

Just to be safe, temporarily rename /usr/portage to portage.old

mv /usr/portage /usr/portage.old

Then change the /etc/make.profile symlink to point to the new location.

cd /etc
rm -rf make.profile
ln -s /home/portage/profiles/default-linux/x86/2006.0 make.profile
  
(this is just an example from my system- you may using a different profile- 
check with emerge --info)

Edit /etc/make.conf (add this line)

PORTDIR=/home/portage

Run an emerge --sync to check if it works. It should, and you can then do:

rm -rf /usr/portage.old
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-04-14  0:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-12 20:59 [gentoo-user] Cleaning up portage CR Little
2006-04-12 21:09 ` Joshua Schmidlkofer
2006-04-12 22:12   ` Daniel Drake
2006-04-12 21:51 ` Robert Crawford
2006-04-12 22:13 ` Benno Schulenberg
2006-04-13  0:36   ` Robert Crawford
  -- strict thread matches above, loose matches on Subject: below --
2006-04-13 13:38 CR Little
2006-04-14  0:42 ` Robert Crawford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox