ohai icon indicating copy to clipboard operation
ohai copied to clipboard

packages provider inconsistent results

Open glensc opened this issue 9 years ago • 1 comments

Description

i find debian packages listing inconsistent with one that rpm provides.

  • rpm system has "release" portion
  • deb system "release" is included in "version" portion
  • some deb package names contain archtecture zlib1g:amd64
  • debian versions also include "epoch"

ideally i'd see:

  • rpm systems include extra arch tag
  • deb systems include arch tag, extract it from name if needed
  • deb systems include release tag
  • epoch moved to extra tag
  • installdate missing for both systems, add it

examples from systems

rpm system:

# knife node show fqdn -a packages
pld:
  packages:
    glibc-misc:
      release: 21
      version: 2.3.6
    glibc64:
      release: 21
      version: 2.3.6

debian-7 system:

# knife node show fqdn -a packages
debian:
  packages:
    acpi:
      version: 1.6-1
    zlib1g:amd64:
      version: 1:1.2.7.dfsg-13

Ohai Version

Ohai: 7.4.0, but packages is taken from ohai that was merged in v8.9.0 lib/ohai/plugins/packages.rb

Platform Version

Debian 7

glensc avatar May 11 '16 11:05 glensc

#820 was merged adding:

  • rpm: add epoch, arch
  • deb: add arch
  • deb: fix arch being part of the name attribute

however, there's still todo:

  • deb: explode version to components (epoch, version, release), see questions in #820
  • deb: add installdate attribute

glensc avatar Jun 01 '16 19:06 glensc