Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [gentoo-user] how to get emerge --depclean to skip a pkg?

1 view
Skip to first unread message

Crístian Viana

unread,
Nov 19, 2009, 4:50:02 PM11/19/09
to
I think --noreplace should do it, but if it didn't, try adding this ebuild name to /var/lib/portage/world:

=sys-kernel/gentoo-sources-2.6.30-r7

On Thu, Nov 19, 2009 at 9:20 PM, Maxim Wexler <maxim....@gmail.com> wrote:
Hi group,

emerge -av --depclean wants to remove
sys-kernel/gentoo-sources-2.6.30-r7 after a world update.

How do I prevent this? I've tried the --deselect and --noreplace
switches but that has the opposite effect I'm looking for.

Maxim




--
Crístian Deives dos Santos Viana [aka CD1]
Sent from Campinas, SP, Brazil

Maxim Wexler

unread,
Nov 19, 2009, 5:20:02 PM11/19/09
to

Paul Hartman

unread,
Nov 19, 2009, 7:10:01 PM11/19/09
to
On Thu, Nov 19, 2009 at 4:18 PM, Paul Hartman
<paul.hart...@gmail.com> wrote:
> On Thu, Nov 19, 2009 at 9:20 PM, Maxim Wexler <maxim....@gmail.com>
> wrote:
>>
>> Hi group,
>>
>> emerge -av --depclean wants to remove
>> sys-kernel/gentoo-sources-2.6.30-r7 after a world update.
>>
>> How do I prevent this? I've tried the --deselect and --noreplace
>> switches but that has the opposite effect I'm looking for.
>
> I asked this same question earlier this year and got a perfect
> solution from Mike Kazantsev along with help from Boris Fersing.
>
> Edit (or create) /etc/portage/sets.conf and put this inside:
> [kernels]
> class = portage.sets.dbapi.OwnerSet
> world-candidate = False
> files = /usr/src
>
> Then edit/create /var/lib/portage/world_sets and add this line:
> @kernels
>
> Now --depclean should never try to remove your kernel packages! It
> works great for me.

By the way, I think this only works in portage 2.2 :)

Paul Hartman

unread,
Nov 19, 2009, 7:10:02 PM11/19/09
to
On Thu, Nov 19, 2009 at 9:20 PM, Maxim Wexler <maxim....@gmail.com>
wrote:
>
> Hi group,
>
> emerge -av --depclean wants to remove
> sys-kernel/gentoo-sources-2.6.30-r7 after a world update.
>
> How do I prevent this? I've tried the --deselect and --noreplace
> switches but that has the opposite effect I'm looking for.

I asked this same question earlier this year and got a perfect

0 new messages