Re: [gentoo-user] Keeping things clean
On Saturday 02 April 2005 19:48, James wrote: > I've had a quick look in the Portage docs, but can't find anything > that looks like a solution to this problem. So my question: is > there a function in Portage that allows me to delete old unpacked > source files and tarballs (e.g. emerge --[whatever]), or should I > go hunt them down in /usr/portage... and delete them 'manually'? Yes, there is no way to make portage automatically deleting the source tarballs from /usr/portage/distfiles (this is the place where they are kept). So, you have to delete them in some other way. I use a cron job that once a week cleans up everything (in addition to /usr/portage/distfiles, there are some other places, like dirs in /var/tmp whose name I don't recall now and can't check from here). HTH -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I've had a quick look in the Portage docs, but can't find anything that > looks like a solution to this problem. So my question: is there a > function in Portage that allows me to delete old unpacked source files > and tarballs (e.g. emerge --[whatever]), or should I go hunt them down > in /usr/portage... and delete them 'manually'? As far as I know, there is no command in portage to do it *automatically*, but you can do it manually. The downloaded packages are in /usr/portage/distfiles. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCTtEDaRz9jZhWXD0RAofNAKDZxD3CUwuud5gGdweIxGD10eONqwCeMfJ0 S/oxDRXvFIyP1/tzawSc2bY= =8kZn -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
On Saturday 02 April 2005 09:48, James wrote: > should I delete them 'manually'? Yes. Tarballs are in /usr/portage/distfiles, build areas are in /var/tmp/portage. Delete the stuff in /var/tmp/portage as you wish, but be aware that many times, a minor (-rX) update to a package will use the same tarball(s) the previous one, just applying more patches. So if you delete all the tarballs, you'll have to download them again. pgpv8qLAkXP4x.pgp Description: PGP signature
Re: [gentoo-user] Keeping things clean
James wrote: >Hi all, > >I've been running Gentoo for a week or two now, all is going well, but >I'm using up a lot of hard disk space with all these sources I've >downloaded and uncompressed. > > Not that I'm aware of, but I've only been using Gentoo for 1 month (FreeBSD for several years). The source files are all stored in /usr/portage/distfiles - you could clean this folder out manually or with a cron job. FreeBSD has a "port" called portupgrade written in ruby that can do exactly this kind of maintenance among other things. Wanna adapt it to Gentoo and contribute your first ebuild to Portage :-) >I've had a quick look in the Portage docs, but can't find anything that >looks like a solution to this problem. So my question: is there a >function in Portage that allows me to delete old unpacked source files >and tarballs (e.g. emerge --[whatever]), or should I go hunt them down >in /usr/portage... and delete them 'manually'? > >Thanks, > >James >-- >gentoo-user@gentoo.org mailing list > > > -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
Thanks! James Etaoin Shrdlu wrote: >On Saturday 02 April 2005 19:48, James wrote: > > > >>I've had a quick look in the Portage docs, but can't find anything >>that looks like a solution to this problem. So my question: is >>there a function in Portage that allows me to delete old unpacked >>source files and tarballs (e.g. emerge --[whatever]), or should I >>go hunt them down in /usr/portage... and delete them 'manually'? >> >> > >Yes, there is no way to make portage automatically deleting the source >tarballs from /usr/portage/distfiles (this is the place where they >are kept). > >So, you have to delete them in some other way. I use a cron job that >once a week cleans up everything (in addition >to /usr/portage/distfiles, there are some other places, like dirs >in /var/tmp whose name I don't recall now and can't check from here). > >HTH >-- >gentoo-user@gentoo.org mailing list > > > > -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
On Sat, 2005-04-02 at 09:12 -0800, John Myers wrote: > On Saturday 02 April 2005 09:48, James wrote: > > should I delete them 'manually'? > Yes. Tarballs are in /usr/portage/distfiles, build areas are > in /var/tmp/portage. Delete the stuff in /var/tmp/portage as you wish, but be > aware that many times, a minor (-rX) update to a package will use the same > tarball(s) the previous one, just applying more patches. So if you delete all > the tarballs, you'll have to download them again. If you search in the forums at forums.gentoo.org you will find a number of scripts that claim to clean out /usr/portage/distfiles, but keeping sources for currently installed versions. -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
On Sunday 03 April 2005 02:48, James wrote: > Hi all, > > I've been running Gentoo for a week or two now, all is going well, but > I'm using up a lot of hard disk space with all these sources I've > downloaded and uncompressed. > > I've had a quick look in the Portage docs, but can't find anything that > looks like a solution to this problem. So my question: is there a > function in Portage that allows me to delete old unpacked source files > and tarballs (e.g. emerge --[whatever]), or should I go hunt them down > in /usr/portage... and delete them 'manually'? There should be no unpacked sources left around other than the kernels. Failed builds are left behind in /var/tmp/portage. Successful builds should completely remove all traces from that directory now. It's safe to delete everything in there as long as portage isn't running though. For distfiles, I do similar to the following: # mv /usr/portage/distfiles /usr/portage/distfiles.old # mkdir -p /etc/portage # echo local /usr/portage/distfiles.old > /etc/portage/mirrors # emerge -ef world # rm /etc/portage/mirrors # rm -rf /usr/portage/distfiles.old Regards, Jason Stubbs -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
On Sat, 2 Apr 2005 09:12:43 -0800, John Myers wrote: > but be > aware that many times, a minor (-rX) update to a package will use the > same tarball(s) the previous one, just applying more patches. So if you > delete all the tarballs, you'll have to download them again. There are also packages that need to be re-emerged after a kernel update. If these are for network or modem drivers, such as ndiswrapper or slmodem, you must keep the tarballs or you won't be able to connect to the Internet again. -- Neil Bothwick [ Printed on recycled electrons ] pgpir07vYldXD.pgp Description: PGP signature
Re: [gentoo-user] Keeping things clean
> > For distfiles, I do similar to the following: > > # mv /usr/portage/distfiles /usr/portage/distfiles.old > # mkdir -p /etc/portage > # echo local /usr/portage/distfiles.old > /etc/portage/mirrors > # emerge -ef world > # rm /etc/portage/mirrors > # rm -rf /usr/portage/distfiles.old > I think my mind might not be working this early in the morning, but what exactly is the purpose of this procedure? Matt -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
On Mon, 4 Apr 2005, Matthew Cline wrote: > > # mv /usr/portage/distfiles /usr/portage/distfiles.old > > # mkdir -p /etc/portage > > # echo local /usr/portage/distfiles.old > /etc/portage/mirrors > > # emerge -ef world > > # rm /etc/portage/mirrors > > # rm -rf /usr/portage/distfiles.old > > > > I think my mind might not be working this early in the morning, but > what exactly is the purpose of this procedure? Looks like you setup a local mirror with your tarballs in it then emerge -ef (where -e means "reinstall everything in world and their dependencies" and -f means "just fetch the tarballs"), and then you remove the local repository and the old tarballs directory (since you've just fetched everything you need to build world into /etc/portage/distfiles). So basically you're pruning out old stuff that is not needed from /etc/portage/distfiles. -- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
> Looks like you setup a local mirror with your tarballs in it then emerge > -ef (where -e means "reinstall everything in world and their dependencies" > and -f means "just fetch the tarballs"), and then you remove the local > repository and the old tarballs directory (since you've just fetched > everything you need to build world into /etc/portage/distfiles). > > So basically you're pruning out old stuff that is not needed from > /etc/portage/distfiles. Ok, I see now. I wasn't grasping the part where the "emerge -ef world" was grabbing distfiles from the local system, not another mirror. Matt -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
On Mon, 4 Apr 2005, Matthew Cline wrote: > Ok, I see now. I wasn't grasping the part where the "emerge -ef world" > was grabbing distfiles from the local system, not another mirror. >From "man portage": mirrors Whenever portage encounters a mirror:// style URL it will look up the actual hosts here. If the mirror set is not found here, it will check the global mirrors file at /usr/portage/pro- files/thirdpartymirrors. You may also set a special mirror type called "local". This list of mirrors will be checked before GENTOO_MIRRORS and will be used even if the package has RESTRICT="nomirror". Format: - comments begin with # - mirror type followed by a list of hosts Example: # local private mirrors used only by my company local ftp://192.168.0.3/mirrors/gentoo http://192.168.0.4/distfiles # people in japan would want to use the japanese mirror first sourceforge http://keihanna.dl.sourceforge.net/sourceforge # people in tawain would want to use the local gnu mirror first gnu ftp://ftp.nctu.edu.tw/UNIX/gnu/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Keeping things clean
On Sun, 3 Apr 2005 13:04:06 +0900 Jason Stubbs wrote: > For distfiles, I do similar to the following: > > # mv /usr/portage/distfiles /usr/portage/distfiles.old > # mkdir -p /etc/portage > # echo local /usr/portage/distfiles.old > /etc/portage/mirrors > # emerge -ef world > # rm /etc/portage/mirrors > # rm -rf /usr/portage/distfiles.old > > Regards, > Jason Stubbs Jason, great tip, I have reproduced it on my local LUG wiki. > -- > gentoo-user@gentoo.org mailing list -- Nick Rout -- gentoo-user@gentoo.org mailing list