<?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: swlist : version from gcc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961783#M415841</link>
    <description>i have now enough informations , thx for the answers</description>
    <pubDate>Wed, 22 Feb 2006 05:00:25 GMT</pubDate>
    <dc:creator>Billa-User</dc:creator>
    <dc:date>2006-02-22T05:00:25Z</dc:date>
    <item>
      <title>swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961774#M415832</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;i had to install GCC , i want to know with&lt;BR /&gt;swlist command the version of GCC.&lt;BR /&gt;&lt;BR /&gt;how can i find out the version ?&lt;BR /&gt;can i use swlist and "Software Selections"?&lt;BR /&gt;&lt;BR /&gt;swlist :&lt;BR /&gt;&lt;BR /&gt;  gcc          4.0.2          gcc&lt;BR /&gt;&lt;BR /&gt;swlist -v -l fileset gcc.gcc-RUN&lt;BR /&gt;&lt;BR /&gt;# Initializing...&lt;BR /&gt;# Contacting target "backup4"...&lt;BR /&gt;#&lt;BR /&gt;# swlist   Installed Software Table of Contents&lt;BR /&gt;#&lt;BR /&gt;# For host:  backup4:/&lt;BR /&gt;#&lt;BR /&gt;# Date:  Wed Feb 22 07:56:15 2006&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;  gcc.gcc-RUN&lt;BR /&gt;fileset&lt;BR /&gt;tag                    gcc-RUN&lt;BR /&gt;software_spec          gcc.gcc-RUN,l=/usr/local,r=4.0.2,a=HP-UX_B.11.23_64&lt;BR /&gt;data_model_revision    2.40&lt;BR /&gt;instance_id            1&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;man swlist&lt;BR /&gt;&lt;BR /&gt;    Software Selections&lt;BR /&gt;      swlist supports the following syntax for each software_selection:&lt;BR /&gt;&lt;BR /&gt;    bundle[.product[.subproduct][.fileset]][,version]&lt;BR /&gt;&lt;BR /&gt;    product[.subproduct][.fileset][,version]&lt;BR /&gt;&lt;BR /&gt;    + The = (equals) relational operator lets you specify&lt;BR /&gt;  selections with the following shell wildcard and pattern-&lt;BR /&gt;  matching notations:&lt;BR /&gt;&lt;BR /&gt;       [ ], *, ?&lt;BR /&gt;&lt;BR /&gt;    + Bundles and subproducts are recursive. Bundles can contain&lt;BR /&gt;  other bundles and subproducts can contain other subproducts.&lt;BR /&gt;&lt;BR /&gt;    + The \* software specification selects all products. Use this&lt;BR /&gt;  specification with caution.&lt;BR /&gt;&lt;BR /&gt;      The version component has the form:&lt;BR /&gt;&lt;BR /&gt;    [,r &lt;OP&gt; revision][,a &lt;OP&gt; arch][,v &lt;OP&gt; vendor]&lt;BR /&gt;    [,c &lt;OP&gt; category][,l=location][,fr &lt;OP&gt; revision]&lt;BR /&gt;    [,fa &lt;OP&gt; arch]&lt;BR /&gt;&lt;BR /&gt;    + location applies only to installed software and refers to&lt;BR /&gt;  software installed to a location other than the default&lt;BR /&gt;  product directory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    + fr and fa apply only to filesets.&lt;BR /&gt;&lt;BR /&gt;    + The &lt;OP&gt; (relational operator) component can be of the form:&lt;BR /&gt;&lt;BR /&gt;       =, ==, &amp;gt;=, &amp;lt;=, &amp;lt;, &amp;gt;, or !=&lt;BR /&gt;&lt;BR /&gt;  which performs individual comparisons on dot-separated&lt;BR /&gt;  fields.&lt;BR /&gt;&lt;BR /&gt;  For example, r&amp;gt;=B.10.00 chooses all revisions greater than&lt;BR /&gt;  or equal to B.10.00.  The system compares each dot-separated&lt;BR /&gt;  field to find matches.&lt;BR /&gt;&lt;BR /&gt;    + The = (equals) relational operator lets you specify&lt;BR /&gt;  selections with the shell wildcard and pattern-matching&lt;BR /&gt;  notations:&lt;BR /&gt;&lt;BR /&gt;       [ ], *, ?, !&lt;BR /&gt;&lt;BR /&gt;  For example, the expression r=1[01].* returns any revision&lt;BR /&gt;  in version 10 or version 11.&lt;BR /&gt;&lt;BR /&gt;    + All version components are repeatable within a single&lt;BR /&gt;  specification (e.g.  r&amp;gt;=A.12, r&lt;A.20&gt;&lt;/A.20&gt;  components are used, the selection must match all&lt;BR /&gt;  components.&lt;BR /&gt;&lt;BR /&gt;    + Fully qualified software specs include the r=, a=, and v=&lt;BR /&gt;  version components even if they contain empty strings. For&lt;BR /&gt;  installed software, l= is also included.&lt;BR /&gt;&lt;BR /&gt;    + No space or tab characters are allowed in a software&lt;BR /&gt;  selection.&lt;BR /&gt;&lt;BR /&gt;    + The software instance_id can take the place of the version&lt;BR /&gt;  component. It has the form:&lt;BR /&gt;&lt;BR /&gt;       [instance_id]&lt;BR /&gt;&lt;BR /&gt;  within the context of an exported catalog, where instance_id&lt;BR /&gt;  is an integer that distinguishes versions of products and&lt;BR /&gt;  bundles with the same tag.&lt;BR /&gt;&lt;BR /&gt;&lt;/OP&gt;&lt;/OP&gt;&lt;/OP&gt;&lt;/OP&gt;&lt;/OP&gt;&lt;/OP&gt;&lt;/OP&gt;</description>
      <pubDate>Wed, 22 Feb 2006 02:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961774#M415832</guid>
      <dc:creator>Billa-User</dc:creator>
      <dc:date>2006-02-22T02:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961775#M415833</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;You can use simply as, # swlist -l product gcc&lt;BR /&gt;&lt;BR /&gt;It should provide you with all details. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 22 Feb 2006 02:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961775#M415833</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-22T02:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961776#M415834</link>
      <description>swlist | grep -i gcc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;second field is version.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 22 Feb 2006 02:15:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961776#M415834</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-22T02:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961777#M415835</link>
      <description>or simply,&lt;BR /&gt;&lt;BR /&gt;# what `which gcc`&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 22 Feb 2006 02:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961777#M415835</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-22T02:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961778#M415836</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;# what `which gcc` may not give you proper details if it is downloaded from other sites than HP. Better way is, &lt;BR /&gt;&lt;BR /&gt;# swlist -l product gcc &lt;BR /&gt;&lt;BR /&gt;# gcc -V&lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 02:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961778#M415836</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-22T02:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961779#M415837</link>
      <description>Hi,&lt;BR /&gt;Use this command &lt;BR /&gt;#swlist | grep -i gcc&lt;BR /&gt;&lt;BR /&gt;and for more information for swlist please go through this page.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90681/swlist.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90681/swlist.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Asif Sharif</description>
      <pubDate>Wed, 22 Feb 2006 02:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961779#M415837</guid>
      <dc:creator>Asif Sharif</dc:creator>
      <dc:date>2006-02-22T02:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961780#M415838</link>
      <description>&lt;BR /&gt;thx for your answers ,&lt;BR /&gt;now i typed following command, to get the version, but can i get with one swlist command the version , only to use awk, etc ?&lt;BR /&gt;&lt;BR /&gt;# software_spec          gcc.gcc-RUN,l=/usr/local,r=4.0.2,a=HP-UX_B.11.23_64&lt;BR /&gt;&lt;BR /&gt;swlist -a software_spec -v -l fileset gcc.gcc-RUN | \&lt;BR /&gt;awk '$1 ~ /^software_spec$/ {&lt;BR /&gt;     pos_revision=match($0,",r=")+3&lt;BR /&gt;     pos_hpux=match($0,",a=")&lt;BR /&gt;     len=pos_hpux-pos_revision&lt;BR /&gt;     print substr($0,pos_revision,len)&lt;BR /&gt;     }'&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 03:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961780#M415838</guid>
      <dc:creator>Billa-User</dc:creator>
      <dc:date>2006-02-22T03:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961781#M415839</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;This should be suffient, &lt;BR /&gt;&lt;BR /&gt;# swlist -l product gcc |awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 03:08:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961781#M415839</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-22T03:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961782#M415840</link>
      <description>Are you going to use the gcc version in some other scripts? If you want to know the version the simply as,&lt;BR /&gt;&lt;BR /&gt;# gcc -version&lt;BR /&gt;# gcc -V&lt;BR /&gt;&lt;BR /&gt;will give the detials. or what `which gcc` for viewing. &lt;BR /&gt;&lt;BR /&gt;Or with swlist as,&lt;BR /&gt;&lt;BR /&gt;# swlist -l product gcc &lt;BR /&gt;&lt;BR /&gt;To get the version then,&lt;BR /&gt;&lt;BR /&gt;# swlist -l product gcc | awk '!/^#|^$/ { print $2; }'&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 22 Feb 2006 03:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961782#M415840</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-22T03:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: swlist : version from gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961783#M415841</link>
      <description>i have now enough informations , thx for the answers</description>
      <pubDate>Wed, 22 Feb 2006 05:00:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swlist-version-from-gcc/m-p/4961783#M415841</guid>
      <dc:creator>Billa-User</dc:creator>
      <dc:date>2006-02-22T05:00:25Z</dc:date>
    </item>
  </channel>
</rss>

