SGI IRIX series, part 3. Part 1, SGI IRIX Overview and History, covered the releases and the MIPS hardware. Part 2, Essential SGI IRIX Admin Commands, covered hinv, chkconfig, versions, a short inst preview, System Manager and nvram. This part is the full install guide: inst, Software Manager (swmgr), overlay CDs, patches, tardist files, the SGI freeware CDs and the nekoware collection. If you also look after Sun systems, Solaris Releases and Support Lifecycle is the Solaris companion.
Option lists and behavior come from the IRIX 6.5.30 reference (man) pages for inst and swmgr, and from SGI’s IRIX Admin: Software Installation and Licensing (007-1364) and IRIX 6.5 Installation Instructions (007-3862). This is a reference post, not a lab. I did not run these commands on IRIX hardware for this post. Sample sessions are labeled as examples and will differ on your machine.
Prerequisites
- An IRIX 6.5.x system and the matching installation media: the IRIX 6.5 foundation (base) CDs plus the overlay CDs for your exact 6.5.x level and stream (
morfthrough 6.5.22, then the single stream through 6.5.30). Part 1 explains the overlay streams. - Root access. Live installs from a running IRIX shell require the superuser. Operating-system overlays and some products must be installed from the miniroot, not from a live desktop.
- A backup of anything you cannot recreate, especially site-edited configuration files.
instkeeps.O/.Ncopies (see part 2), but that is not a substitute for a backup. - Enough free space in
/,/usrand (fortardistunpacking)/var. Check withdf -kbefore you start. - An isolated network. IRIX has had no security fixes since 2013. Do not open it to the internet to fetch software.
How IRIX software is packaged
IRIX software is distributed in a format that only inst and swmgr can read. A distribution lives on a CD, on disk in a distribution directory, on tape (possible but unsupported for loading the miniroot since IRIX 6.2), or as a .tardist file (a tar-encoded distribution, usually for a small product).
Inside a distribution, software is organized as products, split into images and then subsystems, named product.image.subsystem. Part 2 showed how versions lists what is already installed. The same names are what you type at the Inst> prompt:
# examples of subsystem names
eoe.sw.base # IRIX execution environment, base
nfs.sw.nfs # NFS
nfs.sw.nis # NIS
sysadmdesktop.sw.desktop
dev.sw.c # C compiler (MIPSpro), when present
Installation history lives in /var/inst: /var/inst/hist is the file database, per-product records sit beside it, and /var/inst/INSTLOG is the session log. Do not edit those files by hand.
Two ways to run inst: live IRIX vs the miniroot
The inst(1M) page describes two invocation modes:
- IRIX Installation (live): you run
instas root from a shell while IRIX is up. This is the usual way to add optional products, patches and freeware. Some software cannot be installed this way, because changing it while it is running would break the system.instand the product Release Notes will warn you. - Miniroot Installation: you shut the system down to the PROM monitor, load the miniroot into the swap partition, and
inststarts automatically. The root and/usrfilesystems are mounted as/rootand/root/usr. New IRIX overlays, the operating system itself, and some options must be installed this way. Loading the miniroot from tape is not possible as of IRIX 6.2; use a CD or a network distribution.
Part 6 of this series covers the PROM, the miniroot load, and recovery in more detail. For a planned overlay install, the usual path is: back up, shutdown to the System Maintenance Menu, choose the install option, load the miniroot from the IRIX installation CD or from a network distribution directory, then run inst from there.
Start a live inst session
Mount the distribution and point inst at it with -f. A local CD that the volume daemon has mounted under /CDROM is the common case. The distribution directory on SGI CDs is almost always called dist:
# example: local CD
su
inst -f /CDROM/dist
# example: distribution directory already copied to disk
inst -f /usr/dist/IRIX_6.5.30/dist
# example: remote directory, defaulting to user guest (or your current id)
inst -f installserver:/usr/dist/IRIX_6.5.30/dist
# example: remote directory as a specific user (needs .rhosts or no password)
inst -f instuser@installserver:/usr/dist/IRIX_6.5.30/dist
Remote installs use the old r-commands. The account you use must be able to read the distribution. By default inst tries your current user ID, then guest. That is one more reason to keep the machine on a lab network only.
You can also change the source after inst is running:
Inst> from /CDROM/dist
Inst> from installserver:/usr/dist/overlays/6.5.30/dist
A typical interactive session
Once the distribution is read, you get the Inst> prompt. A careful session looks like this (commands you type are shown; output is omitted because it depends on the media and what is already installed):
Inst> help
Inst> list
Inst> list installed
Inst> install standard
Inst> conflicts
Inst> space
Inst> go
Inst> quit
Useful commands at the prompt:
| Command | What it does |
|---|---|
from source | Open a distribution (local path, host:path, user@host:path, or an http:// .tardist URL if libwio.so is installed). |
list | Show subsystems in the current view. You can list by keyword (see below) or by a product pattern such as nfs or patch*. |
install sel | Select subsystems to install or upgrade. Does not copy files until you type go. |
remove sel | Select installed subsystems to remove (takes effect at go). |
keep sel | Clear a previous install or remove selection and leave the installed copy alone. |
conflicts | Show prerequisite, overlay and incompatibility conflicts that go will refuse to ignore. |
space | Estimate disk space for the current selections. |
go | Apply the selections: copy files, run exit-ops, update /var/inst. |
admin | Enter the admin submenu (save/load selections, hardware variables, a shell, and in the miniroot, mount and mkfs helpers). |
set / view | Show or change preferences and the current list view. |
quit | Leave inst. If you have uncommitted selections, it will ask. |
Selection keywords
Instead of typing every subsystem, you can use the keywords from the inst(1M) page. If you give more than one keyword in a single command, inst uses the intersection (subsystems that match all of them):
| Keyword | Meaning |
|---|---|
default (d) | Subsystems marked default in the distribution. |
standard | The usual upgrade set: upgrades of what is installed, plus new default siblings, plus prerequisites. If the distribution has no related products, this is the default subsystems. The documented upgrade sequence is keep * then install standard. |
upgrade | Newer versions of subsystems that are already installed. |
new | Subsystems that are not installed and are not upgrades or downgrades. |
patches | All patches in the distribution. |
patchupgrade | Patches that upgrade patches already installed. |
installed (I) | Already installed on the target. |
required | Marked required for a usable system. |
all | Everything inst can see in the distribution and history. Use with care. |
# example: upgrade what is already installed from this overlay, then add defaults that are new
Inst> keep *
Inst> install standard
Inst> conflicts
Inst> go
# example: add NFS and nothing else
Inst> install nfs.sw.nfs
Inst> conflicts
Inst> go
# example: all patches on this disc that upgrade patches you already have
Inst> install patchupgrade
Inst> conflicts
Inst> go
Always run conflicts before go. If inst reports overlay or prerequisite conflicts, fix the selections (install the missing base or overlay, or keep the older subsystem) rather than trying to force the job. A forced, inconsistent install is a common way to end up at the miniroot with a system that will not boot.
Non-interactive inst
For a repeatable install, use a selections file (-F) or a command file (-c), or pass selections on the command line:
# command line selections (still opens the interactive tool unless you automate it)
inst -f /CDROM/dist -I nfs.sw.nfs
# selections file: distribution plus the install keyword "patches"
# from /CDROM/dist
# i patches
inst -F /tmp/patch.sel
# command file containing the same Inst> commands you would type
inst -f /CDROM/dist -c /tmp/inst.commands
A selections file accepts from lines and selection directives such as i patches (install all patches). Blank lines and # comments are ignored. You can list more than one from line to open several distributions in one session.
Software Manager (swmgr)
swmgr is the graphical installer. It reads the same distributions as inst and accepts the same -f, -F, -I, -R and -K options. On a workstation, open it from the Toolchest (System, Software Manager) or from a root shell:
swmgr
swmgr -f /CDROM/dist
SoftwareManager is a wrapper that prompts for the root password if needed, then starts swmgr. Use inst when you are on a serial console, in the miniroot, or when you want a command file you can review. Use swmgr when you want to browse the product tree and the default/upgrade markings visually. Preferences are stored in /var/inst/.swmgrrc and apply to both tools.
Overlay CDs: moving a system to a newer 6.5.x
As part 1 described, IRIX 6.5 was updated with quarterly overlay releases, not with a new major version. You install the 6.5 foundation (base) CDs first, then the overlay CDs for the level you want (6.5.22, 6.5.30, and so on). Through 6.5.22 there are two streams, m (maintenance) and f (feature). You cannot mix those streams on one system. After 6.5.22 there is a single stream, ending at 6.5.30.
Practical rules that come from the installation guides and from how inst treats overlay products:
- Match the media to the hardware and to the stream already installed.
uname -Rprints the exact overlay level (for example6.5 6.5.30fstyle output). Do not apply a feature overlay to a maintenance system or the other way around. - OS overlays belong in the miniroot. A live
instwill often refuse, or warn you, when a product has to replace files that are in use (the kernel,libc,institself). - Install overlays in order when the Release Notes require it. Later overlay media usually contain what you need to step up from an earlier 6.5.x, but read the overlay’s Release Notes before you start; some jumps are not supported.
- 6.5.23 and later were contract-only when SGI was still selling support. If you have only the last public overlay (6.5.22), stay there unless you legally have later media.
After an overlay, reboot, then check the level and look for unmerged configuration files:
uname -aR
versions -b
versions changed
versions -b "patch*"
Patches
SGI patches are products whose names start with patchSG (for example patchSG0001234). A patch replaces one or more files and keeps the previous copies in a holding area so they can be restored if you remove the patch. Patches were issued for urgent problems and for hardware-specific fixes, on top of a given base, overlay or feature release.
Install patches with inst or swmgr the same way you install any other product. Prefer install patchupgrade or named patchSG* selections over install patches unless you intend to take every patch on the disc:
Inst> from /CDROM/dist
Inst> list patches
Inst> install patchupgrade
Inst> conflicts
Inst> go
Inst> quit
# later, from IRIX
versions -b "patch*"
A later overlay often supersedes earlier patches. After an overlay install, run versions -b "patch*" and read the overlay Release Notes before you re-apply an old patch set. Do not remove patches with versions remove or inst just to free space; removing a patch can restore older, broken files or leave a hole that a later patch expected to fill.
tardist files
A tardist is a distribution wrapped in a tar file. The name must end in .tardist or inst/swmgr will not treat it as one. When you point the installer at a tardist (a local path or an http:// URL), it unpacks the distribution into a temporary directory under /var/tmp and zeroes the tardist to save space. When the install finishes, you can delete the unpacked copy or keep it, usually under /usr/dist (that directory is expected to be world-writable for this purpose).
# example: local tardist
inst -f /usr/tmp/neko_openssh.tardist
# example: selections file that pulls a tardist over http (needs libwio.so)
# from http://server/distdir/file.tardist
# i productname
# swmgr -F /tmp/sel.inst
Because unpacking writes under /var/tmp and then may zero the original file, copy the tardist to a place you can afford to lose, and make sure /var has room for the unpacked distribution, before you start.
SGI freeware CDs and nekoware
SGI shipped freeware CDs (the fw_ products) with ports of common open-source tools: OpenSSH, bash, Python, and many others. Those packages install under /usr/freeware and are installed with inst or swmgr like any other distribution. After a freeware install, add the freeware bin directories to the PATH of the accounts that need them, for example:
# example: often needed after a freeware CD install
set path = ($path /usr/freeware/bin)
# for csh/tcsh; Bourne shell: PATH=$PATH:/usr/freeware/bin; export PATH
nekoware is a later community collection of IRIX packages, also in tardist form, conventionally installed under /usr/nekoware. It is not an SGI product. Paths, library variables and package quality vary by the set you have. A typical environment addition looks like this (confirm against the package notes that came with your set):
# example environment for a nekoware tree on IRIX (csh)
setenv PATH /usr/nekoware/bin:${PATH}
setenv MANPATH /usr/nekoware/man:${MANPATH}
setenv LD_LIBRARYN32_PATH /usr/nekoware/lib32:${LD_LIBRARYN32_PATH}
Treat both freeware and nekoware as unmaintained software on an unmaintained OS. Install only what you need, on an isolated host, and do not use them as an excuse to put an IRIX box on the internet (for example, to run a modern web browser or an SSH server reachable from outside the lab). If you need OpenSSH for lab access, install it from media you already trust and limit it to the lab network.
After the install
When go finishes, read the messages about configuration files, relinks and reboots. Then:
- If
instasked for a reboot, reboot before you declare the job done. Kernel, driver and some libc updates are not complete until then. - Run
versions changedand merge any.O/.Nconfiguration files, as described in part 2. - Run
versionsorversions -band confirm the products you selected show as installed (I). - For overlays, confirm
uname -Rshows the new level. - Start or reconfigure any new services with
chkconfigand the matching/etc/init.dscript (part 2). - Skim
/var/inst/INSTLOGif something looks missing or a exit-op reported an error.
Verification checklist
versions -blists the products you intended to install, with recent install dates.versions changedreports no unmerged.O/.Nfiles, or you have already merged the ones it lists.- After an overlay,
uname -Rmatches the overlay you installed, and the stream letter (if any) is the one you expected. versions -b "patch*"matches the patch set you selected, and you have not re-applied patches the overlay Release Notes say are superseded.- The machine reboots to a login prompt (or to the desktop if that is how it is configured), and
/var/adm/SYSLOGhas no new install-related errors. df -kstill shows free space on/,/usrand/var.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
inst refuses to install a product from a live session | The product replaces files that are in use, or the Release Notes require the miniroot | Shut down and install from the miniroot. Do not try to force a live replace of inst, the kernel or libc. |
Conflicts reported at go | Missing prerequisite, overlay mismatch, or a selected downgrade | Run conflicts, install or keep the required subsystems, and do not mix m and f overlay streams. |
| Not enough disk space | /, /usr or /var is full, or tardist unpacking filled /var/tmp | Run space before go, clean /var/tmp, or move a tree aside with a symlink as the inst man page describes. Avoid inst -r for this; it bypasses the normal /var/inst history. |
Remote from host:path fails | No rsh access, wrong user, or a password on the remote account | Use a user that has .rhosts or no password, or copy the distribution to a local disk first. |
| Tardist is ignored | Filename does not end in .tardist, or /var/tmp is full | Rename the file, free space, and work from a copy so zeroing the tardist does not destroy your only archive. |
| System does not boot after an overlay or patch | Inconsistent kernel/modules, mixed overlay streams, or a patch that does not belong on this level | Boot the miniroot from the CD (part 6), inspect /root and /var/inst, and reinstall the correct overlay. Keep the machine isolated while you recover. |
| Boot messages about configuration files every time | Unmerged .O/.N files | versions changed, merge with diff, then remove or rename the extra copies (part 2). |
AlmaLinux equivalents
There is no direct inst on Linux. On AlmaLinux 10 the closest pieces are:
sudo dnf install/dnf updatefor packages, anddnf historyfor a session log.rpm -qa,rpm -ql,rpm -qf /pathfor theversions/versions listquestions..rpmnewand.rpmsavefor the.N/.Oidea.- Installation media and a rescue environment when you cannot update a running system safely, which is the nearest equivalent of the miniroot.
Next in this series
Part 4 covers IRIX disks and filesystems: fx, XFS, XLV, mkfs_xfs, xfs_growfs and /etc/fstab. Later parts cover networking and the PROM and miniroot recovery path used above.
Sources
- IRIX 6.5.30 reference pages: inst(1M) and swmgr(1M), as published on man.irix.fans.
- SGI, IRIX Admin: Software Installation and Licensing (document 007-1364).
- SGI, IRIX 6.5 Installation Instructions (document 007-3862).
- AlmaLinux and RHEL documentation for dnf and rpm.
