Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Relocating a Solaris package (without losing it!)?

12 views
Skip to first unread message

Steve Johns

unread,
Apr 15, 1999, 3:00:00 AM4/15/99
to

Hi.

I wonder if someone can recommend a good procedure that allows an admin
to relocate the contents of a Solaris package to a preferred location
(i.e. a new BASEDIR) at installation time while still having the package
(along with its new location) registered in the system's primary package
database along with all the existing packages.

The -R option to pkgadd (e.g. pkgadd -d newpackage.pkg -R /local2 ) does
not have the desired effect because the package system info files are
installed subject to the -R path along with the package contents (as the
man page points out - and it don't lie).

- sj

jp...@my-dejanews.com

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to
In article <3715FFA6...@ss1.digex.net>,


What you need is a pkgadd/pkgrm "admin" file. An admin file allows you to
override various default actions taken (or not taken) by pkgadd and pkgrm.
Here's one that will automate just about everything and change the basedir
to /opt:

instance=unique
partial=nocheck
runlevel=quit
idepend=nocheck
rdepend=nocheck
space=quit
setuid=nocheck
conflict=nocheck
action=nocheck
basedir=/opt

Put this in /var/sadm/install/admin/opt and you can then type the
following:

pkgadd -na opt -d <pkgfile> [pkgname]

"-n" tells pkgadd to run in non-interactive mode.
"-a opt" tells it to use the admin file "opt" in /var/sadm/install/admin.

You can call the admin file whatever you want, and even store it wherever
you want, as long as you give the proper path in the -a parameter. The
basedir= parameter is the one you really need to relocate a package. The
other parameters I included make the adding or removing of packages
packages mostly automatic.

Hope this helps.

- J

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

jp...@my-dejanews.com

unread,
Apr 21, 1999, 3:00:00 AM4/21/99
to

- J

0 new messages