1 |
Leandro Melo de Sales schreef: |
2 |
> Hi folks, |
3 |
> |
4 |
> Recently I installed mysql using emerge mysql, but the version that |
5 |
> was installed is 4.1.14, but I'd like to install the last available |
6 |
> version of the 4.0 release. How can I do this? |
7 |
> |
8 |
|
9 |
|
10 |
dev-db/mysql |
11 |
Available versions: 3.23.58-r1 4.0.25-r2 ~4.0.26 4.1.14 ~4.1.15 |
12 |
~4.1.15-r1 *4.1.15-r30 ~5.0.15 ~5.0.16-r3 *5.0.16-r30 |
13 |
Installed: none |
14 |
Homepage: http://www.mysql.com/ |
15 |
Description: A fast, multi-threaded, multi-user SQL |
16 |
database server |
17 |
|
18 |
|
19 |
So I guess you want 4.0.26? Well, that's unstable, and the fact that you |
20 |
just installed 4.1.14 suggests that your ACCEPT_KEYWORDS setting in |
21 |
/etc/make.conf is set to stable (assuming x86 arch). |
22 |
|
23 |
The best way to solve this would be by using a mixture of settings in |
24 |
/etc/portage/package.mask and /etc/portage/package.keywords: |
25 |
|
26 |
Assuming that the directory /etc/portage exists already (create it if not): |
27 |
|
28 |
(as root) |
29 |
|
30 |
echo ">=dev-db/mysql-4.1.14" >>/etc/portage/package.mask |
31 |
|
32 |
to mask all versions of mysql greater than or equal to 4.1.14 |
33 |
|
34 |
and |
35 |
|
36 |
echo "dev-db/mysql ~x86" >>/etc/portage/package.keywords |
37 |
|
38 |
to unmask the unstable versions below the masked version (thus 4.0.26). |
39 |
|
40 |
or you could unmask the specific version using |
41 |
|
42 |
echo "=dev-dv/mysql-4.0.26 ~x86" >>/etc/portage/package.keywords |
43 |
|
44 |
but be warned that this will not enable you to upgrade if 4.0.26 is |
45 |
revised (4.0.26-r1) or upgraded (4.0.27), as those will still be masked |
46 |
by the ~arch keword, as opposed to the previous command, which unmasks |
47 |
all future unstable versions below 4.1.14. |
48 |
|
49 |
If you use a different arch, change the "~x86" to your correct arch |
50 |
(assuming that the version of mysql you want is available for that arch; |
51 |
if it is not, adapt the above commands to the available versions that |
52 |
you want to mask and unmask. |
53 |
|
54 |
Then an emerge -uav world should come up with a [UD] for mysql (the |
55 |
upgrade is a downgrade), and whatever else might need to be updated on |
56 |
your system; if you don't want to emerge the other upgrades, just do an |
57 |
emerge -uav mysql (but that will put mysql in your world file if it was |
58 |
previously installed as a dependency of something else, and you may or |
59 |
may not want mysql in your world file. But that's your choice). |
60 |
|
61 |
Hope this helps. |
62 |
Holly |
63 |
-- |
64 |
gentoo-user@g.o mailing list |