Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] using package.provided
Date: Thu, 25 Feb 2016 05:31:53
Message-Id: 56CE91BB.2020702@gmail.com
In Reply to: Re: [gentoo-user] using package.provided by Dale
1 Dale wrote:
2 > Harry Putnam wrote:
3 >> I'd like to stay on kernel-4.1.6, rather than keep installing the
4 >> newest version at each upgrade.
5 >>
6 >> As I recall, and a quick look at `man portage', a file named
7 >> `package.provided' is meant for such things.
8 >>
9 >> The syntax is not described in detail... I tried these:
10 >>
11 >> /etc/portage/package.provided
12 >>
13 >> >=sys-kernel/gentoo-sources-4.1.6
14 >>
15 >> Still `emerge -vp gentoo-sources' indicates it will install the most
16 >> recent kernel.
17 >>
18 >> then I noticed the portage man page, under `Format' does say:
19 >> "relational operators are not allowed"
20 >> So I dropped the `>=' part
21 >>
22 >> sys-kernel/gentoo-sources-4.1.6
23 >>
24 >> Same result from `emerge -vp gentoo-sources' . . .
25 >>
26 >> What am I forgetting?
27 >>
28 >>
29 >>
30 >
31 > This is how I do this sort of thing. I add the name and version to
32 > package.mask which stops future updates/upgrades. Example, for my
33 > nvidia drivers, this is in package.mask.
34 >
35 >> =x11-drivers/nvidia-drivers-341.0.0
36 > That tells portage that anything above that version is masked locally
37 > and not to update it. For what you want, this should work:
38 >
39 >> sys-kernel/gentoo-sources-4.1.6
40 > I removed the equal sign since you want to keep that version around but
41 > nothing above it. If portage doesn't like that, you may want to use the
42 > next version up and have the ">=" in front. According to what I have
43 > here, it would be like this:
44 >
45 >> =sys-kernel/gentoo-sources-4.1.12
46 > I actually don't show a 4.1.6 here right now. Removed I guess but
47 > likely still works.
48 >
49 > That goes under /etc/portage/ by the way. I think you know that already
50 > but just in case. I have those moments too. ;-)
51 >
52 > That helps??
53 >
54 > Dale
55 >
56 > :-) :-)
57 >
58 >
59
60 I was triple checking and realized something. Some of the lines are not
61 correct. It seems in my email software at least it puts a little line
62 in place of the >. So, let me try this way.
63
64
65 Nvidia is like this: >=x11-drivers/nvidia-drivers-341.0.0
66
67 Your kernel line may work like this: >sys-kernel/gentoo-sources-4.1.6
68
69 Or it may have to be like this if portage doesn't like the above:
70 >=sys-kernel/gentoo-sources-4.1.12
71
72 Now, let's see if that displays correctly. I won't know until I send it
73 and get it back.
74
75 Dale
76
77 :-) :-)

Replies

Subject Author
Re: [gentoo-user] using package.provided Dale <rdalek1967@×××××.com>