Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Relocating a Solaris package (without losing it!)?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jpl3  
View profile  
 More options Apr 21 1999, 3:00 am
Newsgroups: comp.unix.solaris
From: j...@my-dejanews.com
Date: 1999/04/21
Subject: Re: Relocating a Solaris package (without losing it!)?
In article <3715FFA6.287DB...@ss1.digex.net>,
  Steve Johns <ste...@ss1.digex.net> wrote:

> 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).

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    


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.