SUMMARY: pkgadd and search PATH in Solaris2.5

From: jing.zhang@ic.ac.uk
Date: Thu Apr 11 1996 - 07:25:09 CDT


Dear Sun Managers,

Yesterday I posted:

>System SS20 running Solaris2.5 as supplied.
>
>Some thrid party software were donlowded and added using pkgadd. These
>packages (such as elm and gcc) have been in the right format and they
>were installed in to /opt slice correctly. All the packages have their
>own bin directory such as /opt/FSFgcc/bin and this would make the
>PATH variable in the shells very long if one has few packages installed.
>
>Is there a easy way to creat links for each of the bin directories to
>something like /usr/local/bin? Or I am doing something wrong?

As I first thought, pkgadd only place the software in appropriate
directories in /opt slice but does not create any links in normal
bin directory such as /usr/bin or /usr/local/bin. Many thanks to
all who answered. Here is a summary:

sweh@mpn.com (Stephen Harris) sent in a ksh script which would
create the relevant links in /usr/loca/bin:

In ksh this would do it:

for a in /opt/*/bin/*
do
ln -s $a /usr/local/bin
done

"Jon R. Ramsey" <ramsey@scr.siemens.com> recomended a program
called Modulus by John Furlani from Sun. I am still to check this
one out. It can be obtained from:

ftp://ftp.connectde.net/pub/sysadmin/sw-administration/Modules/distrib/

Answers also came from:

John Justin Hough <john@oncology.uthscsa.edu>
"Andrey A. Perminov" <and@mgulvt.mgul.ac.ru>
Eric Shafto <eshafto@caxy.lfa.lfc.edu>
maris@dogs.sun.swh.lv

-- 
Jing

************************************************************************* * | * * IIIII RRRRRR CCC | Jing Zhang * * I R R C C | IRC for Semiconductor Materials,* * I R R C I Blackett Laboratory, * * I R R C | Imperial College, * * I RRRRRR C | Prince Consort Road, * * I R C | London SW7 2BZ * * I R R C | Tel + 44 (0)171 594 6672 * * I R R C C | Fax + 44 (0)171 594 6685 * * IIIII R R CCC | e-mail jing.zhang@ic.ac.uk * * | * *************************************************************************



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:57 CDT