Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How 2 keep slotted installs out of emerge -cp list?[Solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

How 2 keep slotted installs out of emerge -cp list?[Solved]

  • Quote

Post by CaptainBlood » Wed Dec 14, 2011 3:39 pm

Hi dear all,
I've recently installed latest binutils (2.22-r1 I believe).
It so happened that at least 1 package doesn't install yet (nm-applet if I'm not wrong) with that new binutils package.
So I have to keep former stable binutils installed for a while still.

Code: Select all

emerge -cp
always propose to remove oldest package.

Code: Select all

--exclude
parameter is a good remedy, but has to be remembered each time and instanciated for each concerned package.

Is there any way to have

Code: Select all

emerge -c
command keeping many slotted packages without the use of

Code: Select all

--exclude
parameter?

Thanks for your attention.
Last edited by CaptainBlood on Wed Dec 14, 2011 8:23 pm, edited 1 time in total.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Wed Dec 14, 2011 4:03 pm

depclean remove obsolete package, if you wish to teach your portage what is obsolete and what is not, your world file is there for that.

So your solve is just that, add the package-version to your world file and they won't be considered anymore as obsolete/removable.
This is generally seen by users strike by depclean removing their kernel (they emerge gentoo-sources but not gentoo-sources-2.3.0 and so depclean will think gentoo-sources-2.3.1 install mean gentoo-sources-2.3.0 is now ok to be remove)
Top
Etal
Veteran
Veteran
User avatar
Posts: 1932
Joined: Fri Jul 15, 2005 3:01 pm

  • Quote

Post by Etal » Wed Dec 14, 2011 4:22 pm

You can do "emerge --noreplace foobar:1.2" where "1.2" is the slot number. That will add that slotted version of foobar to the world file, as krinn said.
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Wed Dec 14, 2011 7:40 pm

Thanks to both of you. I'll give it a try.
I generally use

Code: Select all

--noreplace
after I realized I have done an excessive cleanup of my world file.
I"m happy I've learned another purpose to it.

Thanks for your attention, interest and support.

EDIT : Actually for binutils I had to

Code: Select all

emerge --noreplace sys-devel/binutils-2.21.1-r1
since I couldn't succeed with a :2.21 syntax as suggested.
new line in world file is as

Code: Select all

sys-devel/binutils:x86_64-pc-linux-gnu-2.21.1
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy