- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing install location for package
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 06:29 AM
10-16-2001 06:29 AM
Changing install location for package
Being lazy (and not overly adept at making packages), I downloaded a Perl package instead of source code. The package installs in /usr/local but I'd like to install to /usr/contrib instead. I saw a recent thread about changing the location within swinstall but it seems to use the "new" location as the "root" directory. The result is I wind up with Perl in /usr/contrib/usr/local...
So, how can I use swinstall to install Perl in /usr/contrib instead of /usr/local?
Thanks,
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 06:39 AM
10-16-2001 06:39 AM
Re: Changing install location for package
You can relocate packages if they that option relocation=true is specified in the psf file ( source sd kit) you can check that out by looking at the product discription. If not it is not possible. (you can always use the mv command after installation) One warning, do not change target root ( /var/sw/swagent.log etc will be placed after the the alternate root)
Hope this will help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 06:45 AM
10-16-2001 06:45 AM
Re: Changing install location for package
Only if a package is written to handle installation to alternative locations will it work. Chances are youre out of luck.
Instead, what I do for simple packages (that only have 1 or a few install directories) is swinstall them, then mv them to where you want them and leave a symbolic link where they used to be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 07:34 AM
10-16-2001 07:34 AM
Re: Changing install location for package
you could try "swcopy"ing the package to a local directory, then reading the scripts used by it, modying a copy of those, and try to use "swmodify" to copy those modified scripts back into the package.
Or you could try to "swmodify" ALL files in the package to move them to the new target directory.
They still might/will contain internal links/references to the old path, though :-(
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 08:34 AM
10-16-2001 08:34 AM
Re: Changing install location for package
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 09:52 AM
10-16-2001 09:52 AM
Re: Changing install location for package
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 12:50 PM
10-16-2001 12:50 PM
Re: Changing install location for package
I'm still looking for suggestions though I'm looking more closely into Wodisch's and Bernie's posts.
Here's what I did: untar the depot; edit INFO file changing /usr/local to /usr/contrib; tarred it back up; then swinstalled it. This seems to have worked but I find it to be a less than desirable method.
I don't really want to install a package and then move the files for that package. I want to manage the software as a package, that is run swremove if desired (if I had moved the files then swremove wouldn't be able to remove them would it?), swlist, etc.
Perhaps it is better to compile the source code and make the package myself. But if I trust the site and the package, wouldn't it be a good thing to be able to modify the package install location?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 01:05 PM
10-16-2001 01:05 PM