Gentoo Archives: gentoo-user

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