Forums

Skip to content

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

Switching to stable with keeping existing packages.

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
Magotari
n00b
n00b
Posts: 15
Joined: Sat May 06, 2006 7:54 am

Switching to stable with keeping existing packages.

  • Quote

Post by Magotari » Sat Jun 21, 2008 7:56 am

I'd like to stabilize my system a bit. Everything works fine, there is no need to use cutting-edge things for a moment. I could just change ~x86 to x86 in make.conf and I'd be on the stable branch again. The problem is that I would like not to lose whatever unstable packages I already have.

Is there some way to make portage install stable packages when they are newer than currently installed, but keep the existing packages if stable is behind unstable? I'm thinking emerge --no-downgrade or something like that. Is there a way to do this, or am I stuck with unstable?

I looked around the faqs and manuals, could not find anything. I'd love to be pointed at the relevant material, if I missed it.
Top
legine
Guru
Guru
Posts: 555
Joined: Thu May 27, 2004 2:07 pm
Location: Germany

  • Quote

Post by legine » Sat Jun 21, 2008 8:06 am

I dont think there is a automatic way to swap from unstable to stable.

Maybe not the most elegant way.

Swap Usefalag from ~x86 to 86.
Use emerge -up world > ~/portage.keywords (hope the keyfile is the correct name ;) )
Swap back to ~x86 (just for security)
The correct it by hand to have all packages the unstable entries.
(Example: app-cdr/cdrkit ~x86 )
When done swap it with the old file in etc and set x86 again.
Thenrun update process...
quote from Spaceballs:
Dark Helmet:[...] we were told to comb the desert, so we're combing it! [puts down bullhorn] Find anything yet?!
Soldier: Nothing yet, sir.
Top
wjb
l33t
l33t
User avatar
Posts: 681
Joined: Sun Jul 10, 2005 9:40 am
Location: Fife, Scotland

  • Quote

Post by wjb » Sat Jun 21, 2008 1:42 pm

This command will make a list of the current package versions you have installed. If you add this list into /etc/portage/package.keywords, it should keep everything you currently have when you switch make.conf to x86.

Code: Select all

eix -cIx --pure-packages --format-compact "<fullinstalled>" | sed s/^/=/ | sed "s/$/ ~x86/"
Eventually, as the stable versions pass the ones in this list, the packages will start to update again.

You can use eix-test-obsolete every now and again to find out which entries in package.keywords are not needed anymore
Top
Magotari
n00b
n00b
Posts: 15
Joined: Sat May 06, 2006 7:54 am

  • Quote

Post by Magotari » Sat Jun 21, 2008 10:20 pm

Thanks, that is what I was looking for.
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 Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic