<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing install location for package in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595782#M33357</link>
    <description>&lt;BR /&gt;Only if a package is written to handle installation to alternative locations will it work. Chances are youre out of luck.&lt;BR /&gt;&lt;BR /&gt;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.</description>
    <pubDate>Tue, 16 Oct 2001 13:45:03 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2001-10-16T13:45:03Z</dc:date>
    <item>
      <title>Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595780#M33355</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;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...&lt;BR /&gt;&lt;BR /&gt;So, how can I use swinstall to install Perl in /usr/contrib instead of /usr/local?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 16 Oct 2001 13:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595780#M33355</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-16T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595781#M33356</link>
      <description>Hi Dannan,&lt;BR /&gt;&lt;BR /&gt;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)&lt;BR /&gt;&lt;BR /&gt;Hope this will help</description>
      <pubDate>Tue, 16 Oct 2001 13:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595781#M33356</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-10-16T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595782#M33357</link>
      <description>&lt;BR /&gt;Only if a package is written to handle installation to alternative locations will it work. Chances are youre out of luck.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Tue, 16 Oct 2001 13:45:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595782#M33357</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-10-16T13:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595783#M33358</link>
      <description>Hello Darrell,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;Or you could try to "swmodify" ALL files in the package to move them to the new target directory. &lt;BR /&gt;They still might/will contain internal links/references to the old path, though :-(&lt;BR /&gt;&lt;BR /&gt;Just my $0.02,&lt;BR /&gt;Wodisch</description>
      <pubDate>Tue, 16 Oct 2001 14:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595783#M33358</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-10-16T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595784#M33359</link>
      <description>It's always better to compile the source code so that we can have the flexibility of installing it anywhere.  Unfortunately most of the packages are too hardcoded with the paths that they won't work if installed in other directories. You can try your luck by actually creating a link in /usr/local/perlxxx to /usr/contrib and then install.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 16 Oct 2001 15:34:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595784#M33359</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-16T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595785#M33360</link>
      <description>You do have the "-r" option with swinstall to specify an alternate "/" directory which would allow you to install the packages somewhere else.   You could use this option to install the package to an alternate location and then copy it to the correct locations.  A better use of the "-r" is to install the files to a temporary location in which you can then repackage them and change the options to install wherever you wish.</description>
      <pubDate>Tue, 16 Oct 2001 16:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595785#M33360</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-10-16T16:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595786#M33361</link>
      <description>Thanks for the replies so far.&lt;BR /&gt;&lt;BR /&gt;I'm still looking for suggestions though I'm looking more closely into Wodisch's and Bernie's posts.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 16 Oct 2001 19:50:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595786#M33361</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-16T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing install location for package</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595787#M33362</link>
      <description>Almost forgot:  after editing the INFO file I changed usr/local to usr/contrib in the depot's directory structure.</description>
      <pubDate>Tue, 16 Oct 2001 20:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-install-location-for-package/m-p/2595787#M33362</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-16T20:05:14Z</dc:date>
    </item>
  </channel>
</rss>

