2 Replies Latest reply on Mar 20, 2012 2:54 PM by Nimrod NameToUpdate

    Compliance Check : rpm packages  check

      Hi all,

       

      In the compliance check, I use the build-in funktionality to get information about OS rpm package version.

       

      The difficulties are to find the correct comparable worth for minimum or  maximum version number and if it is a 64bit or 32bit package.

       

      how can i check if the RPM package is 64bit or 32bit ?

       

      I did the check with the "RPM:glibc"."Version (Linux)" start with "2.5".

       

      But the check failed if glibc has a higher vresion number however the higher version is possible for our purpose .

       

      Can anybody help me to write the right rule in the Component Template?

       

      Many thanks

        • 1. Compliance Check : rpm packages  check
          1. What do you aim to do  with maximum and minimum versions ?? Can't a patch analysis job satisfy your use case ? Have you tried looking into the same ?
          2. I don't think the live node will give you 32 and 64 bit difference

           

                 You may look at using an extended object in the Component template to execute something like rpm -qa /info and parse it and use the same in rules.

          There is no direct way of lesser than greater than kind of in the rules,

          you can use substring of operator

          like 2.5 substring of 2.5.2.7.2.8....

          But i have not tested or done somethng like  this myself !

          1 of 1 people found this helpful
          • 2. Compliance Check : rpm packages  check

            To solve the verison issue you can use the next rule (simply use several conditions):

            "RPM:glibc"."Version (Linux)" start with "2.5" OR

            "RPM:glibc"."Version (Linux)" start with "2.6" OR

            "RPM:glibc"."Version (Linux)" start with "2.7" OR

            "RPM:glibc"."Version (Linux)" start with "2.8" OR

            "RPM:glibc"."Version (Linux)" start with "2.9" OR

            "RPM:glibc"."Version (Linux)" start with "3" OR

            "RPM:glibc"."Version (Linux)" start with "4" OR

            "RPM:glibc"."Version (Linux)" start with "5" OR

            "RPM:glibc"."Version (Linux)" start with "6" OR

            "RPM:glibc"."Version (Linux)" start with "7" OR

            "RPM:glibc"."Version (Linux)" start with "8" OR

            "RPM:glibc"."Version (Linux)" start with "9" OR

             

             

            For the 32/64 bit issue - how can you check this in general (not using BBSA)? if there is a way, I can see if it can be implemented in BBSA.