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 distribution 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 never bother with releases: just follow the
instructions in
A recurring question about the Gentoo release process is: "Why roll out new releases frequently, if they are not intended to let users update software?" There are various reasons:
When a release includes new incompatible features, or provides a set of core
packages and settings that deeply modify the behavior of the system, we say
that it provides a new
A
The profile in use is determined by the symbolic link
Profiles obsoleted by new ones are kept in
There are various reasons that a new profile may be created: the release of
new versions of core packages (such as
If a new Gentoo release does not include a new profile then you can safely pretend that it never happened. :)
If you update your installed packages
If a release (such as 2008.0 for x86) introduces a new profile, you have the choice to migrate to the new profile.
Naturally, you are not forced to do so, and you can continue to use the old
profile and just update your packages
However, Gentoo strongly recommends updating your profile if it becomes deprecated. When this happens, it means that Gentoo developers no longer plan on supporting it.
If you decide to migrate to the new profile, then you will have to manually perform the update. The way you update may vary significantly from release to release; it depends on how deep the modifications introduced in the new profile are.
In the simplest case you only have to change the
You can view the list of profiles on your architecture officially supported by
Gentoo developers when you
# eselect profile list
First, run
(View available profiles) # eselect profile list(Select the number of your desired profile from the list) # eselect profile set <number>
If you'd still prefer to change profiles manually, then simply do the following:
# rm /etc/make.profile # ln -s ../usr/portage/profiles/<selected profile> /etc/make.profile
If you intend to upgrade to these profiles, you should be aware that they expect
the system to be set to a Unicode locale by default; specifically that
UNICODE="yes" is set in
Alternatively, if you do not wish to set a locale, you should specify
UNICODE="no" in
(To remove Unicode support just for baselayout) # echo "sys-apps/baselayout -unicode" >> /etc/portage/package.use # emerge -a baselayout(To remove Unicode support from your whole system) # nano -w /etc/make.conf USE="-unicode" # emerge -a baselayout
Finally, follow the
To switch to the 2006.0 profile, point the
# rm /etc/make.profile # ln -s ../usr/portage/profiles/<selected profile> /etc/make.profile
alpha - Users that use a 2.4 kernel or don't want to use NPTL should use
the default-linux/alpha/no-nptl profile. More information is available in
ppc - The merge of the ppc32 and ppc64 profiles went forward. The ppc32 profile has been changed in a way that offers a minimalistic generic profile for all purposes, located in default-linux/ppc/ppc32. The release-dependent profile is optimized for desktop-usage and located in default-linux/ppc/ppc32/2006.0. There are some subprofiles available for G3 and G4 processors, and G3/Pegasos and G4/Pegasos for the Pegasos Open Desktop Workstation. Make sure you choose the correct subprofile for your system when migrating to a 2006.0 profile.
sparc - Upgrading to the 2.4-kernel based 2006.0/2.4 profile
requires manual user intervention (unmerging java stuff) and an
Upgrading to the 2.6-kernel based 2006.0 profile which is not considered
stable also requires an entry in
All other archs - There are no fundamental changes in this profile. No specific action needs to be performed.
To switch to the 2005.1 profile, point the
# rm /etc/make.profile # ln -s ../usr/portage/profiles/<selected profile> /etc/make.profile
All archs - There are no fundamental changes in this profile. No specific action needs to be performed.
ppc - With the 2005.1 release, the ppc and ppc64 profiles were merged and a number of subprofiles for specific subarchitectures were created. Make sure you choose the correct subprofile for your system when migrating to a 2005.1 profile.
With the introduction of 2005.0, several architectures have decided to define additional profiles. Make sure you read the description of said profiles before you decide to migrate to one of them. Most architectures now also default to the 2.6 kernel tree where 2.4 was chosen previously.
Some architectures require a bit more actions to be completed in order to convert from one profile to another. If that is the case, the step-by-step guides are linked from the table.
| Profile | Description | Specific Upgrade Guide |
|---|---|---|
To switch to the selected profile, point the
# rm /etc/make.profile # ln -s ../usr/portage/profiles/<selected profile> /etc/make.profile
If you are running a Linux 2.4-based system but want to migrate to a 2.6-based
kernel, make sure you read our
With the introduction of the 2004.3 profiles, users are not going to see huge
modifications of their systems (see below for details). However, Gentoo
developers decided to push out this new profile and to deprecate quite a few of
the old ones to speed up the adoption of
To switch to the 2004.3 profile, point the
substitute <arch> with your arch # rm /etc/make.profile # ln -s ../usr/portage/profiles/default-linux/<arch>/2004.3 /etc/make.profile
All archs - As said above, there are no big changes introduced in this
profile. However, it should be noted that
ppc -
Although this section does not seem to integrate well in this upgrading guide, it is quite important. Any profile listed above this section requires a Portage version that supports cascading profiles. However, some obsoleted profiles don't allow the user to upgrade Portage or the user is using a profile that isn't available anymore - any attempt to upgrade Portage will result in a failure.
To work around this problem, users can set a temporary symbolic link to the
# rm /etc/make.profile # cd /etc # ln -sf ../usr/portage/profiles/obsolete/<arch> make.profile # emerge -n '>=sys-apps/portage-2.0.51'
To switch to the 2004.2 profile, point the
substitute <arch> with your arch # rm /etc/make.profile # ln -s ../usr/portage/profiles/default-linux/<arch>/2004.2 /etc/make.profile
x86 - This profile changes the default X11 implementation from
amd64 - There are no fundamental changes from previous profiles, no specific action needs to be performed.
To switch to the 2004.0 profile, point the
substitute <arch> with your arch # rm /etc/make.profile # ln -s ../usr/portage/profiles/default-<arch>-2004.0 /etc/make.profile
All archs - There are no fundamental changes from previous profiles, no specific action needs to be performed.
The instructions for this upgrade are quite complex, you can find them