Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21759

yumrpm provider doesn't parses installed packages in a same way on different CentOS versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • ambari-sever
    • None

    Description

      the command:

      yum list installed | grep "HDP-2.5-repo-1"|tr '\n' '#' | sed -e 's/# / /g' | tr '#' '\n'|awk '{printf "%s;%s;%s\n", $1,$2,$3}'
      hdp-select.noarch;2.5.0.0-1237.el6;@HDP-2.5-repo-1
      

      can provide wrong output, depends on yum/centos version. We should use the old way for parsing yum output

      Attachments

        1. AMBARI-21759.patch
          2 kB
          Dmytro Grinenko

        Issue Links

          Activity

            People

              hapylestat Dmytro Grinenko
              hapylestat Dmytro Grinenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: