[gentoo-user] Sync only installed and dependence packages with portage.

2005-06-13 Thread Qian Qiao
Hi,

As the title suggested, I've got a box with very limited disk space,
is it possible to sync only the packages currently installed and their
dependencies with the portage tree and leave out the rest?

TIA.

-- Joe

-- 
Money can't buy everything.
Sometimes money can't even buy a gun...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sync only installed and dependence packages with portage.

2005-06-13 Thread Holly Bostick
Qian Qiao schreef:
 Hi,
 
 As the title suggested, I've got a box with very limited disk space,
 is it possible to sync only the packages currently installed and their
 dependencies with the portage tree and leave out the rest?
 
 TIA.
 
 -- Joe
 

Hi,

I don't think so, but I don't think it makes such a huge amount of
difference. When you sync the Portage tree, you are only adding and
deleting ebuilds, which are very small.

On my system, 98,135 files in the Portage tree take up 296.5 MB-- which
is actually more than I expected; have to look into that. Oh... I did a
couple of qpkgs when I was unmerging that extra version of Python.
Without counting /usr/portage/packages, 97,919 files take up 93.5MB of
space, which is more like what I would have figured.

IMHO, if you don't even have that much room available, it's time to
start clearing out space, repartitioning, or considering getting a new
HDD anyway.

However, this is without counting /usr/portage/distfiles, which holds
the tarballs... if you don't mind re-downloading them if you decide to
reinstall a program previously installed (or installed, then
uninstalled), a more effective space-saving measure might be to delete
the contents of that folder, as well as backing any packages you may
have used qpkg to create off the drive. IIrc, there's a setting in
/etc/make.conf that will allow you to dump the tarballs automatically,
but you could always do so as a cron job.

HTH,
Holly
-- 
gentoo-user@gentoo.org mailing list