cov...@ccs.covici.com wrote:
> Dale <rdalek1...@gmail.com> wrote:
>
>> Harry Putnam wrote:
>>> I'd like to stay on kernel-4.1.6, rather than keep installing the
>>> newest version at each upgrade.
>>>
>>> As I recall, and a quick look at `man portage', a file named
>>> `package.provided' is meant for such things.
>>>
>>> The syntax is not described in detail... I tried these:
>>>
>>>   /etc/portage/package.provided
>>>
>>>   >=sys-kernel/gentoo-sources-4.1.6
>>>
>>> Still `emerge -vp gentoo-sources' indicates it will install the most
>>> recent kernel.
>>>
>>> then I noticed the portage man page, under `Format' does say:
>>> "relational operators are not allowed"
>>> So I dropped the `>=' part
>>>
>>>   sys-kernel/gentoo-sources-4.1.6
>>>
>>> Same result from `emerge -vp gentoo-sources' . . .
>>>
>>> What am I forgetting?
>>>
>>>
>>>
>>
>> This is how I do this sort of thing.  I add the name and version to
>> package.mask which stops future updates/upgrades.  Example, for my
>> nvidia drivers, this is in package.mask.
>>
>>> =x11-drivers/nvidia-drivers-341.0.0 
>> That tells portage that anything above that version is masked locally
>> and not to update it.  For what you want, this should work:
>>
>>> sys-kernel/gentoo-sources-4.1.6
>> I removed the equal sign since you want to keep that version around but
>> nothing above it.  If portage doesn't like that, you may want to use the
>> next version up and have the ">=" in front.  According to what I have
>> here, it would be like this:
>>
>>> =sys-kernel/gentoo-sources-4.1.12 
>> I actually don't show a 4.1.6 here right now.  Removed I guess but
>> likely still works.
>>
>> That goes under /etc/portage/ by the way.  I think you know that already
>> but just in case.  I have those moments too.  ;-) 
>>
>> That helps??
> I think its in /etc/portage/profile instead.
>


Mine here is in:  /etc/portage/package.mask  It's been there for a long
time.  Maybe they are moving things again to something new but it works
here. 

Dale

:-)  :-) 

Reply via email to