Help - Search - Members - Calendar
Full Version: Upgrade to the Current Gentoo Release
MandrivaUsers.org > Advanced Topics > Other Linux and Unix Distributions
ac_dispatcher
First Its important to note that gentoo users can upgrade all packages to current level by the "emerge -u world" command. But their system may not be equal to the current Gentoo release, so here we go.

My system runs ~x86 (unstable), and is pretty clutterd. Some things are broke, some are hacked to work. But all in all a good running system.

<cut from the Gentoo page>
QUOTE
Here in Gentoo land, the concept of upgrading is quite different compared to the rest of the Linux world. You probably already know that we never got in touch with the "classic" way of upgrading software: waiting for a new release, downloading it, burning, putting it in the cdrom drive and then following the upgrade instructions.

You know (being a Gentoo user after all) that this process is extremely frustrating for power users that want to live on the bleeding edge. Even power users from other distributions probably share the same feelings, given the popularity and spread of tools like apt or apt-rpm which make it possible to have quick and frequent updates. However, no distibution is more suited than Gentoo to satisfy these kind of demanding users. From the beginning, Gentoo was designed around the concept of fast, incremental updates.

Ideally, you install once and then do not to bother with releases: just follow the instructions in A Portage Introduction in the Gentoo Handbook that explain how to keep your system up to date. While that's the way things usually go, sometimes changes are made to the core system which require updates to be done manually.


OK Im ready - Lets go:

First make sure you have the gentoolkit installed:
CODE
#emerge -u gentoolkit

Then make sure you have a current portage:
CODE
#emerge sync


<<Now may be a good time for a backup (/etc)>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Now time for the fun:

First we need to update your profile to the current one. Come to find out I was useing the 2004.1 profile.

Remove old profile:
CODE
# rm /etc/make.profile


Now link to the current profile:
CODE
# ln -s ../usr/portage/profiles/default-linux/x86/200X.X /etc/make.profile


Note: Replace the above X.X with the current release.

Once that is done its time to upgrade your Gentoo:

First check for dependency problems:
CODE
# emerge --pretend --update --deep --newuse world


From here you may need to adjust your settings in /etc/portage. I found out I had a package masked in /etc/portage/package.mask that I forgot about. Once all that was worked out:

CODE
# emerge --update --deep --newuse world


For me I had 99 Packages to upgrade. I normally dont do a --deep option when upgrading. Also running ~x86 makes this even more dangerous.

But here are the next steps Ill take:

<<cut from Gentoo docs>>
QUOTE
Some packages in the Portage tree don't have any real content but are used to install a collection of packages. For instance, the kde package will install a complete KDE environment on your system by pulling in various KDE-related packages as dependencies.


So now its time to remove the orphaned dependencies.

First again check for dependency issues:
CODE
# emerge �p depclean


Some people have reported that this step has tried to unmerge sys-apps/slocate and net-misc/dhcpcd so a edit of your world file may be in order! Once all checks out:

I found depclean wanted to unemerge two packages I needed: net-misc/dhcpcd and dev-java/blackdown-jre

CODE
# emerge depclean


Now you should have a clean(er) system. But to make sure you didnt break any dependency:

Recheck all dependency issues and reinstall if needed:

CODE
# revdep-rebuild


Have fun - Hope it works as good for you as it did for me tongue.gif


Some Sites I got my idea / info from:

http://forums.gentoo.org/viewtopic.php?t=2...asc&start=0

http://www.gentoo.org/doc/en/handbook/hand...rt=2&chap=1

http://www.gentoo.org/doc/en/gentoo-upgrading.xml

Gentoo Rocks headbang.gif
SoulSe
Excellent guide ac! Thanks!

Guess what I'll be doing this afternoon tongue.gif

Ahhh.... Gentoo wub.gif

EDIT: Done! All up to date and shiny - also a noticeable increase in portage speed. banana.gif

depclean wanted to take out half my system though, including gnome, gimp, abiword, ut2004, doom3 and a whole lot more! My world file is way long now...
jlc
Yes, and just like you running "gentoo unstable" I run fedora/rawhide(unstable) and all it takes for me is

CODE
yum update


Maybe
CODE
updatedb
slocate *.rpmnew


That's it biggrin.gif

The only diff is mine is updated in minutes rather than hours. 18.gif


The same can be said for many distro's. zzz.gif
SoulSe
offtopic.gif



cheeky.gif
theo
urpmi.update -a -v && urpmi --auto-select -v

(-v -verbose- is optional)

04.gif
jlc
QUOTE (SoulSe @ May 23 2005, 08:39 AM)
offtopic.gif



cheeky.gif

huh, for some reason I thought this was part of the other post, did it get split or was I on the crack pipe again biggrin.gif
scarecrow
Huh... big deal.
pacman -Syu does the same thing in Arch in much less time than Fedora (or apt-get update / apt-get upgrade does in any Debian).
Thought the thread was about Gentoo- was it?
jlc
In the next Saga of "How fast to upgrade Distro Wars!"

Much less time between binary distro's is probably more subjective than reality. Binary vs. Source is easy to figure out which one is faster! biggrin.gif
ac_dispatcher
Man this place always seems to make me smile.

As soon as everyone realizes that all Distro's are sub Gentoo then you'll be on the right path.



./super_flame_vest

18.gif
jlc
18.gif

Theres a chance I was using gentoo before you started using Linux, but I'm only guessing since I don't know how long you have been in Linux.

Gentoo isn't bad at all, in the distro list, I would put them in 2 or 3 with Ubuntu.

None of them do all I want like Fedora does so BLAH!
ac_dispatcher
lol

I started back in RH 5.2 I think it was called Hurrican but never really got serious until 9.0.

Ah yes back in the "Texstar" packages for Mandrake.


.
offtopic.gif

Im building a 64bit cpu soon - Whats the best Distro (most packages) for a 64bit system?
iphitus
pacman -Syu
jlc
QUOTE (ac_dispatcher @ May 23 2005, 09:28 PM)
lol

I started back in RH 5.2 I think it was called Hurrican but never really got serious until 9.0.

Ah yes back in the "Texstar" packages for Mandrake.


.
  offtopic.gif

Im building a 64bit cpu soon - Whats the best Distro (most packages) for a 64bit system?
*

biggrin.gif I didn't use rh back then I used suse/slackware

As far as 64, your going to shoot me but I would say Fedora of course tongue.gif

My reasons are follows,

There are a ton of apps/programs, uses multilib, I moved to rawhide sometime early in fc3 and right about fc4t1 came out they moved almost everything over to gcc4, source based doesn't really optimize anything on a 64 biggrin.gif (i have tried gentoo on it)

Gentoo-64: Good, but still compile times will always blow, they don't seem to have everything together yet, everytime I've ran it on the 64, seems to bounce back and forth. gcc3.4.3 is standard so you will have to go through the pains of recompiling, not as bleeding edge as rawhide.

Ubuntu-64, no multilib <---- pretty much finishes it for me biggrin.gif

Suse, can't stand them

mdk64, used to be pay-to-play and I"ve never been a mandy fan anyway.
ac_dispatcher
Thanks
ac_dispatcher
Wow - I made this how to a long time ago. I'm not sure how relevant it is now. May want to bury it.
ianw1974
I think:

CODE
emerge --update --deep --newuse world
eselect profile set nn (replace nn with number of new profile)
emerge --update --deep --newuse world


should do the trick and you're done smile.gif
iphitus
Buried. There'll be better information on the gentoo wiki and in their documentation.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.