Forums

Skip to content

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

How to emerge packages for different slots?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
kurtg
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Tue Sep 13, 2005 2:12 pm
Location: Florida USA

How to emerge packages for different slots?

  • Quote

Post by kurtg » Fri Aug 17, 2007 2:42 pm

Are there docs for this? I looked, but I couldn't figure it out.

I want to install both:

dev-java/sun-sdk-1.4.*
dev-java/sun-sdk-1.5.*

How do I search for and install packages that have different slots?

--Kurt
Top
tarpman
Veteran
Veteran
User avatar
Posts: 1083
Joined: Thu Nov 04, 2004 2:55 am
Location: Victoria, BC, Canada

  • Quote

Post by tarpman » Fri Aug 17, 2007 2:46 pm

Code: Select all

emerge dev-java/sun-jdk:1.4
emerge dev-java/sun-jdk:1.5
Even better, use virtual/jdk instead. I'm fairly sure dev-java/sun-jdk is the default provider.
Saving the world, one kilobyte at a time.
Top
kurtg
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Tue Sep 13, 2005 2:12 pm
Location: Florida USA

  • Quote

Post by kurtg » Fri Aug 17, 2007 2:48 pm

Thanks! But, how would I figure that out? Is there a way to discover the slots available?
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Fri Aug 17, 2007 2:50 pm

Add an equals (=) to the emerge command, eg

Code: Select all

emerge -p =dev-java/sun-sdk-1.4.*
For the record, it's dev-java/sun-jdk, but I'm presuming that was a typo.

Edit: tarpman - I never knew you could use ':' to specify versions.
Where'd you pick up that little nugget?
"You have to invite me in"
Top
kurtg
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Tue Sep 13, 2005 2:12 pm
Location: Florida USA

  • Quote

Post by kurtg » Fri Aug 17, 2007 3:02 pm

Hopeless wrote:Add an equals (=) to the emerge command
Sorry, it errored out:
# emerge -p =dev-java/sun-jdk-1.4.*

These are the packages that would be merged, in order:

Calculating dependencies |

!!! '=dev-java/sun-jdk-1.4.*' is not a valid package atom.
!!! Please check ebuild(5) for full details.
!!! (Did you specify a version but forget to prefix with '='?)
I've been doing Gentoo for 2 years, but still have and "introductory" level understanding of portage. Where/How do I push it to the next level.

--Kurt

PS - yes, typo.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Fri Aug 17, 2007 3:08 pm

Oops, my bad, it should have been "=dev-java/sun-jdk-1.4*".

:oops:

I make that mistake a lot.

I've never actually seen a really good guide to "advanced" portage usage, everything I know I've learned by doing (and picking up little things like the ':' operator from the forums).
"You have to invite me in"
Top
kurtg
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Tue Sep 13, 2005 2:12 pm
Location: Florida USA

  • Quote

Post by kurtg » Fri Aug 17, 2007 7:06 pm

Hopeless wrote:"=dev-java/sun-jdk-1.4*"
I make that mistake too, but I've never been able to debug it. What is an atom? What are the grammatical rules? I usually

I guess I'll need to pick up tidbits myself. Thanks for the help.
Top
bblount
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Mon Nov 08, 2004 2:21 pm

  • Quote

Post by bblount » Fri Aug 17, 2007 7:27 pm

You would think it would be here in an advanced section or something: http://www.gentoo.org/doc/en/handbook/h ... t=2&chap=1

Doc feature request! :)
Top
Arfrever
Bodhisattva
Bodhisattva
Posts: 2463
Joined: Sat Apr 29, 2006 5:27 pm
Location: 異世界

  • Quote

Post by Arfrever » Fri Aug 17, 2007 8:23 pm

Hopeless wrote:I never knew you could use ':' to specify versions.
It is used to specify slots, not versions.
Hopeless wrote:I've never actually seen a really good guide to "advanced" portage usage
Some information is documented in NEWS and RELEASE-NOTES.

Perduodu linkėjimus
Arfrever
Top
Post Reply

9 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 Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy