
epic4 Configuration and Administration Guide
Software
Any software which is related to the system in any way, especially if it can be found on
Redhat’s website, is installed using the Redhat Package Manager (RPM) whenever possible.
Other software from other sources (e.g. SAS, IDL) is installed in /usr/local, often built from
source.
A convention I tend to follow is to install software in a directory of its own in /usr/local, with
the directory name including the version number (e.g. acrobat-5.0.8). A softlink is then
created to point to this directory, but without the version number (e.g. acrobat). This way,
new versions of the software can be installed without disturbing the old one, and all that needs
to be done is to have the softlink renamed to point to whichever version should be regarded as
current. A listing of some of the current contents of /usr/local should give a clearer picture.
Directories are coloured blue, and softlinks are purple:
lrwxrwxrwx 1 root root 13 Sep 25 16:15 acrobat -> acrobat-5.0.8
drwxr-xr-x 6 root root 4096 Sep 25 16:15 acrobat-5.0.8
lrwxrwxrwx 1 root root 12 Sep 26 18:57 atomdb -> atomdb-1.3.1
drwxr-xr-x 3 root root 4096 Aug 19 10:41 atomdb-1.3.1
drwxr-xr-x 2 root root 4096 Sep 30 15:41 bin
lrwxrwxrwx 1 root root 10 Sep 27 02:07 caldb -> caldb-2.23
drwxr-xr-x 5 root root 4096 Aug 19 09:59 caldb-2.23
lrwxrwxrwx 1 root root 8 Sep 27 02:06 ciao -> ciao-3.0
drwxr-xr-x 12 root root 4096 Aug 19 10:46 ciao-3.0
drwxr-xr-x 2 root root 4096 Feb 6 1996 doc
drwxr-xr-x 2 root root 4096 Feb 6 1996 etc
drwxr-xr-x 2 root root 4096 Feb 6 1996 games
drwxr-xr-x 10 root root 4096 Sep 19 2000 grace
lrwxrwxrwx 1 root root 13 Sep 25 16:29 ICAClient -> ICAClient-7.0
dr-xr-xr-x 13 root sys 4096 Sep 25 16:29 ICAClient-7.0
lrwxrwxrwx 1 root root 7 Sep 25 16:58 idl -> rsi/idl
drwxr-xr-x 3 root root 4096 Sep 30 12:34 include
drwxr-xr-x 8 root root 4096 Feb 11 2003 j2sdk1.4.1
drwxr-xr-x 9 root root 4096 Sep 30 12:23 j2sdk1.4.2_01
lrwxrwxrwx 1 root root 13 Sep 30 12:23 java -> j2sdk1.4.2_01
drwxr-xr-x 3 root root 4096 Sep 30 12:33 lib
drwxr-xr-x 2 root root 4096 Jun 22 2001 libexec
drwxrwxrwx 12 root root 4096 May 28 18:18 mostools
lrwxrwxrwx 1 root root 12 Sep 26 19:09 pgplot -> pgplot-5.2.2
drwxr-xr-x 2 root root 4096 Apr 23 2001 pgplot-5.2.2
drwxr-xr-x 2 root root 4096 Nov 22 2000 pms2odf
drwxr-xr-x 5 root root 4096 Sep 25 17:23 rsi
lrwxrwxrwx 1 root root 6 Sep 28 14:23 sas -> xmmsas
drwxr-xr-x 2 root root 4096 Feb 6 1996 sbin
lrwxrwxrwx 1 root root 12 Sep 26 19:09 scisim -> scisim-3.0.0
drwxrwxr-x 7 root root 4096 Sep 26 19:09 scisim-3.0.0
drwxr-xr-x 19 root root 4096 Sep 21 2001 scisim-3.0.0-src
drwxr-xr-x 8 root root 4096 Nov 7 2001 scisim_v2.1.a20000427
drwxr-xr-x 5 root root 4096 Sep 30 11:20 share
drwxr-xr-x 2 root root 4096 Feb 6 1996 src
drwxr-xr-x 5 root root 4096 Oct 2 2000 vqa
lrwxrwxrwx 1 root root 20 Sep 27 02:07 xmmsas -> xmmsas_20030110_1802
drwxrwsr-x 8 root root 4096 Feb 6 2003 xmmsas_20030110_1802
drwxr-xr-x 2 root root 4096 Sep 19 2000 xpa
With this scheme, multiple versions of the same software can be maintained with ease.
Environment variables need only point to the softlinks, which can be changed whenever
necessary to link to any particular version of the installed software.
For example: the Java Software Development Kit (SDK) is installed in
/usr/local/j2sdk1.4.2_01 with an older version still present in j2sdk1.4.1. A softlink called
/usr/local/java has been created to point to it. The global cshrc file (/etc/csh.cshrc) adds
the SDK to the users’ run path, but uses the /usr/local/java link. If we wish to roll back to
the previous version, only the java softlink needs to be changed and that’s it.
There are some core applications installed on epic4, some of which are listed in table 5.
13
Komentarze do niniejszej Instrukcji