1 |
scwang@××××××.cn schreef: |
2 |
> Every time when I run emerge -u world, the kernel will be updated if |
3 |
> it have some update. |
4 |
|
5 |
This is normal; you're asking for updates ("-u"), so Portage is offering |
6 |
you the available update you asked for. Why is this a problem? |
7 |
|
8 |
Are you running a different kernel? Not suspend2-sources, but something |
9 |
else and you simply don't want suspend2-sources present on your system |
10 |
anymore, or is there an issue with the specific version of |
11 |
suspend2-sources that's being offered, so the issue is that you don't |
12 |
want to upgrade? |
13 |
|
14 |
If the former (you used to use suspend2-sources, but you switched to |
15 |
another kernel variant like gentoo-sources or ck-sources, and you don't |
16 |
want to upgrade suspend2-sources anymore), the solution is to emerge -C |
17 |
(unmerge) the version of suspend2-sources you had installed (delete the |
18 |
source in /usr/src before unmerging to speed up the process). Then it |
19 |
won't be "updatable", because it's no longer present (but since the |
20 |
source of the kernel variant you are using is still present, that will |
21 |
continue to be upgraded).. |
22 |
|
23 |
If the latter (you are still using suspend2-sources, but you don't want |
24 |
to upgrade it beyond a certain version), the solution is to mask the |
25 |
versions beyond what you want manually, using /etc/portage/package.mask: |
26 |
(not with quotes) |
27 |
"> =sys-kernel/suspend2-sources-2.6.15-r7" |
28 |
(since you're using -r6 and attempting to upgrade to -r8, this will mask |
29 |
everything including to and above the version beyond the one you're using). |
30 |
|
31 |
The downside of this is that you have to keep an eye on the package to |
32 |
see if the problem has been solved in order to get any further updates, |
33 |
as Portage will no longer tell you or offer you updates to this package. |
34 |
|
35 |
Hope this helps, |
36 |
Holly |
37 |
-- |
38 |
gentoo-user@g.o mailing list |