View previous topic :: View next topic |
Author |
Message |
alex73782 n00b
Joined: 01 Oct 2012 Posts: 4
|
Posted: Mon Oct 01, 2012 4:37 pm Post subject: Update one specific package in gentoo |
|
|
Hi,
I can imagine this question has been asked before, but I did not find any results using the search function in this forum. I want to update only the package
cmake
in gentoo to a newer, the newest or a specific version number. How can I do this? I tried
emerge-webrsync
emerge cmake
but this only installed the version already on the system.
Thanks for any hints,
Alex |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Mon Oct 01, 2012 4:58 pm Post subject: |
|
|
Newest cmake version in portage is cmake-2.8.9.
If you want a newer one you'll have to find it in an overlay or compile it from newest available source.
Not recommended.
The command to emerge a specific version is Code: |
emerge =<packagename-version>. |
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
alex73782 n00b
Joined: 01 Oct 2012 Posts: 4
|
Posted: Tue Oct 02, 2012 5:38 am Post subject: |
|
|
Hi,
your suggestion does not seem to work. I tried the following
Code: |
emerge =cmake-2.8.9 |
and got an error
Code: |
Calculating dependencies... done!
emerge: there are no ebuilds to satisfy "=dev-util/cmake-2.8.9".
|
Without the '='-sign it says that cmake-2.8.9 i not a valid package atom.
So again, how do I install cmake 2.8 or higher on gentoo; only cmake, only version 2.8 or higher.
Thanks
Alex |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Oct 02, 2012 5:54 am Post subject: |
|
|
I would argue that you should include the -1 option to avoid adding the file to your world file. That can cause complications.
The highest available in portage is 2.8.9. I can't find a higher version in the overlays either. A quick look at the home page makes me think it is the latest release.
You can see the available versions using emerge -s cmake and install your desired version using emerge -1 =cmake-<version> where <version> is the one you want.
Also I have found it better to search the forum using Google like this: site:https://forums.gentoo.org <search key>
Its a handy trick. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
alex73782 n00b
Joined: 01 Oct 2012 Posts: 4
|
Posted: Tue Oct 02, 2012 6:04 am Post subject: |
|
|
Hi,
thank you for your quick answer, but I get the same error as above when trying to do
Code: |
emerge -1 =cmake-2.8.9 |
Anything missing? |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Oct 02, 2012 6:08 am Post subject: |
|
|
Its odd. cmake is stable and according to http://packages.gentoo.org only cmake 2.8.9 is available. What is the output of emerge -pv cmake? I would be interesting to see what you have installed. When was the last time you synced? _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
alex73782 n00b
Joined: 01 Oct 2012 Posts: 4
|
Posted: Tue Oct 02, 2012 6:14 am Post subject: |
|
|
Hi,
the output of
is
Code: |
These are the packages that would be merged, in order:
Calculating dependencies |!!! Error loading '/var/cache/edb/vdb_blockers.pickle': Global and instance pickles are not supported.
... done!
[ebuild R ] dev-util/cmake-2.6.4-r2 USE="vim-syntax -emacs -python3 -qt4" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB |
The used gentoo base might be an older one, but this is a stable version and NOTHING ELSE must be changed. ONLY cmake to a version>2.8 (does not need to be the latest and greatest, just better than 2..
Thanks |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Oct 02, 2012 6:25 am Post subject: |
|
|
Well, then we have a problem. dev-util/cmake-2.6.4-r2 is not in portage so I assume you have set this box up in the past and left it alone for a very long time. Don't worry about updating it. Even if you wanted to update it at this point, you can't do it easily. I am not saying there is anything wrong with that. I am sure you have your reasons.
A single package can be updated to the most recent version using the -u option like so: emerge -u cmake That should also pull in any deps if needed, but if you are really serous you can add the --no-deps option, although this could break your system.
What I don't get is that a recent --sync should have left cmake-2.8.9 as you only version available. Did your sync complete successfully? On a side not, which version of portage are you running? _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Oct 02, 2012 10:31 am Post subject: |
|
|
even it's not related to the problem now, the -1 suggest was a bad one
-1 won't prevent cmake-version from getting pickup by depclean
-1 won't tell emerge to not use other versions, upgrade or downgrade
So if you need a specific version of a package, make sure you don't use -1 and that version specific is added to your world file, else you'll get surprise soon or later. |
|
Back to top |
|
|
paulj Guru
Joined: 30 Sep 2004 Posts: 511 Location: Wales, UK
|
Posted: Fri Oct 05, 2012 5:37 am Post subject: |
|
|
Have you sync-ed recently? cmake-2.8.9 was compiled on my system on 28/9/12, so would have been put in the tree recently. Your system is re-installing 2.6.4-r2, which is no longer in my tree.
Run
then try again with
Code: | emerge -av -1 =cmake-2.8.9 |
Of course, with the tree synced, you don't need to specify the version number, as 2.8.9 is the current version. Out of interest, cmake is not a @selected dependency on my system, it is pulled in by a long list of packages (mostly kde based), so using the -1 option in this case is probably worthwhile (assuming it has already been installed as a dependency of something else) unless you want the system to remain at this version. |
|
Back to top |
|
|
|