Solaris 10/11 Prefix Install
From Gentoo Linux Wiki
Contents |
[edit] 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.
[edit] Installing as root user in /opt/gentoo
[edit] Limitations
- Root access to Solaris system is required,
- At least ~500MB free space at /opt,
- Gentoo Prefix will be installed in /opt/gentoo directory.
[edit] Prerequisite knowledge
This guide assumes that you know how to:
- check version of Solaris (10 or 11)
- check arch (x86 or sparc)
[edit] 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.
[edit] Uninstalling
To uninstall Gentoo Prefix run:
[edit] Installing as not root user
[edit] Limitations
- At least ~500MB free space
- Some time to rebuild system
[edit] Prerequisite knowledge
This guide assumes that you know how to:
- check version of Solaris (10 or 11)
- check arch (x86 or sparc)
[edit] 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:
export EPREFIX="$HOME/gentoo"
Unpack downloaded tarball:
Create symbolic link to original build directory:
Start Gentoo Prefix:
Once again export $EPREFIX:
export EPREFIX="$HOME/gentoo"
Replace hardcoded path "/var/tmp/gentoo" in all text files:
grep -wlIR "/var/tmp/gentoo" $EPREFIX/ | xargs -n 1 sed -i -e 's!/var/tmp/gentoo!'${EPREFIX}/'!g'
Remove broken links from etc/make.globals, etc/make.profile and etc/make.globals
Download original bootstrap script and make him executable:
wget http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/scripts/bootstrap-prefix.sh?format=txt -O ./bootstrap-prefix.sh
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 :)
[edit] Uninstalling
Simply remove your Gentoo Prefix directory.