Mick wrote:
> On Saturday 01 Feb 2014 12:33:33 Alan McKinnon wrote:
>> On 01/02/2014 12:55, Mick wrote:
>>> Hi All,
>>>
>>> I have a couple of binary packages in a box under /usr/portage/packages
>>> that I no longer need. How can I selectively remove one or some of them
>>> only?
>>>
>>> qpkg -c www-client/chromium
>>>
>>> or
>>>
>>> eclean packages
>>>
>>> nukes the lot.
>>
>> man eclean
>>
>> the -d and -n switches let you be a little more selective just like
>> cleaning distfiles. They deal with packages based on whether they are
>> still in tree or you have them installed. To deal with specific
>> versions, use rm like Nei said
>
> Thank you both.
>
> Don't think I can use the eclean -d -n for singular packages. As I
understand
> it all non-installed packages will be removed, which not what I want.
>
> If I use rm to manually get rid of a single package, all its metadata
will
> still be left in /usr/portage/packages/Packages. Does this matter?
Which
> function uses the information this file and how might it be affected
if the
> binary package has been removed manually?
>
It doesn't have to clean that much but it can. Just a small part of the
man page:
o --time-limit is useful to protect files which are more
recent than a given amount of time.
o --size-limit (for distfiles only) is useful if you want to
protect files bigger than a given size.
o --fetch-restricted (for distfiles only) is useful to
protect manually downloaded files. But it's also very slow (again, it's
a reading of the whole Portage tree data)...
o Finally, you can list some categories or package names to
protect in exclusion files (see EXCLUSION FILES below).
You can put limits on it if you want to keep some things around.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!