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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment