Solaris 10/11 Prefix Install

= Gentoo Prefix Stage3 installation on Solaris 10/11 = This article describes how to quick install Gentoo Prefix from binary (stage3) packages on Solaris 10/11 systems. There are two ways to install Gentoo Prefix, as root in /opt/gentoo (using Solaris package manager) or as any user on any location. First is quicker, but second you can customize freely.

= Installing as root user in /opt/gentoo =

Limitations

 * Root access to Solaris system is required,
 * At least ~500MB free space at /opt,
 * Gentoo Prefix will be installed in /opt/gentoo directory.

Prerequisite knowledge
This guide assumes that you know how to:
 * check version of Solaris (10 or 11)
 * check arch (x86 or sparc)

Installing
Packages are available to download from http://mirror.szafa.eu.org/gentoo-prefix-solaris/. First, you have to choose correct arch and system version, then download package.

For x86 run:

For sparc run:

Unpack:

And install:

After installing execute: and to sync Portage tree.

Uninstalling
To uninstall Gentoo Prefix run:

= Installing as not root user =

Limitations

 * At least ~500MB free space
 * Some time to rebuild system

Prerequisite knowledge
This guide assumes that you know how to:
 * check version of Solaris (10 or 11)
 * check arch (x86 or sparc)

Installing
Packages are available to download from http://mirror.szafa.eu.org/gentoo-prefix-solaris/. First, you have to choose correct arch and system version, then download package.

For x86 run:

Export $EPREFIX and create directory for Gentoo Prefix:

Unpack downloaded tarball:

Create symbolic link to original build directory:

Start Gentoo Prefix:

Once again export $EPREFIX:

Replace hardcoded path "/var/tmp/gentoo" in all text files:

Remove broken links from etc/make.globals, etc/make.profile and etc/make.globals

Download original bootstrap script and make him executable:

Bootstrap portage:

Sync portage:

Now is good time to setup your make.conf, after that rebuild entire system:

After rebuilding system it is safe to remove /var/tmp/gentoo link

Now you can use your custom installed Gentoo Prefix :)

Uninstalling
Simply remove your Gentoo Prefix directory.