<?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: Identifying software dependencies before removal in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848689#M274489</link>
    <description>One can never be sure.&lt;BR /&gt;&lt;BR /&gt;I'd scan configuration files with a grep command for JAVA and JAVA_PATH and JAVA_HOME variables pointing to the old JAVA, if you know there is significant software that depends on java but does not get installed by SD/UX.&lt;BR /&gt;&lt;BR /&gt;The reason management should pay for test boxes is so we can safely test this stuff.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Wed, 23 Aug 2006 04:28:54 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-08-23T04:28:54Z</dc:date>
    <item>
      <title>Identifying software dependencies before removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848686#M274486</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt; &lt;BR /&gt;I wonder whether the HP SD has a feature similar to Linux RPM's "rpm -qf /some/weird/file",&lt;BR /&gt;to identify what software depot smuggled in certain files.&lt;BR /&gt; &lt;BR /&gt;Because of disk space waste I want to get rid of one of my three (sic!) Java runtimes.&lt;BR /&gt;I asked the application folks what Java version their apps did rely on.&lt;BR /&gt;The Java 1.2 fossil was obviously not needed,&lt;BR /&gt;whose removal would free up nearly 70 MB.&lt;BR /&gt;  &lt;BR /&gt;# du -skx /opt/java1.?                                    &lt;BR /&gt;69992   /opt/java1.2&lt;BR /&gt;77728   /opt/java1.3&lt;BR /&gt;173360  /opt/java1.4&lt;BR /&gt; &lt;BR /&gt;As designated Java depots I however can only identify the latter two&lt;BR /&gt; &lt;BR /&gt;# swlist|grep -i java&lt;BR /&gt;  B9788AA                               1.3.1.02.01    Java 2 SDK 1.3 for HP-UX (700/800), PA1.1&lt;BR /&gt; + PA2.0 Add On &lt;BR /&gt;  B9789AA                               1.3.1.02.01    Java 2 RTE 1.3 for HP-UX (700/800), PA1.1&lt;BR /&gt; + PA2.0 Add On &lt;BR /&gt;  T1456AA                               1.4.2.10.00    Java2 1.4 SDK for HP-UX &lt;BR /&gt;  T1456AAaddon                          1.4.2.10.00    Java2 1.4 SDK -AA addon for HP-UX &lt;BR /&gt; &lt;BR /&gt;But none of these depots has files beneath /opt/java1.2&lt;BR /&gt; &lt;BR /&gt;# swlist -l file B9788AA B9789AA T1456AA T1456AAaddon|grep -c /opt/java1\.2&lt;BR /&gt;0&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;Looks to me as if the Java 1.2 stuff was part of the base OE.&lt;BR /&gt; &lt;BR /&gt;Hm, but I seem to have several references in various INDEX files&lt;BR /&gt; &lt;BR /&gt;# find /var/adm/sw/products -type f|xargs grep -l java1\.2&lt;BR /&gt;/var/adm/sw/products/INDEX&lt;BR /&gt;/var/adm/sw/products/Java-PlugIn1-2/pfiles/INDEX&lt;BR /&gt;/var/adm/sw/products/Java-PlugIn1-2/JAVA2-PLUGIN/INFO&lt;BR /&gt;/var/adm/sw/products/Java2RTE_base/pfiles/INDEX&lt;BR /&gt;/var/adm/sw/products/Java2RTE_base/JAVA2-JRE-BASE/INFO&lt;BR /&gt;/var/adm/sw/products/Java2RTE_doc/pfiles/INDEX&lt;BR /&gt;/var/adm/sw/products/Java2RTE_doc/JAVA2-JRE-DOC/INFO&lt;BR /&gt;/var/adm/sw/products/Java2RTE_perf/pfiles/INDEX&lt;BR /&gt;/var/adm/sw/products/Java2RTE_perf/JAVA2-JRE/INFO&lt;BR /&gt; &lt;BR /&gt;This is a bit of a catch because before I can swlist check for prerequisite tags I need to know the name of the depot to whom /opt/java1.2 belongs.&lt;BR /&gt;  &lt;BR /&gt;I would rather like to swremove than simply "rm -rf /opt/java1.2".&lt;BR /&gt;There may be some critical app that depends on exactly this version of Java that we don't know about.&lt;BR /&gt;   &lt;BR /&gt;Btw, the Linux RPM has a --provides switch which is better than checking all packages if they require a certain package.&lt;BR /&gt;Is that inverse logic also available with SD?&lt;BR /&gt;  &lt;BR /&gt;Regards&lt;BR /&gt;Ralph&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Aug 2006 03:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848686#M274486</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-08-23T03:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying software dependencies before removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848687#M274487</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Try swremove -p&lt;BR /&gt;&lt;BR /&gt;That will let you know what SD/UX components are using the depot.&lt;BR /&gt;&lt;BR /&gt;The problem here is that Oracle is generally not installed via depot files (Though I know how I'd do it). You can still break things even if SD/UX says its okay.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 23 Aug 2006 04:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848687#M274487</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-08-23T04:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying software dependencies before removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848688#M274488</link>
      <description>&lt;!--!*#--&gt;Hello SEP,&lt;BR /&gt; &lt;BR /&gt;thanks for the reminder of the -p switch.&lt;BR /&gt;I think to have identified the filesets to which the /opt/java1.2 belongs.&lt;BR /&gt;When I run swremove of them with the -p switch there seem to be no complaints of hindering dependencies.&lt;BR /&gt;Of course, you can't have a 100% safety guarantee in a free world, can you?&lt;BR /&gt; &lt;BR /&gt;# swlist -l fileset|awk '$1~/^Java2RTE/{print$1}'|xargs swremove -pv&lt;BR /&gt;&lt;BR /&gt;=======  08/23/06 11:17:40 METDST  BEGIN swremove SESSION&lt;BR /&gt;         (non-interactive) (jobid=somehost-0081)&lt;BR /&gt;&lt;BR /&gt;       * Session started for user "root@somehost".&lt;BR /&gt;         &lt;BR /&gt;       * Beginning Selection&lt;BR /&gt;       * Target connection succeeded for "somehost:/".&lt;BR /&gt;       * Software selections:&lt;BR /&gt;             Java2RTE_base.JAVA2-JRE-BASE,l=/opt/java1.2,r=1.2.2.11.01,a=HP-UX_B.11.00_32/64,v=H&lt;BR /&gt;P,fr=1.2.2.11.01,fa=HP-UX_B.11.00_32/64&lt;BR /&gt;             Java2RTE_doc.JAVA2-JRE-DOC,l=/opt/java1.2,r=1.2.2.11.01,a=HP-UX_B.11.00_32/64,v=HP,&lt;BR /&gt;fr=1.2.2.11.01,fa=HP-UX_B.11.00_32/64&lt;BR /&gt;             Java2RTE_perf.JAVA2-JRE,l=/opt/java1.2,r=1.2.2.11.01,a=HP-UX_B.11.00_32/64,v=HP,fr=&lt;BR /&gt;1.2.2.11.01,fa=HP-UX_B.11.00_32/64&lt;BR /&gt;       * Selection succeeded.&lt;BR /&gt;         &lt;BR /&gt;         &lt;BR /&gt;       * Beginning Analysis&lt;BR /&gt;       * Session selections have been saved in the file&lt;BR /&gt;         "/root/.sw/sessions/swremove.last".&lt;BR /&gt;       * The analysis phase succeeded for "somehost:/".&lt;BR /&gt;       * Analysis succeeded.&lt;BR /&gt;         &lt;BR /&gt;         &lt;BR /&gt;NOTE:    More information may be found in the agent logfile using the&lt;BR /&gt;         command "swjob -a log somehost-0081 @ somehost:/".&lt;BR /&gt;&lt;BR /&gt;=======  08/23/06 11:17:46 METDST  END swremove SESSION&lt;BR /&gt;         (non-interactive) (jobid=somehost-0081)&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Aug 2006 04:23:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848688#M274488</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-08-23T04:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying software dependencies before removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848689#M274489</link>
      <description>One can never be sure.&lt;BR /&gt;&lt;BR /&gt;I'd scan configuration files with a grep command for JAVA and JAVA_PATH and JAVA_HOME variables pointing to the old JAVA, if you know there is significant software that depends on java but does not get installed by SD/UX.&lt;BR /&gt;&lt;BR /&gt;The reason management should pay for test boxes is so we can safely test this stuff.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 23 Aug 2006 04:28:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848689#M274489</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-08-23T04:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying software dependencies before removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848690#M274490</link>
      <description>&lt;!--!*#--&gt;Good hint,&lt;BR /&gt;I ran a quick find for local dot files,&lt;BR /&gt;and luckily none of those seems to reference the old Java version as part of a path.&lt;BR /&gt; &lt;BR /&gt;# find / -local -type f -name .\*|xargs file|awk -F: '/text/{print$1}'|xargs grep -l java1\.2</description>
      <pubDate>Wed, 23 Aug 2006 05:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-software-dependencies-before-removal/m-p/3848690#M274490</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-08-23T05:05:04Z</dc:date>
    </item>
  </channel>
</rss>

