RE: [gentoo-user] Cleaning up portage
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:[EMAIL PROTECTED] 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
Re: [gentoo-user] Cleaning up portage
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
Re: [gentoo-user] Cleaning up portage
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
Re: [gentoo-user] Cleaning up portage
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
Re: [gentoo-user] Cleaning up portage
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
Re: [gentoo-user] Cleaning up portage
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
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