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:36:41
Message-Id: 56CE92D8.4040906@gmail.com
In Reply to: Re: [gentoo-user] using package.provided by Dale
1 Dale wrote:
2 > Dale wrote:
3 >> Harry Putnam wrote:
4 >>> I'd like to stay on kernel-4.1.6, rather than keep installing the
5 >>> newest version at each upgrade.
6 >>>
7 >>> As I recall, and a quick look at `man portage', a file named
8 >>> `package.provided' is meant for such things.
9 >>>
10 >>> The syntax is not described in detail... I tried these:
11 >>>
12 >>> /etc/portage/package.provided
13 >>>
14 >>> >=sys-kernel/gentoo-sources-4.1.6
15 >>>
16 >>> Still `emerge -vp gentoo-sources' indicates it will install the most
17 >>> recent kernel.
18 >>>
19 >>> then I noticed the portage man page, under `Format' does say:
20 >>> "relational operators are not allowed"
21 >>> So I dropped the `>=' part
22 >>>
23 >>> sys-kernel/gentoo-sources-4.1.6
24 >>>
25 >>> Same result from `emerge -vp gentoo-sources' . . .
26 >>>
27 >>> What am I forgetting?
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 > I was triple checking and realized something. Some of the lines are not
60 > correct. It seems in my email software at least it puts a little line
61 > in place of the >. So, let me try this way.
62 >
63 >
64 > Nvidia is like this: >=x11-drivers/nvidia-drivers-341.0.0
65 >
66 > Your kernel line may work like this: >sys-kernel/gentoo-sources-4.1.6
67 >
68 > Or it may have to be like this if portage doesn't like the above:
69 >> =sys-kernel/gentoo-sources-4.1.12
70 > Now, let's see if that displays correctly. I won't know until I send it
71 > and get it back.
72 >
73 > Dale
74 >
75 > :-) :-)
76 >
77
78
79 Silly software. That bottom line wraps here so it took it out like the
80 first email did. So, if it is doing the same for you, that bottom line
81 needs a greater than sign in front of the category and package name.
82 Let's see if it edits out the words "greater than sign" as well. ROFL
83 The biggest thing, I think you want to use package.mask anyway. That
84 should help.
85
86 Jeez. Sometimes I want to take a hammer to a puter.
87
88 Dale
89
90 :-) :-)