diff options
author | cmluciano <cmlucian@us.ibm.com> | 2015-06-16 09:01:21 -0400 |
---|---|---|
committer | Shahul Khajamohideen <skhajamohid1@bloomberg.net> | 2015-12-28 11:05:48 -0500 |
commit | e883c30f77726716858c0a20d25bcc57aed3f4c5 (patch) | |
tree | 341e85d7a7cd55b714a5555ba37d81e4e5c2e4d8 | |
parent | b8d2b39cfd46307090f527e98d1cf641a452888b (diff) | |
download | ohai-e883c30f77726716858c0a20d25bcc57aed3f4c5.tar.gz |
Add packages plugin
This packages plugin allows individuals to get a list of packages that
they have installed on the system.
It works on Debian,Fedora, and Windows systems.
-rw-r--r-- | lib/ohai/plugins/packages.rb | 64 | ||||
-rw-r--r-- | spec/data/plugins/dpkg-query.output | 1087 | ||||
-rw-r--r-- | spec/data/plugins/rpmquery.output | 388 | ||||
-rw-r--r-- | spec/data/plugins/wmiproduct.output | 34 | ||||
-rw-r--r-- | spec/unit/plugins/packages_spec.rb | 112 |
5 files changed, 1685 insertions, 0 deletions
diff --git a/lib/ohai/plugins/packages.rb b/lib/ohai/plugins/packages.rb new file mode 100644 index 00000000..ada255c4 --- /dev/null +++ b/lib/ohai/plugins/packages.rb @@ -0,0 +1,64 @@ +# Author:: "Christian Höltje" <choltje@us.ibm.com> +# Author:: "Christopher M. Luciano" <cmlucian@us.ibm.com> +# Copyright (C) 2015 IBM Corp. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +Ohai.plugin(:Packages) do + provides 'packages' + depends 'platform_family' + + collect_data(:linux) do + packages Mash.new + + if %w(debian).include? platform_family + so = shell_out('dpkg-query -W') + pkgs = so.stdout.split("\n") + + pkgs.each do |pkg| + name, version = pkg.split("\t") + packages[name] = { 'version' => version } + end + + elsif %w(rhel fedora suse).include? platform_family + require 'shellwords' + format = Shellwords.escape '%{NAME}\t%{VERSION}\t%{RELEASE}\n' + so = shell_out("rpm -qa --queryformat #{format}") + pkgs = so.stdout.split("\n") + + pkgs.each do |pkg| + name, version, release = pkg.split("\t") + packages[name] = { 'version' => version, 'release' => release } + end + end + end + + collect_data(:windows) do + packages Mash.new + + require 'wmi-lite' + + wmi = WmiLite::Wmi.new + w32_product = wmi.instances_of('Win32_Product') + + w32_product.find_all.each do |product| + packagename = product['packagename'] + package = packages[packagename] = Mash.new + %w(name version vendor installdate).each do |attr| + package[attr] = product[attr] + end + end + end +end diff --git a/spec/data/plugins/dpkg-query.output b/spec/data/plugins/dpkg-query.output new file mode 100644 index 00000000..c92993d9 --- /dev/null +++ b/spec/data/plugins/dpkg-query.output @@ -0,0 +1,1087 @@ +accountsservice 0.6.35-0ubuntu7.2 +ack-grep 2.12-1 +acl 2.2.52-1 +adduser 3.113+nmu3ubuntu3 +amavisd-new 1:2.7.1-2ubuntu3 +ant 1.9.3-2build1 +ant-optional 1.9.3-2build1 +apache2 2.4.7-1ubuntu4.4 +apache2-bin 2.4.7-1ubuntu4.4 +apache2-data 2.4.7-1ubuntu4.4 +apache2-mpm-worker 2.4.7-1ubuntu4.4 +apache2-utils 2.4.7-1ubuntu4.4 +apache2.2-bin 2.4.7-1ubuntu4.4 +apport 2.14.1-0ubuntu3.11 +apport-symptoms 0.20 +apt 1.0.1ubuntu2.8 +apt-listchanges 2.85.13ubuntu2 +apt-transport-https 1.0.1ubuntu2.8 +apt-utils 1.0.1ubuntu2.8 +apt-xapian-index 0.45ubuntu4 +apticron 1.1.55 +aptitude 0.6.8.2-1ubuntu4 +aptitude-common 0.6.8.2-1ubuntu4 +arj 3.10.22-11 +aspell 0.60.7~20110707-1ubuntu1 +aspell-en 7.1-0-1 +at 3.1.14-1ubuntu1 +at-spi2-core 2.10.2.is.2.10.1-0ubuntu1 +aufs-tools 1:3.2+20130722-1.1 +authbind 2.1.1 +autoconf 2.69-6 +automake 1:1.14.1-2ubuntu1 +autotools-dev 20130810.1 +base-files 7.2ubuntu5.2 +base-passwd 3.5.33 +bash 4.3-7ubuntu1.5 +bash-completion 1:2.1-4 +bc 1.06.95-8ubuntu1 +bind9-host 1:9.9.5.dfsg-3ubuntu0.2 +binutils 2.24-5ubuntu3.1 +bison 2:3.0.2.dfsg-2 +bsdmainutils 9.0.5ubuntu1 +bsdutils 1:2.20.1-5.1ubuntu20.4 +build-essential 11.6ubuntu6 +busybox-initramfs 1:1.21.0-1ubuntu1 +busybox-static 1:1.21.0-1ubuntu1 +byobu 5.77-0ubuntu1.2 +bzip2 1.0.6-5 +ca-certificates 20141019ubuntu0.14.04.1 +ca-certificates-java 20130815ubuntu1 +cabextract 1.4-4 +ccze 0.2.1-2ubuntu1 +cgroup-lite 1.9 +chkrootkit 0.49-4.1ubuntu1.14.04.1 +clamav 0.98.7+dfsg-0ubuntu0.14.04.1 +clamav-base 0.98.7+dfsg-0ubuntu0.14.04.1 +clamav-daemon 0.98.7+dfsg-0ubuntu0.14.04.1 +clamav-freshclam 0.98.7+dfsg-0ubuntu0.14.04.1 +collectl 3.6.9-1 +colord 1.0.6-1 +comerr-dev 2.1-1.42.9-3ubuntu1.2 +command-not-found 0.3ubuntu12 +command-not-found-data 0.3ubuntu12 +console-setup 1.70ubuntu8 +coreutils 8.21-1ubuntu5.1 +cpio 2.11+dfsg-1ubuntu1.1 +cpp 4:4.8.2-1ubuntu6 +cpp-4.4 4.4.7-8ubuntu1 +cpp-4.6 4.6.4-6ubuntu2 +cpp-4.8 4.8.2-19ubuntu1 +cron 3.0pl1-124ubuntu2 +curl 7.35.0-1ubuntu2.5 +dash 0.5.7-4ubuntu1 +db-util 1:5.3.21~exp1ubuntu1 +db5.1-util 5.1.29-7ubuntu1 +db5.3-util 5.3.28-3ubuntu3 +dbconfig-common 1.8.47+nmu1 +dbus 1.6.18-0ubuntu4.3 +dbus-x11 1.6.18-0ubuntu4.3 +dconf-gsettings-backend:amd64 0.20.0-1 +dconf-service 0.20.0-1 +dctrl-tools 2.23ubuntu1 +debconf 1.5.51ubuntu2 +debconf-i18n 1.5.51ubuntu2 +debhelper 9.20131227ubuntu1 +debianutils 4.4 +desktop-file-utils 0.22-1ubuntu1 +dh-apparmor 2.8.95~2430-0ubuntu5.2 +dh-python 1.20140128-1ubuntu8 +dictionaries-common 1.20.5 +diffutils 1:3.3-1 +dlocate 1.02+nmu3 +dmidecode 2.12-2 +dmsetup 2:1.02.77-6ubuntu2 +dnsutils 1:9.9.5.dfsg-3ubuntu0.2 +docbook-xml 4.5-7.2 +dosfstools 3.0.26-1 +dovecot-core 1:2.2.9-1ubuntu2.1 +dovecot-imapd 1:2.2.9-1ubuntu2.1 +dovecot-solr 1:2.2.9-1ubuntu2.1 +dpkg 1.17.5ubuntu5.4 +dpkg-dev 1.17.5ubuntu5.4 +e2fslibs:amd64 1.42.9-3ubuntu1.2 +e2fsprogs 1.42.9-3ubuntu1.2 +ed 1.9-2 +eject 2.1.5+deb1+cvs20081104-13.1 +elinks 0.12~pre6-4ubuntu1 +elinks-data 0.12~pre6-4ubuntu1 +elinks-lite 0.12~pre6-4ubuntu1 +etckeeper 1.9ubuntu2 +exuberant-ctags 1:5.9~svn20110310-7ubuntu0.1 +fakeroot 1.20-3ubuntu2 +file 1:5.14-2ubuntu3.3 +findutils 4.4.2-7 +fontconfig 2.11.0-0ubuntu4.1 +fontconfig-config 2.11.0-0ubuntu4.1 +fonts-dejavu-core 2.34-1ubuntu1 +fonts-dejavu-extra 2.34-1ubuntu1 +fonts-ubuntu-font-family-console 0.80-0ubuntu6 +friendly-recovery 0.2.25 +ftp 0.17-28 +fuse 2.9.2-4ubuntu4.14.04.1 +g++ 4:4.8.2-1ubuntu6 +g++-4.4 4.4.7-8ubuntu1 +g++-4.6 4.6.4-6ubuntu2 +g++-4.8 4.8.2-19ubuntu1 +gawk 1:4.0.1+dfsg-2.1ubuntu2 +gcc 4:4.8.2-1ubuntu6 +gcc-4.4 4.4.7-8ubuntu1 +gcc-4.4-base:amd64 4.4.7-8ubuntu1 +gcc-4.6 4.6.4-6ubuntu2 +gcc-4.6-base:amd64 4.6.4-6ubuntu2 +gcc-4.8 4.8.2-19ubuntu1 +gcc-4.8-base:amd64 4.8.2-19ubuntu1 +gcc-4.9-base:amd64 4.9.1-0ubuntu1 +gconf-service 3.2.6-0ubuntu2 +gconf-service-backend 3.2.6-0ubuntu2 +gconf2 3.2.6-0ubuntu2 +gconf2-common 3.2.6-0ubuntu2 +gdisk 0.8.8-1build1 +geoip-database 20140313-1 +gettext 0.18.3.1-1ubuntu3 +gettext-base 0.18.3.1-1ubuntu3 +ghostscript 9.10~dfsg-0ubuntu10.2 +gir1.2-glib-2.0 1.40.0-1ubuntu0.2 +git 1:1.9.1-1ubuntu0.1 +git-core 1:1.9.1-1ubuntu0.1 +git-doc 1:1.9.1-1ubuntu0.1 +git-man 1:1.9.1-1ubuntu0.1 +gnupg 1.4.16-1ubuntu2.3 +gnupg-curl 1.4.16-1ubuntu2.3 +gpgv 1.4.16-1ubuntu2.3 +grep 2.16-1 +groff-base 1.22.2-5 +gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1 +guile-2.0-libs 2.0.9+1-1ubuntu1 +gvfs:amd64 1.20.3-0ubuntu1.1 +gvfs-common 1.20.3-0ubuntu1.1 +gvfs-daemons 1.20.3-0ubuntu1.1 +gvfs-libs:amd64 1.20.3-0ubuntu1.1 +gzip 1.6-3ubuntu1 +hardlink 0.2.0 +hicolor-icon-theme 0.13-1 +hostname 3.15ubuntu1 +htop 1.0.2-3 +iftop 1.0~pre2-5 +ifupdown 0.7.47.2ubuntu4.1 +imagemagick 8:6.7.7.10-6ubuntu3 +imagemagick-common 8:6.7.7.10-6ubuntu3 +info 5.2.0.dfsg.1-2 +init-system-helpers 1.14 +initramfs-tools 0.103ubuntu4.2 +initramfs-tools-bin 0.103ubuntu4.2 +initscripts 2.88dsf-41ubuntu6.2 +insserv 1.14.0-5ubuntu2 +install-info 5.2.0.dfsg.1-2 +installation-report 2.54ubuntu1 +intltool-debian 0.35.0+20060710.1 +iotop 0.6-1 +iproute 1:3.12.0-2 +iproute2 3.12.0-2 +iptables 1.4.21-1ubuntu1 +iputils-ping 3:20121221-4ubuntu1.1 +iputils-tracepath 3:20121221-4ubuntu1.1 +irqbalance 1.0.6-2ubuntu0.14.04.1 +isc-dhcp-client 4.2.4-7ubuntu12.2 +isc-dhcp-common 4.2.4-7ubuntu12.2 +iso-codes 3.52-1 +java-common 0.51 +javascript-common 11 +jetty 6.1.26-1ubuntu1.1 +jsvc 1.0.15-5ubuntu2 +kbd 1.15.5-1ubuntu1 +keyboard-configuration 1.70ubuntu8 +keychain 2.7.1-1 +klibc-utils 2.0.3-0ubuntu1 +kmod 15-0ubuntu6 +krb5-locales 1.12+dfsg-2ubuntu5.1 +krb5-multidev 1.12+dfsg-2ubuntu5.1 +landscape-common 14.12-0ubuntu0.14.04 +language-pack-en 1:14.04+20150219 +language-pack-en-base 1:14.04+20150219 +language-selector-common 0.129.3 +laptop-detect 0.13.7ubuntu2 +less 458-2 +libaccountsservice0:amd64 0.6.35-0ubuntu7.2 +libacl1:amd64 2.2.52-1 +libaio1:amd64 0.3.109-4 +libalgorithm-diff-perl 1.19.02-3 +libalgorithm-diff-xs-perl 0.04-2build4 +libalgorithm-merge-perl 0.08-2 +libapache-pom-java 10-2build1 +libapache2-mod-authnz-external 3.3.1-0.1 +libapache2-mod-fcgid 1:2.3.9-1 +libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.9 +libapparmor1:amd64 2.8.95~2430-0ubuntu5.2 +libapr1:amd64 1.5.0-1 +libapr1-dev 1.5.0-1 +libaprutil1:amd64 1.5.3-1 +libaprutil1-dbd-sqlite3:amd64 1.5.3-1 +libaprutil1-dev 1.5.3-1 +libaprutil1-ldap:amd64 1.5.3-1 +libapt-inst1.5:amd64 1.0.1ubuntu2.8 +libapt-pkg4.12:amd64 1.0.1ubuntu2.8 +libarchive-extract-perl 0.70-1 +libarchive-zip-perl 1.30-7 +libasan0:amd64 4.8.2-19ubuntu1 +libasn1-8-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libasound2:amd64 1.0.27.2-3ubuntu7 +libasound2-data 1.0.27.2-3ubuntu7 +libaspell15 0.60.7~20110707-1ubuntu1 +libasprintf-dev:amd64 0.18.3.1-1ubuntu3 +libasprintf0c2:amd64 0.18.3.1-1ubuntu3 +libassuan0:amd64 2.1.1-1ubuntu1 +libasyncns0:amd64 0.8-4ubuntu2 +libatasmart4:amd64 0.19-3 +libatinject-jsr330-api-java 1.0+ds1-1 +libatk-bridge2.0-0:amd64 2.10.2-2ubuntu1 +libatk-wrapper-java 0.30.4-4 +libatk-wrapper-java-jni:amd64 0.30.4-4 +libatk1.0-0:amd64 2.10.0-2ubuntu2 +libatk1.0-data 2.10.0-2ubuntu2 +libatm1:amd64 1:2.5.1-1.5 +libatomic1:amd64 4.8.2-19ubuntu1 +libatspi2.0-0:amd64 2.10.2.is.2.10.1-0ubuntu1 +libattr1:amd64 1:2.4.47-1ubuntu1 +libaudit-common 1:2.3.2-2ubuntu1 +libaudit1:amd64 1:2.3.2-2ubuntu1 +libauthen-sasl-perl 2.1500-1 +libavahi-client3:amd64 0.6.31-4ubuntu1 +libavahi-common-data:amd64 0.6.31-4ubuntu1 +libavahi-common3:amd64 0.6.31-4ubuntu1 +libavahi-glib1:amd64 0.6.31-4ubuntu1 +libavalon-framework-java 4.2.0-9 +libbcel-java 5.2-9build1 +libberkeleydb-perl 0.54-1 +libbind9-90 1:9.9.5.dfsg-3ubuntu0.2 +libbison-dev:amd64 2:3.0.2.dfsg-2 +libbit-vector-perl 7.3-1build1 +libblkid1:amd64 2.20.1-5.1ubuntu20.4 +libbonobo2-0:amd64 2.32.1-0ubuntu5 +libbonobo2-common 2.32.1-0ubuntu5 +libboost-iostreams1.54.0:amd64 1.54.0-4ubuntu3.1 +libbsd0:amd64 0.6.0-2ubuntu1 +libbz2-1.0:amd64 1.0.6-5 +libc-ares-dev:amd64 1.10.0-2 +libc-ares2:amd64 1.10.0-2 +libc-bin 2.19-0ubuntu6.6 +libc-client2007e 8:2007f~dfsg-2 +libc-dev-bin 2.19-0ubuntu6.6 +libc6:amd64 2.19-0ubuntu6.6 +libc6-dev:amd64 2.19-0ubuntu6.6 +libcairo-gobject2:amd64 1.13.0~20140204-0ubuntu1.1 +libcairo2:amd64 1.13.0~20140204-0ubuntu1.1 +libcanberra0:amd64 0.30-0ubuntu3 +libcap-ng0 0.7.3-1ubuntu2 +libcap2:amd64 1:2.24-0ubuntu2 +libcap2-bin 1:2.24-0ubuntu2 +libcarp-clan-perl 6.04-1 +libcgmanager0:amd64 0.24-0ubuntu7.3 +libck-connector0:amd64 0.4.5-3.1ubuntu2 +libclamav6 0.98.7+dfsg-0ubuntu0.14.04.1 +libclass-accessor-perl 0.34-1 +libclass-isa-perl 0.36-5 +libcloog-isl4:amd64 0.18.2-1 +libcolord1:amd64 1.0.6-1 +libcolorhug1:amd64 1.0.6-1 +libcomerr2:amd64 1.42.9-3ubuntu1.2 +libcommons-beanutils-java 1.9.1-1 +libcommons-codec-java 1.9-1 +libcommons-collections3-java 3.2.1-6 +libcommons-compress-java 1.6-1 +libcommons-daemon-java 1.0.15-5ubuntu2 +libcommons-dbcp-java 1.4-3ubuntu1 +libcommons-digester-java 1.8.1-4 +libcommons-fileupload-java 1.3-3 +libcommons-httpclient-java 3.1-10.2 +libcommons-io-java 2.4-2 +libcommons-lang-java 2.6-3ubuntu2 +libcommons-logging-java 1.1.3-1 +libcommons-parent-java 22-2build1 +libcommons-pool-java 1.6-2 +libcompress-raw-zlib-perl 2.063-1 +libconvert-binhex-perl 1.123-1 +libconvert-tnef-perl 0.18-1 +libconvert-uulib-perl 1:1.4~dfsg-1build3 +libcroco3:amd64 0.6.8-2ubuntu1 +libcrypt-openssl-bignum-perl 0.04-4build1 +libcrypt-openssl-rsa-perl 0.28-1build1 +libcups2:amd64 1.7.2-0ubuntu1.6 +libcupsfilters1:amd64 1.0.52-0ubuntu1.4 +libcupsimage2:amd64 1.7.2-0ubuntu1.6 +libcurl3:amd64 7.35.0-1ubuntu2.5 +libcurl3-gnutls:amd64 7.35.0-1ubuntu2.5 +libcwidget3 0.5.16-3.5ubuntu1 +libdate-calc-perl 6.3-1 +libdate-calc-xs-perl 6.3-1build1 +libdatrie1:amd64 0.2.8-1 +libdb5.1:amd64 5.1.29-7ubuntu1 +libdb5.3:amd64 5.3.28-3ubuntu3 +libdbd-mysql-perl 4.025-1 +libdbi-perl 1.630-1 +libdbus-1-3:amd64 1.6.18-0ubuntu4.3 +libdbus-glib-1-2:amd64 0.100.2-1 +libdconf1:amd64 0.20.0-1 +libdebconfclient0:amd64 0.187ubuntu1 +libdevmapper1.02.1:amd64 2:1.02.77-6ubuntu2 +libdigest-hmac-perl 1.03+dfsg-1 +libdjvulibre-text 3.5.25.4-3 +libdjvulibre21:amd64 3.5.25.4-3 +libdns100 1:9.9.5.dfsg-3ubuntu0.2 +libdpkg-perl 1.17.5ubuntu5.4 +libdrm-intel1:amd64 2.4.60-2~ubuntu14.04.1 +libdrm-nouveau2:amd64 2.4.60-2~ubuntu14.04.1 +libdrm-radeon1:amd64 2.4.60-2~ubuntu14.04.1 +libdrm2:amd64 2.4.60-2~ubuntu14.04.1 +libecj-java 3.9.0-1 +libedit2:amd64 3.1-20130712-2 +libelf1:amd64 0.158-0ubuntu5.2 +libept1.4.12:amd64 1.0.12 +liberror-perl 0.17-1.1 +libestr0 0.1.9-0ubuntu2 +libevent-2.0-5:amd64 2.0.21-stable-1ubuntu1.14.04.1 +libevent-core-2.0-5:amd64 2.0.21-stable-1ubuntu1.14.04.1 +libevent-dev 2.0.21-stable-1ubuntu1.14.04.1 +libevent-extra-2.0-5:amd64 2.0.21-stable-1ubuntu1.14.04.1 +libevent-openssl-2.0-5:amd64 2.0.21-stable-1ubuntu1.14.04.1 +libevent-pthreads-2.0-5:amd64 2.0.21-stable-1ubuntu1.14.04.1 +libexcalibur-logkit-java 2.0-10 +libexif12:amd64 0.6.21-1ubuntu1 +libexpat1:amd64 2.1.0-4ubuntu1 +libexpat1-dev:amd64 2.1.0-4ubuntu1 +libfakeroot:amd64 1.20-3ubuntu2 +libffi-dev:amd64 3.1~rc1+r3.0.13-12 +libffi6:amd64 3.1~rc1+r3.0.13-12 +libfftw3-double3:amd64 3.3.3-7ubuntu3 +libfile-basedir-perl 0.03-1fakesync1 +libfile-copy-recursive-perl 0.38-1 +libfile-desktopentry-perl 0.07-1 +libfile-fcntllock-perl 0.14-2build1 +libfile-mimeinfo-perl 0.22-1 +libfile-next-perl 1.12-1 +libflac8:amd64 1.3.0-2ubuntu0.14.04.1 +libfontconfig1:amd64 2.11.0-0ubuntu4.1 +libfontenc1:amd64 1:1.1.2-1 +libfreetype6:amd64 2.5.2-1ubuntu2.4 +libfribidi0:amd64 0.19.6-1 +libfsplib0 0.11-2 +libfuse2:amd64 2.9.2-4ubuntu4.14.04.1 +libgc1c2:amd64 1:7.2d-5ubuntu2 +libgcc-4.8-dev:amd64 4.8.2-19ubuntu1 +libgcc1:amd64 1:4.9.1-0ubuntu1 +libgck-1-0:amd64 3.10.1-1 +libgconf-2-4:amd64 3.2.6-0ubuntu2 +libgconf2-4:amd64 3.2.6-0ubuntu2 +libgcr-3-common 3.10.1-1 +libgcr-base-3-1:amd64 3.10.1-1 +libgcrypt11:amd64 1.5.3-2ubuntu4.2 +libgd3:amd64 2.1.0-3 +libgdbm-dev 1.8.3-12build1 +libgdbm3:amd64 1.8.3-12build1 +libgdk-pixbuf2.0-0:amd64 2.30.7-0ubuntu1 +libgdk-pixbuf2.0-common 2.30.7-0ubuntu1 +libgeoip1:amd64 1.6.0-1 +libgeronimo-jta-1.1-spec-java 1.1.1-3ubuntu1 +libgeronimo-stax-1.2-spec-java 1.1-1 +libgettextpo-dev:amd64 0.18.3.1-1ubuntu3 +libgettextpo0:amd64 0.18.3.1-1ubuntu3 +libgif4:amd64 4.1.6-11 +libgirepository-1.0-1 1.40.0-1ubuntu0.2 +libgl1-mesa-dri:amd64 10.1.3-0ubuntu0.4 +libgl1-mesa-glx:amd64 10.1.3-0ubuntu0.4 +libglapi-mesa:amd64 10.1.3-0ubuntu0.4 +libglib2.0-0:amd64 2.40.2-0ubuntu1 +libglib2.0-data 2.40.2-0ubuntu1 +libgmp10:amd64 2:5.1.3+dfsg-1ubuntu1 +libgnome2-0:amd64 2.32.1-4ubuntu1 +libgnome2-bin 2.32.1-4ubuntu1 +libgnome2-common 2.32.1-4ubuntu1 +libgnomevfs2-0:amd64 1:2.24.4-1ubuntu6 +libgnomevfs2-common 1:2.24.4-1ubuntu6 +libgnuinet-java 1.1.2-2build1 +libgnujaf-java 1.1.1-8build1 +libgnumail-java 1.1.2-9ubuntu3 +libgnutls-openssl27:amd64 2.12.23-12ubuntu2.2 +libgnutls26:amd64 2.12.23-12ubuntu2.2 +libgomp1:amd64 4.8.2-19ubuntu1 +libgpg-error0:amd64 1.12-0.2ubuntu1 +libgpgme11:amd64 1.4.3-0.1ubuntu5.1 +libgphoto2-6:amd64 2.5.3.1-1ubuntu2.2 +libgphoto2-l10n 2.5.3.1-1ubuntu2.2 +libgphoto2-port10:amd64 2.5.3.1-1ubuntu2.2 +libgpm2:amd64 1.20.4-6.1 +libgraphite2-3:amd64 1.2.4-1ubuntu1 +libgs9 9.10~dfsg-0ubuntu10.2 +libgs9-common 9.10~dfsg-0ubuntu10.2 +libgsasl7 1.8.0-2ubuntu2 +libgssapi-krb5-2:amd64 1.12+dfsg-2ubuntu5.1 +libgssapi3-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libgssrpc4:amd64 1.12+dfsg-2ubuntu5.1 +libgtk-3-0:amd64 3.10.8-0ubuntu1.5 +libgtk-3-bin 3.10.8-0ubuntu1.5 +libgtk-3-common 3.10.8-0ubuntu1.5 +libgtk2.0-0:amd64 2.24.23-0ubuntu1.2 +libgtk2.0-bin 2.24.23-0ubuntu1.2 +libgtk2.0-common 2.24.23-0ubuntu1.2 +libguava-java 15.0-2ubuntu1 +libgudev-1.0-0:amd64 1:204-5ubuntu20.12 +libgusb2:amd64 0.1.6-5 +libharfbuzz0b:amd64 0.9.27-1ubuntu1 +libhcrypto4-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libheimbase1-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libheimntlm0-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libhtml-template-perl 2.95-1 +libhttpclient-java 4.3.3-1 +libhttpcore-java 4.3.2-2 +libhttpmime-java 4.3.3-1 +libhx509-5-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libice-dev:amd64 2:1.0.8-2 +libice6:amd64 2:1.0.8-2 +libicu4j-4.4-java 4.4.2.2-1 +libicu52:amd64 52.1-3ubuntu0.3 +libidl-common 0.8.14-0.2ubuntu4 +libidl0:amd64 0.8.14-0.2ubuntu4 +libidn11:amd64 1.28-1ubuntu2 +libieee1284-3:amd64 0.2.11-12 +libijs-0.35 0.35-8build1 +libilmbase6:amd64 1.0.1-6ubuntu1 +libio-multiplex-perl 1.13-1 +libio-pty-perl 1:1.08-1build4 +libio-socket-inet6-perl 2.71-1 +libio-socket-ssl-perl 1.965-1ubuntu1 +libio-string-perl 1.08-3 +libio-stringy-perl 2.110-5 +libipc-run-perl 0.92-1 +libisc95 1:9.9.5.dfsg-3ubuntu0.2 +libisccc90 1:9.9.5.dfsg-3ubuntu0.2 +libisccfg90 1:9.9.5.dfsg-3ubuntu0.2 +libisl10:amd64 0.12.2-1 +libisorelax-java 20041111-8 +libitm1:amd64 4.8.2-19ubuntu1 +libiw30:amd64 30~pre9-8ubuntu1 +libjasper1:amd64 1.900.1-14ubuntu3.2 +libjaxp1.3-java 1.3.05-2ubuntu3 +libjbig0:amd64 2.0-2ubuntu4.1 +libjbig2dec0 0.11+20120125-1ubuntu1 +libjetty-java 6.1.26-1ubuntu1.1 +libjpeg-turbo8:amd64 1.3.0-0ubuntu2 +libjpeg62:amd64 6b1-4ubuntu1 +libjpeg8:amd64 8c-2ubuntu8 +libjs-jquery 1.7.2+dfsg-2ubuntu1 +libjs-jquery-mousewheel 8-2 +libjs-sphinxdoc 1.2.2+dfsg-1ubuntu1.1 +libjs-underscore 1.4.4-2ubuntu1 +libjson-c2:amd64 0.11-3ubuntu1.2 +libjson0:amd64 0.11-3ubuntu1.2 +libjsr305-java 0.1~+svn49-4 +libk5crypto3:amd64 1.12+dfsg-2ubuntu5.1 +libkadm5clnt-mit9:amd64 1.12+dfsg-2ubuntu5.1 +libkadm5srv-mit8:amd64 1.12+dfsg-2ubuntu5.1 +libkadm5srv-mit9:amd64 1.12+dfsg-2ubuntu5.1 +libkdb5-7:amd64 1.12+dfsg-2ubuntu5.1 +libkeyutils1:amd64 1.5.6-1 +libklibc 2.0.3-0ubuntu1 +libkmod2:amd64 15-0ubuntu6 +libknopflerfish-osgi-framework-java 2.3.3-3 +libkrb5-26-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libkrb5-3:amd64 1.12+dfsg-2ubuntu5.1 +libkrb5-dev 1.12+dfsg-2ubuntu5.1 +libkrb5support0:amd64 1.12+dfsg-2ubuntu5.1 +libkyotocabinet16:amd64 1.2.76-4 +liblcms2-2:amd64 2.5-0ubuntu4 +libldap-2.4-2:amd64 2.4.31-1+nmu2ubuntu8.1 +libldap2-dev:amd64 2.4.31-1+nmu2ubuntu8.1 +libldns1 1.6.17-1 +libllvm3.4:amd64 1:3.4-1ubuntu3 +liblocale-gettext-perl 1.05-7build3 +liblockfile-bin 1.09-6ubuntu1 +liblockfile1:amd64 1.09-6ubuntu1 +liblog-message-simple-perl 0.10-1 +liblog4j1.2-java 1.2.17-4ubuntu3 +liblqr-1-0:amd64 0.4.1-2ubuntu1 +libltdl-dev:amd64 2.4.2-1.7ubuntu1 +libltdl7:amd64 2.4.2-1.7ubuntu1 +liblua5.2-0:amd64 5.2.3-1 +liblucene3-contrib-java 3.6.2+dfsg-2 +liblucene3-java 3.6.2+dfsg-2 +liblwres90 1:9.9.5.dfsg-3ubuntu0.2 +liblzma5:amd64 5.1.1alpha+20120614-2ubuntu2 +liblzo2-2:amd64 2.06-1.2ubuntu1.1 +libmagic1:amd64 1:5.14-2ubuntu3.3 +libmagickcore5:amd64 8:6.7.7.10-6ubuntu3 +libmagickcore5-extra:amd64 8:6.7.7.10-6ubuntu3 +libmagickwand5:amd64 8:6.7.7.10-6ubuntu3 +libmail-dkim-perl 0.40-1 +libmail-sendmail-perl 0.79.16-1 +libmailtools-perl 2.12-1 +libmailutils4 1:2.99.98-1.1 +libmcrypt4 2.5.8-3.1ubuntu1 +libmime-tools-perl 5.505-1 +libmodule-pluggable-perl 5.1-1 +libmount1:amd64 2.20.1-5.1ubuntu20.4 +libmpc3:amd64 1.0.1-1ubuntu1 +libmpdec2:amd64 2.4.0-6 +libmpfr4:amd64 3.1.2-1 +libmsv-java 2009.1+dfsg1-4 +libmx4j-java 3.0.2-13ubuntu1 +libmysqlclient-dev 5.5.43-0ubuntu0.14.04.1 +libmysqlclient18:amd64 5.5.43-0ubuntu0.14.04.1 +libncurses5:amd64 5.9+20140118-1ubuntu1 +libncurses5-dev:amd64 5.9+20140118-1ubuntu1 +libncursesw5:amd64 5.9+20140118-1ubuntu1 +libnet-cidr-perl 0.17-1 +libnet-daemon-perl 0.48-1 +libnet-dns-perl 0.68-1.2build1 +libnet-ip-perl 1.26-1 +libnet-libidn-perl 0.12.ds-1build4 +libnet-rblclient-perl 0.5-2 +libnet-server-perl 2.007-3 +libnet-smtp-ssl-perl 1.01-3 +libnet-ssleay-perl 1.58-1 +libnetpbm10 2:10.0-15ubuntu2 +libnewt0.52:amd64 0.52.15-2ubuntu5 +libnfnetlink0:amd64 1.0.1-2 +libnih-dbus1:amd64 1.0.3-4ubuntu25 +libnih1:amd64 1.0.3-4ubuntu25 +libnl-3-200:amd64 3.2.21-1 +libnl-genl-3-200:amd64 3.2.21-1 +libnspr4:amd64 2:4.10.7-0ubuntu0.14.04.1 +libnss3:amd64 2:3.17.4-0ubuntu0.14.04.1 +libnss3-nssdb 2:3.17.4-0ubuntu0.14.04.1 +libntlm0:amd64 1.4-1 +libnuma1:amd64 2.0.9~rc5-1ubuntu3.14.04.1 +libogg0:amd64 1.3.1-1ubuntu1 +libopenexr6:amd64 1.6.1-7ubuntu1 +liborbit-2-0:amd64 1:2.14.19-0.3 +liborbit2:amd64 1:2.14.19-0.3 +libossp-uuid16 1.6.2-1.3ubuntu1 +libp11-kit0:amd64 0.20.2-2ubuntu2 +libpam-cap:amd64 1:2.24-0ubuntu2 +libpam-modules:amd64 1.1.8-1ubuntu2 +libpam-modules-bin 1.1.8-1ubuntu2 +libpam-runtime 1.1.8-1ubuntu2 +libpam-systemd:amd64 204-5ubuntu20.12 +libpam-tmpdir 0.09 +libpam0g:amd64 1.1.8-1ubuntu2 +libpango-1.0-0:amd64 1.36.3-1ubuntu1.1 +libpangocairo-1.0-0:amd64 1.36.3-1ubuntu1.1 +libpangoft2-1.0-0:amd64 1.36.3-1ubuntu1.1 +libpaper-utils 1.1.24+nmu2ubuntu3 +libpaper1:amd64 1.1.24+nmu2ubuntu3 +libparse-debianchangelog-perl 1.2.0-1ubuntu1 +libparse-syslog-perl 1.10-2ubuntu1 +libparted0debian1:amd64 2.3-19ubuntu1 +libpcap0.8:amd64 1.5.3-2 +libpci3:amd64 1:3.2.1-1ubuntu5 +libpciaccess0:amd64 0.13.2-1 +libpcre3:amd64 1:8.31-2ubuntu2 +libpcre3-dev:amd64 1:8.31-2ubuntu2 +libpcrecpp0:amd64 1:8.31-2ubuntu2 +libpcsclite1:amd64 1.8.10-1ubuntu1 +libperl-dev 5.18.2-2ubuntu1 +libperl5.18 5.18.2-2ubuntu1 +libpipeline1:amd64 1.3.0-1 +libpixman-1-0:amd64 0.30.2-2ubuntu1 +libplrpc-perl 0.2020-2 +libplymouth2:amd64 0.8.8-0ubuntu17.1 +libpng12-0:amd64 1.2.50-1ubuntu2 +libpod-latex-perl 0.61-1 +libpolkit-agent-1-0:amd64 0.105-4ubuntu2.14.04.1 +libpolkit-backend-1-0:amd64 0.105-4ubuntu2.14.04.1 +libpolkit-gobject-1-0:amd64 0.105-4ubuntu2.14.04.1 +libpopt0:amd64 1.16-8ubuntu1 +libpq-dev 9.3.8-0ubuntu0.4.04 +libpq5 9.3.8-0ubuntu0.4.04 +libprocps3:amd64 1:3.3.9-1ubuntu2.2 +libpthread-stubs0-dev:amd64 0.3-4 +libpulse0:amd64 1:4.0-0ubuntu11.1 +libpython-dev:amd64 2.7.5-5ubuntu3 +libpython-stdlib:amd64 2.7.5-5ubuntu3 +libpython2.7:amd64 2.7.6-8 +libpython2.7-dev:amd64 2.7.6-8 +libpython2.7-minimal:amd64 2.7.6-8 +libpython2.7-stdlib:amd64 2.7.6-8 +libpython3-dev:amd64 3.4.0-0ubuntu2 +libpython3-stdlib:amd64 3.4.0-0ubuntu2 +libpython3.4:amd64 3.4.0-2ubuntu1 +libpython3.4-dev:amd64 3.4.0-2ubuntu1 +libpython3.4-minimal:amd64 3.4.0-2ubuntu1 +libpython3.4-stdlib:amd64 3.4.0-2ubuntu1 +libquadmath0:amd64 4.8.2-19ubuntu1 +libreadline-dev:amd64 6.3-4ubuntu2 +libreadline6:amd64 6.3-4ubuntu2 +libreadline6-dev:amd64 6.3-4ubuntu2 +libregexp-java 1.5-3build1 +librelaxng-datatype-java 1.0+ds1-3 +libroken18-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +librsvg2-2:amd64 2.40.2-1 +librsvg2-common:amd64 2.40.2-1 +librtmp0:amd64 2.4+20121230.gitdf6c518-1 +libruby1.9.1 1.9.3.484-2ubuntu1.2 +libsane:amd64 1.0.23-3ubuntu3.1 +libsane-common 1.0.23-3ubuntu3.1 +libsasl2-2:amd64 2.1.25.dfsg1-17build1 +libsasl2-dev 2.1.25.dfsg1-17build1 +libsasl2-modules:amd64 2.1.25.dfsg1-17build1 +libsasl2-modules-db:amd64 2.1.25.dfsg1-17build1 +libsctp-dev 1.0.15+dfsg-1 +libsctp1:amd64 1.0.15+dfsg-1 +libsecret-1-0:amd64 0.16-0ubuntu1 +libsecret-common 0.16-0ubuntu1 +libselinux1:amd64 2.2.2-1ubuntu0.1 +libsemanage-common 2.2-1 +libsemanage1:amd64 2.2-1 +libsensors4:amd64 1:3.3.4-2ubuntu1 +libsepol1:amd64 2.2-1ubuntu0.1 +libserf-1-1:amd64 1.3.3-1ubuntu0.1 +libservlet2.5-java 6.0.39-1 +libservlet3.0-java 7.0.52-1ubuntu0.1 +libsigc++-2.0-0c2a:amd64 2.2.10-0.2ubuntu2 +libsigsegv2:amd64 2.10-2 +libslang2:amd64 2.2.4-15ubuntu1 +libslf4j-java 1.7.5-2 +libsm-dev:amd64 2:1.2.1-2 +libsm6:amd64 2:1.2.1-2 +libsndfile1:amd64 1.0.25-7ubuntu2 +libsocket6-perl 0.25-1 +libsolr-java 3.6.2+dfsg-2 +libsqlite0 2.8.17-10ubuntu2 +libsqlite3-0:amd64 3.8.2-1ubuntu2 +libsqlite3-dev:amd64 3.8.2-1ubuntu2 +libss2:amd64 1.42.9-3ubuntu1.2 +libssl-dev:amd64 1.0.1f-1ubuntu8 +libssl-doc 1.0.1f-1ubuntu8 +libssl0.9.8:amd64 0.9.8o-7ubuntu3.2.14.04.1 +libssl1.0.0:amd64 1.0.1f-1ubuntu8 +libstax-java 1.2.0-3build1 +libstax2-api-java 3.1.1-1 +libstdc++-4.8-dev:amd64 4.8.2-19ubuntu1 +libstdc++6:amd64 4.8.2-19ubuntu1 +libstdc++6-4.4-dev 4.4.7-8ubuntu1 +libstdc++6-4.6-dev 4.6.4-6ubuntu2 +libsub-name-perl 0.05-1build4 +libsvn1:amd64 1.8.8-1ubuntu3.1 +libswitch-perl 2.16-2 +libsys-hostname-long-perl 1.4-3 +libsystemd-daemon0:amd64 204-5ubuntu20.12 +libsystemd-login0:amd64 204-5ubuntu20.12 +libt1-5 5.1.2-3.6ubuntu1 +libtasn1-6:amd64 3.4-3ubuntu0.3 +libtcl8.5:amd64 8.5.15-2ubuntu1 +libtcl8.6:amd64 8.6.1-4ubuntu1 +libtdb1:amd64 1.2.12-1 +libterm-readkey-perl 2.31-1 +libterm-ui-perl 0.42-1 +libtext-charwidth-perl 0.04-7build3 +libtext-iconv-perl 1.7-5build2 +libtext-soundex-perl 3.4-1build1 +libtext-wrapi18n-perl 0.06-7 +libthai-data 0.1.20-3 +libthai0:amd64 0.1.20-3 +libtiff5:amd64 4.0.3-7ubuntu0.3 +libtimedate-perl 2.3000-1 +libtinfo-dev:amd64 5.9+20140118-1ubuntu1 +libtinfo5:amd64 5.9+20140118-1ubuntu1 +libtokyocabinet9:amd64 1.4.48-2 +libtomcat6-java 6.0.39-1 +libtool 2.4.2-1.7ubuntu1 +libtre5:amd64 0.8.0-3ubuntu1 +libtsan0:amd64 4.8.2-19ubuntu1 +libtxc-dxtn-s2tc0:amd64 0~git20131104-1.1 +libudev1:amd64 204-5ubuntu20.12 +libudisks2-0:amd64 2.1.3-1 +libunistring0:amd64 0.9.3-5ubuntu3 +libunix-syslog-perl 1.1-2build5 +libusb-0.1-4:amd64 2:0.1.12-23.3ubuntu1 +libusb-1.0-0:amd64 2:1.0.17-1ubuntu2 +libustr-1.0-1:amd64 1.0.4-3ubuntu2 +libuuid1:amd64 2.20.1-5.1ubuntu20.4 +libv4l-0:amd64 1.0.1-1 +libv4lconvert0:amd64 1.0.1-1 +libv8-3.14.5 3.14.5.8-5ubuntu2 +libv8-dev 3.14.5.8-5ubuntu2 +libvorbis0a:amd64 1.3.2-1.3ubuntu1 +libvorbisenc2:amd64 1.3.2-1.3ubuntu1 +libvorbisfile3:amd64 1.3.2-1.3ubuntu1 +libvpx1:amd64 1.3.0-2 +libwayland-client0:amd64 1.4.0-1ubuntu1 +libwayland-cursor0:amd64 1.4.0-1ubuntu1 +libwind0-heimdal:amd64 1.6~git20131207+dfsg-1ubuntu1.1 +libwmf0.2-7:amd64 0.2.8.4-10.3ubuntu1 +libwoodstox-java 1:4.1.3-1 +libwrap0:amd64 7.6.q-25 +libx11-6:amd64 2:1.6.2-1ubuntu2 +libx11-data 2:1.6.2-1ubuntu2 +libx11-dev:amd64 2:1.6.2-1ubuntu2 +libx11-doc 2:1.6.2-1ubuntu2 +libx11-xcb1:amd64 2:1.6.2-1ubuntu2 +libxapian22 1.2.16-2ubuntu1 +libxau-dev:amd64 1:1.0.8-1 +libxau6:amd64 1:1.0.8-1 +libxaw7:amd64 2:1.0.12-1 +libxcb-dri2-0:amd64 1.10-2ubuntu1 +libxcb-dri3-0:amd64 1.10-2ubuntu1 +libxcb-glx0:amd64 1.10-2ubuntu1 +libxcb-present0:amd64 1.10-2ubuntu1 +libxcb-render0:amd64 1.10-2ubuntu1 +libxcb-shape0:amd64 1.10-2ubuntu1 +libxcb-shm0:amd64 1.10-2ubuntu1 +libxcb-sync1:amd64 1.10-2ubuntu1 +libxcb1:amd64 1.10-2ubuntu1 +libxcb1-dev:amd64 1.10-2ubuntu1 +libxcomposite1:amd64 1:0.4.4-1 +libxcursor1:amd64 1:1.1.14-1 +libxdamage1:amd64 1:1.1.4-1ubuntu1 +libxdmcp-dev:amd64 1:1.1.1-1 +libxdmcp6:amd64 1:1.1.1-1 +libxerces2-java 2.11.0-7 +libxext6:amd64 2:1.3.2-1ubuntu0.0.14.04.1 +libxfixes3:amd64 1:5.0.1-1ubuntu1.1 +libxft2:amd64 2.3.1-2 +libxi6:amd64 2:1.7.1.901-1ubuntu1.1 +libxinerama1:amd64 2:1.1.3-1 +libxkbcommon0:amd64 0.4.1-0ubuntu1 +libxml-commons-external-java 1.4.01-2build1 +libxml-commons-resolver1.1-java 1.2-7build1 +libxml2:amd64 2.9.1+dfsg1-3ubuntu4.4 +libxml2-dev:amd64 2.9.1+dfsg1-3ubuntu4.4 +libxml2-utils 2.9.1+dfsg1-3ubuntu4.4 +libxmu6:amd64 2:1.1.1-1 +libxmuu1:amd64 2:1.1.1-1 +libxpm4:amd64 1:3.5.10-1 +libxrandr2:amd64 2:1.4.2-1 +libxrender1:amd64 1:0.9.8-1build0.14.04.1 +libxshmfence1:amd64 1.1-2 +libxslt1-dev:amd64 1.1.28-2build1 +libxslt1.1:amd64 1.1.28-2build1 +libxt-dev:amd64 1:1.1.4-1 +libxt6:amd64 1:1.1.4-1 +libxtables10 1.4.21-1ubuntu1 +libxtst6:amd64 2:1.2.2-1 +libxv1:amd64 2:1.0.10-1 +libxxf86dga1:amd64 2:1.1.4-1 +libxxf86vm1:amd64 1:1.1.3-1 +libxz-java 1.4-1 +libyaml-0-2:amd64 0.1.4-3ubuntu3.1 +libyaml-dev:amd64 0.1.4-3ubuntu3.1 +linux-firmware 1.127.12 +linux-libc-dev:amd64 3.13.0-55.92 +lksctp-tools 1.0.15+dfsg-1 +locales 2.13+git20120306-12.1 +lockfile-progs 0.1.17 +login 1:4.1.5.1-1ubuntu9 +logrotate 3.8.7-1ubuntu1 +lsb-base 4.1+Debian11ubuntu6 +lsb-release 4.1+Debian11ubuntu6 +lshw 02.16-2ubuntu1.2 +lsof 4.86+dfsg-1ubuntu2 +ltrace 0.7.3-4ubuntu5.1 +lxc-docker 1.6.2 +lxc-docker-1.6.1 1.6.1 +lxc-docker-1.6.2 1.6.2 +m4 1.4.17-2ubuntu1 +mailman 1:2.1.16-2ubuntu0.1 +mailutils 1:2.99.98-1.1 +mailutils-common 1:2.99.98-1.1 +make 3.81-8.2ubuntu3 +makedev 2.3.1-93ubuntu1 +man-db 2.6.7.1-1ubuntu1 +manpages 3.54-1ubuntu1 +manpages-dev 3.54-1ubuntu1 +mawk 1.3.3-17ubuntu2 +mime-support 3.54ubuntu1.1 +mingetty 1.08-2 +mlocate 0.26-1ubuntu1 +mlock 8:2007f~dfsg-2 +module-init-tools 15-0ubuntu6 +moreutils 0.50 +mount 2.20.1-5.1ubuntu20.4 +mountall 2.53 +mtr-tiny 0.85-2 +multiarch-support 2.19-0ubuntu6.6 +mutt 1.5.21-6.4ubuntu2.1 +mysql-client-5.5 5.5.43-0ubuntu0.14.04.1 +mysql-client-core-5.5 5.5.43-0ubuntu0.14.04.1 +mysql-common 5.5.43-0ubuntu0.14.04.1 +mysql-server 5.5.43-0ubuntu0.14.04.1 +mysql-server-5.5 5.5.43-0ubuntu0.14.04.1 +mysql-server-core-5.5 5.5.43-0ubuntu0.14.04.1 +nano 2.2.6-1ubuntu1 +ncurses-base 5.9+20140118-1ubuntu1 +ncurses-bin 5.9+20140118-1ubuntu1 +ncurses-term 5.9+20140118-1ubuntu1 +net-tools 1.60-25ubuntu2.1 +netbase 5.2 +netcat 1.10-40 +netcat-openbsd 1.105-7ubuntu1 +netcat-traditional 1.10-40 +netpbm 2:10.0-15ubuntu2 +nodejs 0.10.25~dfsg2-2ubuntu1 +nomarch 1.4-3 +ntfs-3g 1:2013.1.13AR.1-2ubuntu2 +ntpdate 1:4.2.6.p5+dfsg-3ubuntu2.14.04.3 +offlineimap 6.5.4-2 +openbsd-inetd 0.20091229-2ubuntu3 +openjdk-7-jdk:amd64 7u79-2.5.5-0ubuntu0.14.04.2 +openjdk-7-jre:amd64 7u79-2.5.5-0ubuntu0.14.04.2 +openjdk-7-jre-headless:amd64 7u79-2.5.5-0ubuntu0.14.04.2 +openssh-client 1:6.6p1-2ubuntu2 +openssh-server 1:6.6p1-2ubuntu2 +openssh-sftp-server 1:6.6p1-2ubuntu2 +openssl 1.0.1f-1ubuntu8 +parted 2.3-19ubuntu1 +passwd 1:4.1.5.1-1ubuntu9 +patch 2.7.1-4ubuntu2 +pax 1:20120606-2+deb7u1 +pbzip2 1.1.8-1 +pciutils 1:3.2.1-1ubuntu5 +perl 5.18.2-2ubuntu1 +perl-base 5.18.2-2ubuntu1 +perl-modules 5.18.2-2ubuntu1 +pflogsumm 1.1.5-1 +php-auth 1.6.4-1 +php-auth-sasl 1.0.6-1 +php-db 1.7.14-2 +php-http-request 1.4.4-4 +php-log 1.12.7-1 +php-mail 1.2.0-6 +php-mail-mime 1.8.8-1 +php-mdb2 2.5.0b5-1 +php-net-dime 1.0.2-2 +php-net-sieve 1.3.2-4 +php-net-smtp 1.6.1-1 +php-net-socket 1.0.14-1 +php-net-url 1.0.15-3 +php-pear 5.5.9+dfsg-1ubuntu4.9 +php-soap 0.13.0-1 +php-xml-parser 1.3.4-6 +php5 5.5.9+dfsg-1ubuntu4.9 +php5-cgi 5.5.9+dfsg-1ubuntu4.9 +php5-cli 5.5.9+dfsg-1ubuntu4.9 +php5-common 5.5.9+dfsg-1ubuntu4.9 +php5-curl 5.5.9+dfsg-1ubuntu4.9 +php5-dev 5.5.9+dfsg-1ubuntu4.9 +php5-fpm 5.5.9+dfsg-1ubuntu4.9 +php5-gd 5.5.9+dfsg-1ubuntu4.9 +php5-gmp 5.5.9+dfsg-1ubuntu4.9 +php5-imap 5.4.6-0ubuntu5 +php5-intl 5.5.9+dfsg-1ubuntu4.9 +php5-json 1.3.2-2build1 +php5-mcrypt 5.4.6-0ubuntu5 +php5-mysql 5.5.9+dfsg-1ubuntu4.9 +php5-pspell 5.5.9+dfsg-1ubuntu4.9 +php5-readline 5.5.9+dfsg-1ubuntu4.9 +php5-sqlite 5.5.9+dfsg-1ubuntu4.9 +php5-xmlrpc 5.5.9+dfsg-1ubuntu4.9 +php5-xsl 5.5.9+dfsg-1ubuntu4.9 +pidentd 3.0.19.ds1-7 +pkg-config 0.26-1ubuntu4 +pkg-php-tools 1.11 +plymouth 0.8.8-0ubuntu17.1 +plymouth-theme-ubuntu-text 0.8.8-0ubuntu17.1 +po-debconf 1.0.16+nmu2ubuntu1 +policykit-1 0.105-4ubuntu2.14.04.1 +policykit-1-gnome 0.105-1ubuntu4 +poppler-data 0.4.6-4 +postfix 2.11.0-1ubuntu1 +postfix-doc 2.11.0-1ubuntu1 +postfix-pcre 2.11.0-1ubuntu1 +postfix-policyd-spf-python 1.2-1 +postgrey 1.34-1.2 +powermgmt-base 1.31build1 +ppp 2.4.5-5.1ubuntu2.2 +pppconfig 2.3.19ubuntu1 +procmail 3.22-21ubuntu0.1 +procps 1:3.3.9-1ubuntu2.2 +psmisc 22.20-1ubuntu2 +pwauth 2.3.8-1 +pwgen 2.06-1ubuntu4 +python 2.7.5-5ubuntu3 +python-apport 2.14.1-0ubuntu3.11 +python-apt 0.9.3.5ubuntu1 +python-apt-common 0.9.3.5ubuntu1 +python-authres 0.602-1 +python-chardet 2.0.1-2build2 +python-configobj 4.7.2+ds-5build1 +python-crypto 2.6.1-4build1 +python-dbus 1.2.0-2build2 +python-dbus-dev 1.2.0-2build2 +python-debian 0.1.21+nmu2ubuntu2 +python-dev 2.7.5-5ubuntu3 +python-dns 2.3.6-3 +python-dnspython 1.11.1-1build1 +python-gdbm 2.7.5-1ubuntu1 +python-gi 3.12.0-1ubuntu1 +python-gnupginterface 0.3.2-9.1ubuntu3 +python-httplib2 0.8-2build1 +python-ipaddr 2.1.10-1 +python-ipcalc 0.5.2-0ubuntu1 +python-keyring 3.5-1 +python-launchpadlib 1.10.2+ds-2 +python-lazr.restfulclient 0.13.3-1build1 +python-lazr.uri 1.0.3-1build1 +python-ldns 1.6.17-1 +python-minimal 2.7.5-5ubuntu3 +python-newt 0.52.15-2ubuntu5 +python-oauth 1.0.1-3build2 +python-openssl 0.13-2ubuntu6 +python-pam 0.4.2-13.1ubuntu3 +python-pkg-resources 3.3-1ubuntu1 +python-problem-report 2.14.1-0ubuntu3.11 +python-pycurl 7.19.3-0ubuntu3 +python-requests 2.2.1-1ubuntu0.2 +python-secretstorage 2.0.0-1ubuntu1.1 +python-serial 2.6-1build1 +python-simplejson 3.3.1-1ubuntu6 +python-six 1.5.2-1 +python-software-properties 0.92.37.3 +python-spf 2.0.8-3 +python-sqlite 1.0.1-11 +python-support 1.0.15 +python-twisted-bin 13.2.0-1ubuntu1 +python-twisted-core 13.2.0-1ubuntu1 +python-urllib3 1.7.1-1ubuntu3 +python-wadllib 1.3.2-2build1 +python-xapian 1.2.16-2ubuntu1 +python-zope.interface 4.0.5-1ubuntu4 +python2.7 2.7.6-8 +python2.7-dev 2.7.6-8 +python2.7-minimal 2.7.6-8 +python3 3.4.0-0ubuntu2 +python3-apport 2.14.1-0ubuntu3.11 +python3-apt 0.9.3.5ubuntu1 +python3-authres 0.602-1 +python3-commandnotfound 0.3ubuntu12 +python3-dbus 1.2.0-2build2 +python3-dev 3.4.0-0ubuntu2 +python3-distupgrade 1:0.220.7 +python3-dns 3.0.4-1ubuntu1 +python3-gdbm:amd64 3.4.0-0ubuntu1 +python3-gi 3.12.0-1ubuntu1 +python3-minimal 3.4.0-0ubuntu2 +python3-problem-report 2.14.1-0ubuntu3.11 +python3-pycurl 7.19.3-0ubuntu3 +python3-software-properties 0.92.37.3 +python3-spf 2.0.8-3 +python3-update-manager 1:0.196.13 +python3.4 3.4.0-2ubuntu1 +python3.4-dev 3.4.0-2ubuntu1 +python3.4-minimal 3.4.0-2ubuntu1 +rar 2:4.2.0-1 +rcm 1.2.3-1ubuntu2 +readline-common 6.3-4ubuntu2 +realpath 1.19 +renameutils 0.12.0-3 +resolvconf 1.69ubuntu1.1 +ripole 0.2.0+20081101.0215-1 +roundcube 0.9.5-4 +roundcube-core 0.9.5-4 +roundcube-mysql 0.9.5-4 +roundcube-plugins 0.9.5-4 +roundcube-plugins-extra 0.9.2-20130819 +rsync 3.1.0-2ubuntu0.1 +rsyslog 7.4.4-1ubuntu2.6 +ruby 1:1.9.3.4 +ruby1.9.1 1.9.3.484-2ubuntu1.2 +run-one 1.17-0ubuntu1 +safecat 1.13-2 +sasl2-bin 2.1.25.dfsg1-17build1 +screen 4.1.0~20120320gitdb59704-9 +sed 4.2.2-4ubuntu1 +sensible-utils 0.0.9 +sgml-base 1.26+nmu4ubuntu1 +sgml-data 2.0.9-1 +shared-mime-info 1.2-0ubuntu3 +shtool 2.0.8-6 +software-properties-common 0.92.37.3 +solr-common 3.6.2+dfsg-2 +solr-tomcat 3.6.2+dfsg-2 +sound-theme-freedesktop 0.8-1 +sqlite3 3.8.2-1ubuntu2 +ssh-import-id 3.21-0ubuntu1 +sshfp 1.2.2-4 +ssl-cert 1.0.33 +stow 2.2.0-2 +strace 4.8-1ubuntu5 +subversion 1.8.8-1ubuntu3.1 +sudo 1.8.9p5-1ubuntu1.1 +swig 2.0.11-1ubuntu2 +swig2.0 2.0.11-1ubuntu2 +sysstat 10.2.0-1 +systemd-services 204-5ubuntu20.12 +systemd-shim 6-2bzr1 +sysv-rc 2.88dsf-41ubuntu6.2 +sysvinit-utils 2.88dsf-41ubuntu6.2 +tar 1.27.1-1 +tasksel 2.88ubuntu15 +tasksel-data 2.88ubuntu15 +tcl8.5 8.5.15-2ubuntu1 +tcpd 7.6.q-25 +tcpdump 4.5.1-2ubuntu1.2 +telnet 0.17-36build2 +time 1.7-24 +tinymce 3.4.8+dfsg0-1 +tmux 1.9a-1~ppa1~p +tomcat6 6.0.39-1 +tomcat6-common 6.0.39-1 +traceroute 1:2.0.20-0ubuntu0.1 +tree 1.6.0-1 +ttf-dejavu-core 2.34-1ubuntu1 +tzdata 2015d-0ubuntu0.14.04 +tzdata-java 2015d-0ubuntu0.14.04 +ubuntu-keyring 2012.05.19 +ubuntu-minimal 1.325 +ubuntu-release-upgrader-core 1:0.220.7 +ucf 3.0027+nmu1 +udev 204-5ubuntu20.12 +udisks2 2.1.3-1 +unattended-upgrades 0.82.1ubuntu2.2 +unison 2.40.102-2ubuntu1 +unrar 1:5.0.10-1ubuntu0.14.04.1 +unzip 6.0-9ubuntu1.3 +update-inetd 4.43 +update-manager-core 1:0.196.13 +update-notifier-common 0.154.1ubuntu1 +upstart 1.12.1-0ubuntu4.2 +ureadahead 0.100.0-16 +usbutils 1:007-2ubuntu1 +util-linux 2.20.1-5.1ubuntu20.4 +uuid 1.6.2-1.3ubuntu1 +uuid-dev 2.20.1-5.1ubuntu20.4 +uuid-runtime 2.20.1-5.1ubuntu20.4 +vim-common 2:7.4.052-1ubuntu3 +vim-nox 2:7.4.052-1ubuntu3 +vim-runtime 2:7.4.052-1ubuntu3 +vim-tiny 2:7.4.052-1ubuntu3 +w3m 0.5.3-15 +wget 1.15-1ubuntu1.14.04.1 +whiptail 0.52.15-2ubuntu5 +whois 5.1.1 +x11-common 1:7.7+1ubuntu8.1 +x11-utils 7.7+1 +x11-xserver-utils 7.7+2ubuntu1 +x11proto-core-dev 7.0.26-1~ubuntu2 +x11proto-input-dev 2.3-1 +x11proto-kb-dev 1.0.6-2 +xauth 1:1.0.7-1ubuntu1 +xdg-utils 1.1.0~rc1-2ubuntu7.1 +xkb-data 2.10.1-1ubuntu1 +xml-core 0.13+nmu2 +xorg-sgml-doctools 1:1.11-1 +xtrans-dev 1.3.5-1~ubuntu14.04.1 +xz-utils 5.1.1alpha+20120614-2ubuntu2 +zip 3.0-8 +zlib1g:amd64 1:1.2.8.dfsg-1ubuntu1 +zlib1g-dev:amd64 1:1.2.8.dfsg-1ubuntu1 +znc 1.6.0-2~ubuntu14.04.2 +znc-dbg 1.6.0-2~ubuntu14.04.2 +znc-dev 1.6.0-2~ubuntu14.04.2 +znc-perl 1.6.0-2~ubuntu14.04.2 +znc-python 1.6.0-2~ubuntu14.04.2 +znc-tcl 1.6.0-2~ubuntu14.04.2 +zoo 2.10-27 +zsh 5.0.2-3ubuntu6 +zsh-beta 5.0.2-3ubuntu6 +zsh-common 5.0.2-3ubuntu6 +zsh-doc 5.0.2-3ubuntu6 diff --git a/spec/data/plugins/rpmquery.output b/spec/data/plugins/rpmquery.output new file mode 100644 index 00000000..142fd2fa --- /dev/null +++ b/spec/data/plugins/rpmquery.output @@ -0,0 +1,388 @@ +ntp 4.2.6p5 3.el6_6 +perl-CGI 3.51 136.el6_6.1 +mailx 12.4 8.el6_6 +libattr 2.4.44 7.el6 +perl-ExtUtils-ParseXS 2.2003.0 136.el6_6.1 +redhat-lsb-core 4.0 7.el6 +libsepol 2.0.41 4.el6 +screen 4.0.3 16.el6 +coreutils-libs 8.4 37.el6 +bzip2-libs 1.0.5 7.el6_0 +gpg-pubkey 66fd4949 4803fe57 +libudev 147 2.57.el6 +hal-libs 0.5.14 14.el6 +plymouth-scripts 0.8.3 27.el6_5.1 +libgpg-error 1.7 4.el6 +libselinux-utils 2.0.94 5.8.el6 +sqlite 3.6.20 1.el6 +libxcb 1.9.1 2.el6 +libxml2 2.7.6 17.el6_6.1 +p11-kit-trust 0.18.5 2.el6_5.2 +libgcrypt 1.4.5 11.el6_4 +upstart 0.6.5 13.el6_5.3 +checkpolicy 2.0.22 1.el6 +procps 3.2.8 30.el6 +pth 2.0.7 9.3.el6 +libX11 1.6.0 2.2.el6 +less 436 13.el6 +libXdamage 1.1.3 4.el6 +file 5.04 21.el6 +cryptsetup-luks 1.2.0 11.el6 +libXfont 1.4.5 4.el6_6 +eggdbus 0.6 3.el6 +python-rhsm 1.12.5 2.el6 +hal-info 20090716 3.1.el6 +hwdata 0.233 11.1.el6 +diffutils 2.8.1 28.el6 +mesa-libGL 10.1.2 2.el6 +initscripts 9.03.46 1.el6_6.1 +which 2.19 6.el6 +xorg-x11-drv-vmware 13.0.1 9.el6 +cracklib-dicts 2.8.16 4.el6 +libdrm 2.4.52 4.el6 +logrotate 3.7.8 17.el6 +mingetty 1.08 5.el6 +unzip 6.0 2.el6_6 +e2fsprogs 1.41.12 21.el6 +fipscheck-lib 1.2.0 7.el6 +cyrus-sasl 2.1.23 15.el6_6.2 +dmidecode 2.12 5.el6_5 +libnl 1.1.4 2.el6 +chef 12.2.1 1.el6 +ql2400-firmware 7.03.00 1.el6_5 +gdbm 1.8.0 36.el6 +xorg-x11-server-Xorg 1.15.0 26.el6_6 +python-dateutil 1.4.1 6.el6 +openssh 5.3p1 104.el6_6.1 +dbus 1.2.24 8.el6_6 +perl-version 0.77 136.el6_6.1 +pygpgme 0.1 18.20090824bzr68.el6 +dracut-kernel 004 356.el6_6.2 +perl 5.10.1 136.el6_6.1 +rhnlib 2.5.22 15.el6 +nss-sysinit 3.18.0 5.3.el6_6 +pygobject2 2.20.0 5.el6 +selinux-policy 3.7.19 260.el6_6.3 +openssh-clients 5.3p1 104.el6_6.1 +ca-certificates 2015.2.4 65.0.1.el6_6 +device-mapper-event-libs 1.02.90 2.el6_6.3 +bind-utils 9.8.2 0.30.rc1.el6_6.3 +rpm-python 4.8.0 38.el6_6 +glibc-common 2.12 1.149.el6_6.9 +kernel-firmware 2.6.32 504.23.4.el6 +libssh2 1.4.2 1.el6_6.1 +openssl-devel 1.0.1e 30.el6_6.11 +nss-softokn 3.14.3 22.el6_6 +tree 1.5.3 2.el6 +virt-what 1.11 1.2.el6 +rpcbind 0.2.0 11.el6 +nfs-utils 1.2.3 54.el6 +autoconf 2.63 5.1.el6 +cloog-ppl 0.15.7 1.2.el6 +b43-openfwwf 5.2 4.el6 +iwl1000-firmware 39.31.5.1 1.el6 +libstdc++-devel 4.4.7 11.el6 +xz 4.999.9 0.5.beta.20091007git.el6 +acl 2.2.49 6.el6 +elfutils 0.158 3.2.el6 +ql2100-firmware 1.19.38 3.1.el6 +fakeroot 1.12.2 22.2.el6 +rt61pci-firmware 1.2 7.el6 +perl-IO-Compress-Base 2.021 136.el6_6.1 +ipw2100-firmware 1.3 11.el6 +gpg-pubkey fd431d51 4ae0493b +libcom_err-devel 1.41.12 21.el6 +kernel 2.6.32 504.12.2.el6 +filesystem 2.4.30 3.el6 +basesystem 10.0 4.el6 +time 1.7 37.1.el6 +cvs 1.11.23 16.el6 +pax 3.4 10.1.el6 +at 3.1.10 44.el6_6.2 +libgcc 4.4.7 11.el6 +libcap 2.16 5.5.el6 +ed 1.1 3.3.el6 +redhat-release-server 6Server 6.6.0.2.el6 +info 4.13a 8.el6 +popt 1.13 7.el6 +perl-Test-Harness 3.17 136.el6_6.1 +bash 4.1.2 29.el6 +libacl 2.2.49 6.el6 +perl-ExtUtils-MakeMaker 6.55 136.el6_6.1 +perl-Test-Simple 0.92 136.el6_6.1 +libcom_err 1.41.12 21.el6 +iotop 0.3.2 7.el6 +audit-libs 2.3.7 5.el6 +wemux 3.2.0 1.el6 +grep 2.6.3 6.el6 +libdnet 1.12 6.el6 +coreutils 8.4 37.el6 +libblkid 2.17.2 12.18.el6 +pcre 7.8 6.el6 +lua 5.1.4 4.1.el6 +mesa-dri-filesystem 10.1.2 2.el6 +cpio 2.10 12.el6_5 +libXau 1.0.6 4.el6 +p11-kit 0.18.5 2.el6_5.2 +glib2 2.28.8 4.el6 +grubby 7.0.15 7.el6 +expat 2.0.1 11.el6_2 +bzip2 1.0.5 7.el6_0 +openldap 2.4.39 8.el6 +libss 1.41.12 21.el6 +psmisc 22.6 19.el6_5 +sysvinit-tools 2.87 5.dsf.el6 +libstdc++ 4.4.7 11.el6 +libX11-common 1.6.0 2.2.el6 +pciutils-libs 3.1.10 4.el6 +libXfixes 5.0.1 2.1.el6 +gzip 1.3.12 22.el6 +libxslt 1.1.26 2.el6_3.1 +libXxf86vm 1.1.3 2.1.el6 +file-libs 5.04 21.el6 +libxkbfile 1.0.6 1.1.el6 +ethtool 3.5 5.el6 +gmp 4.3.1 7.el6_2.2 +cryptsetup-luks-libs 1.2.0 11.el6 +libnih 1.0.1 7.el6 +python-libs 2.6.6 52.el6 +libutempter 1.1.5 4.1.el6 +yum 3.2.29 60.el6 +vim-minimal 7.2.411 1.8.el6 +gnupg2 2.0.14 8.el6 +net-tools 1.60 110.el6_2 +redhat-support-lib-python 0.9.6 1.el6 +tar 1.23 11.el6 +mysql-libs 5.1.73 3.el6_5 +module-init-tools 3.9 24.el6 +pinentry 0.7.6 6.el6 +iptables 1.4.7 14.el6 +util-linux-ng 2.17.2 12.18.el6 +m4 1.4.13 5.el6 +udev 147 2.57.el6 +dash 0.5.5.1 4.el6 +rhn-client-tools 1.0.0.1 18.el6 +groff 1.18.1.4 21.el6 +cracklib 2.8.16 4.el6 +rhn-setup 1.0.0.1 18.el6 +redhat-logos 60.0.14 1.el6 +libpciaccess 0.13.3 0.1.el6 +plymouth 0.8.3 27.el6_5.1 +libcap-ng 0.6.4 3.el6_0.1 +rhn-check 1.0.0.1 18.el6 +bfa-firmware 3.2.23.0 2.el6 +redhat-support-tool 0.9.6 2.el6 +gpgme 1.1.8 3.el6 +authconfig 6.1.12 19.el6 +efibootmgr 0.5.4 12.el6 +sudo 1.8.6p3 15.el6 +fipscheck 1.2.0 7.el6 +cyrus-sasl-lib 2.1.23 15.el6_6.2 +audit 2.3.7 5.el6 +libsemanage 2.0.43 4.2.el6 +elfutils-libelf 0.158 3.2.el6 +gpg-pubkey 83ef826a 4a690bb4 +xorg-x11-drv-ati-firmware 7.3.99 2.el6 +newt 0.52.11 3.el6 +xorg-x11-server-common 1.15.0 26.el6_6 +ql2500-firmware 7.03.00 1.el6_5 +libffi 3.0.5 3.2.el6 +krb5-devel 1.10.3 37.el6_6 +shadow-utils 4.1.4.2 19.el6_6.1 +python-iniparse 0.3.1 2.1.el6 +newt-python 0.52.11 3.el6 +dbus-libs 1.2.24 8.el6_6 +python-lxml 2.2.3 1.1.el6 +python-ethtool 0.6 5.el6 +python-dmidecode 3.10.13 3.el6_4 +perl-Pod-Escapes 1.04 136.el6_6.1 +runit 2.1.2 1.el6 +perl-Module-Pluggable 3.90 136.el6_6.1 +python-pycurl 7.19.0 8.el6 +dracut 004 356.el6_6.2 +perl-Pod-Simple 3.13 136.el6_6.1 +pyOpenSSL 0.10 2.el6 +collectl 4.0.0 2.el6 +pkgconfig 0.23 9.1.el6 +nspr 4.10.8 1.el6_6 +libuser 0.56.13 5.el6 +dbus-python 0.83.0 6.1.el6 +nss 3.18.0 5.3.el6_6 +iproute 2.6.32 33.el6_6 +passwd 0.77 4.el6_2.2 +libedit 2.11 4.20080712cvs.1.el6 +yum-metadata-parser 1.1.2 16.el6 +selinux-policy-targeted 3.7.19 260.el6_6.3 +nss-tools 3.18.0 5.3.el6_6 +yum-rhn-plugin 0.9.1 52.3.el6_6 +kbd-misc 1.15 11.el6 +device-mapper-libs 1.02.90 2.el6_6.3 +rpm 4.8.0 38.el6_6 +device-mapper-event 1.02.90 2.el6_6.3 +bind-libs 9.8.2 0.30.rc1.el6_6.3 +lvm2 2.02.111 2.el6_6.3 +glibc 2.12 1.149.el6_6.9 +rsyslog 5.8.10 10.el6_6 +glibc-headers 2.12 1.149.el6_6.9 +system-config-firewall-base 1.2.27 7.2.el6_6 +usermode 1.102 3.el6 +glibc-static 2.12 1.149.el6_6.9 +nss-softokn-freebl 3.14.3 22.el6_6 +openssl 1.0.1e 30.el6_6.11 +db4-cxx 4.7.25 19.el6_6 +libcurl 7.19.7 40.el6_6.4 +kernel 2.6.32 504.23.4.el6 +dhclient 4.1.1 43.P1.el6_6.1 +db4-utils 4.7.25 19.el6_6 +kernel-devel 2.6.32 504.23.4.el6 +vim-common 7.2.411 1.8.el6 +cronie-anacron 1.4.4 12.el6 +vim-enhanced 7.2.411 1.8.el6 +crontabs 1.10 33.el6 +sysstat 9.0.4 27.el6 +libtirpc 0.2.1 10.el6 +keyutils 1.4 5.el6 +nfs-utils-lib 1.1.5 9.el6 +gnutls 2.8.5 14.el6_5 +rsyslog-relp 5.8.10 10.el6_6 +bison 2.4.1 5.el6 +iwl5150-firmware 8.24.2.2 1.el6 +ppl 0.10.2 11.el6 +iwl6050-firmware 41.28.5.1 2.el6 +libgomp 4.4.7 11.el6 +iwl6000g2a-firmware 17.168.5.3 1.el6 +cpp 4.4.7 11.el6 +iwl6000-firmware 9.221.4.1 1.el6 +gcc 4.4.7 11.el6 +gcc-c++ 4.4.7 11.el6 +patch 2.6 6.el6 +xz-lzma-compat 4.999.9 0.5.beta.20091007git.el6 +attr 2.4.44 7.el6 +elfutils-libs 0.158 3.2.el6 +iwl5000-firmware 8.83.5.1_1 1.el6_1.1 +ivtv-firmware 20080701 20.2 +fakeroot-libs 1.12.2 22.2.el6 +wget 1.12 5.el6_6.1 +atmel-firmware 1.3 7.el6 +rpmdevtools 7.5 2.el6 +iwl4965-firmware 228.61.2.24 2.1.el6 +iwl3945-firmware 15.32.2.9 4.el6 +perl-Compress-Raw-Zlib 2.021 136.el6_6.1 +rt73usb-firmware 1.8 7.el6 +perl-IO-Compress-Zlib 2.021 136.el6_6.1 +ql23xx-firmware 3.03.27 3.1.el6 +perl-Time-HiRes 1.9721 136.el6_6.1 +rootfiles 8.1 6.1.el6 +htop 1.0.1 2.el6 +gpg-pubkey 2fa658e0 45700c69 +zlib-devel 1.2.3 29.el6 +libsepol-devel 2.0.41 4.el6 +keyutils-libs-devel 1.4 5.el6 +ntpdate 4.2.6p5 3.el6_6 +freetype 2.3.11 15.el6_6.1 +libfontenc 1.0.5 2.el6 +xkeyboard-config 2.11 1.el6 +libXdmcp 1.1.1 3.el6 +ConsoleKit 0.4.1 3.el6 +pm-utils 1.2.5 11.el6 +hal 0.5.14 14.el6 +mesa-private-llvm 3.4 3.el6 +mesa-dri1-drivers 7.11 8.el6 +xorg-x11-drv-vmmouse 13.0.0 2.el6 +setup 2.8.14 20.el6_4.1 +kernel-devel 2.6.32 504.12.2.el6 +ncurses-base 5.7 3.20090208.el6 +gettext 0.17 18.el6 +ncurses-libs 5.7 3.20090208.el6 +bc 1.06.95 1.el6 +zlib 1.2.3 29.el6 +gdbm-devel 1.8.0 36.el6 +chkconfig 1.3.49.3 2.el6_4.1 +perl-devel 5.10.1 136.el6_6.1 +libselinux 2.0.94 5.8.el6 +tmux 1.6 3.el6 +sed 4.2.1 10.el6 +libicu 4.2.1 9.1.el6_2 +pam 1.1.1 20.el6 +readline 6.0 4.el6 +libuuid 2.17.2 12.18.el6 +gawk 3.1.7 10.el6 +pixman 0.32.4 4.el6 +libtasn1 2.3 6.el6_5 +libidn 1.18 2.el6 +shared-mime-info 0.70 6.el6 +findutils 4.4.2 6.el6 +e2fsprogs-libs 1.41.12 21.el6 +tcp_wrappers-libs 7.6 57.el6 +ConsoleKit-libs 0.4.1 3.el6 +device-mapper-persistent-data 0.3.2 1.el6 +libXext 1.3.2 2.1.el6 +plymouth-core-libs 0.8.3 27.el6_5.1 +xorg-x11-xkb-utils 7.7 4.el6 +keyutils-libs 1.4 5.el6 +libusb 0.1.12 23.el6 +hdparm 9.43 4.el6 +python 2.6.6 52.el6 +MAKEDEV 3.24 6.el6 +libxml2-python 2.7.6 17.el6_6.1 +polkit 0.96 7.el6 +binutils 2.20.51.0.2 5.42.el6 +system-setup-keyboard 0.7 4.el6 +make 3.81 20.el6 +mesa-dri-drivers 10.1.2 2.el6 +policycoreutils 2.0.83 19.47.el6_6.1 +ncurses 5.7 3.20090208.el6 +iptables-ipv6 1.4.7 14.el6 +postfix 2.6.6 6.el6_5 +grub 0.97 93.el6 +libgudev1 147 2.57.el6 +ustr 1.0.4 9.1.el6 +xz-libs 4.999.9 0.5.beta.20091007git.el6 +slang 2.2.1 1.el6 +krb5-libs 1.10.3 37.el6_6 +m2crypto 0.20.2 9.el6 +python-simplejson 2.0.9 3.1.el6 +kernel 2.6.32 504.16.2.el6 +kernel-devel 2.6.32 504.16.2.el6 +perl-libs 5.10.1 136.el6_6.1 +python-urlgrabber 3.9.1 9.el6 +tzdata 2015d 1.el6 +gamin 0.1.10 9.el6 +nss-util 3.18.0 1.el6_6 +openssh-server 5.3p1 104.el6_6.1 +dbus-glib 0.86 6.el6_4 +python-gudev 147.1 4.el6_0.1 +device-mapper 1.02.90 2.el6_6.3 +rpm-libs 4.8.0 38.el6_6 +lvm2-libs 2.02.111 2.el6_6.3 +iputils 20071127 17.el6_4.2 +python-devel 2.6.6 52.el6 +subscription-manager 1.12.14 9.el6_6 +glibc-devel 2.12 1.149.el6_6.9 +dhcp-common 4.1.1 43.P1.el6_6.1 +rhnsd 4.9.3 2.el6 +db4 4.7.25 19.el6_6 +db4-devel 4.7.25 19.el6_6 +curl 7.19.7 40.el6_6.4 +kbd 1.15 11.el6 +kernel-headers 2.6.32 504.23.4.el6 +gpm-libs 1.20.6 12.el6 +cronie 1.4.4 12.el6 +libgssglue 0.1 11.el6 +libevent 1.4.13 4.el6 +librelp 1.2.7 3.el6 +flex 2.5.35 9.el6 +iwl100-firmware 39.31.5.1 1.el6 +mpfr 2.4.1 6.el6 +aic94xx-firmware 30 2.el6 +gdb 7.2 75.el6 +rpm-build 4.8.0 38.el6_6 +libertas-usb8388-firmware 5.110.22.p23 3.1.el6 +man 1.6f 32.el6 +zd1211-firmware 1.4 4.el6 +gpg-pubkey 0608b895 4bd22942 +ql2200-firmware 2.02.08 3.1.el6 +perl-Compress-Zlib 2.021 136.el6_6.1 +ipw2200-firmware 3.1 4.el6 +nc 1.84 22.el6 +libselinux-devel 2.0.94 5.8.el6 diff --git a/spec/data/plugins/wmiproduct.output b/spec/data/plugins/wmiproduct.output new file mode 100644 index 00000000..c5b80e94 --- /dev/null +++ b/spec/data/plugins/wmiproduct.output @@ -0,0 +1,34 @@ +[#<WmiLite::Wmi::Instance:0x27a7a00 @wmi_ole_object=#<WIN32OLE:0x27a7a18>, @property_map={"assignmenttype"=>0, "capti +on"=>"NXLOG-CE", "description"=>"NXLOG-CE", "helplink"=>nil, "helptelephone"=>nil, "identifyingnumber"=>"{22FA28AB-3C1B- +438B-A8B5-E23892C8B567}", "installdate"=>"20150511", "installdate2"=>nil, "installlocation"=>nil, "installsource"=>"C:\\ +chef\\cache\\", "installstate"=>5, "language"=>"1033", "localpackage"=>"C:\\Windows\\Installer\\30884.msi", "name"=>"NXL +OG-CE", "packagecache"=>"C:\\Windows\\Installer\\30884.msi", "packagecode"=>"{EC3A13C4-4634-47FC-9662-DC293CB96F9F}", "p +ackagename"=>"nexlog-ce-2.8.1248.msi", "productid"=>nil, "regcompany"=>nil, "regowner"=>nil, "skunumber"=>nil, "transfor +ms"=>nil, "urlinfoabout"=>nil, "urlupdateinfo"=>nil, "vendor"=>"nxsec.com", "version"=>"2.8.1248", "wordcount"=>2}>, #<W +miLite::Wmi::Instance:0x27a4910 @wmi_ole_object=#<WIN32OLE:0x27a4928>, @property_map={"assignmenttype"=>1, "caption"=>"M +icrosoft .NET Framework 4.5.1 Multi-Targeting Pack", "description"=>"Microsoft .NET Framework 4.5.1 Multi-Targeting Pack +", "helplink"=>nil, "helptelephone"=>nil, "identifyingnumber"=>"{6A0C6700-EA93-372C-8871-DCCF13D160A4}", "installdate"=> +"20150512", "installdate2"=>nil, "installlocation"=>nil, "installsource"=>"C:\\ProgramData\\Package Cache\\{6A0C6700-EA9 +3-372C-8871-DCCF13D160A4}v4.5.50932\\packages\\netfx_451mtpack\\", "installstate"=>5, "language"=>"1033", "localpackage" +=>"C:\\Windows\\Installer\\4853a5.msi", "name"=>"Microsoft .NET Framework 4.5.1 Multi-Targeting Pack", "packagecache"=>" +C:\\Windows\\Installer\\4853a5.msi", "packagecode"=>"{D6098F6F-BA25-46AC-8358-CEBEA010E3BA}", "packagename"=>"netfx_451m +tpack.msi", "productid"=>nil, "regcompany"=>nil, "regowner"=>nil, "skunumber"=>nil, "transforms"=>nil, "urlinfoabout"=>n +il, "urlupdateinfo"=>nil, "vendor"=>"Microsoft Corporation", "version"=>"4.5.50932", "wordcount"=>2}>, #<WmiLite::Wmi::I +nstance:0x278e4d0 @wmi_ole_object=#<WIN32OLE:0x278e4e8>, @property_map={"assignmenttype"=>1, "caption"=>"Microsoft SQL S +erver Compact 4.0 SP1 x64 ENU", "description"=>"Microsoft SQL Server Compact 4.0 SP1 x64 ENU", "helplink"=>"http://go.mi +crosoft.com/fwlink/?LinkId=81488", "helptelephone"=>nil, "identifyingnumber"=>"{78909610-D229-459C-A936-25D92283D3FD}", +"installdate"=>"20150512", "installdate2"=>nil, "installlocation"=>"C:\\Program Files\\Microsoft SQL Server Compact Edit +ion\\", "installsource"=>"C:\\Program Files (x86)\\Microsoft SQL Server Compact Edition\\Installer\\", "installstate"=>5 +, "language"=>"1033", "localpackage"=>"C:\\Windows\\Installer\\4854fb.msi", "name"=>"Microsoft SQL Server Compact 4.0 SP +1 x64 ENU", "packagecache"=>"C:\\Windows\\Installer\\4854fb.msi", "packagecode"=>"{22846EBD-F1FF-4067-B118-A5D71D3E938B} +", "packagename"=>"SSCERuntime_x64-ENU.msi", "productid"=>nil, "regcompany"=>nil, "regowner"=>nil, "skunumber"=>nil, "tr +ansforms"=>nil, "urlinfoabout"=>nil, "urlupdateinfo"=>nil, "vendor"=>"Microsoft Corporation", "version"=>"4.0.8876.1", " +wordcount"=>2}>, #<WmiLite::Wmi::Instance:0x278c538 @wmi_ole_object=#<WIN32OLE:0x278c550>, @property_map={"assignmenttyp +e"=>1, "caption"=>"Strawberry Perl (64-bit)", "description"=>"Strawberry Perl (64-bit)", "helplink"=>"http://strawberryp +erl.com/support.html", "helptelephone"=>nil, "identifyingnumber"=>"{843B6A60-6CF3-1014-B3E5-B42EDCB56166}", "installdate +"=>"20150512", "installdate2"=>nil, "installlocation"=>"C:\\strawberry\\", "installsource"=>"C:\\Users\\ADMINI~1\\AppDat +a\\Local\\Temp\\2\\chocolatey\\StrawberryPerl\\", "installstate"=>5, "language"=>"1033", "localpackage"=>"C:\\Windows\\I +nstaller\\8bf25.msi", "name"=>"Strawberry Perl (64-bit)", "packagecache"=>"C:\\Windows\\Installer\\8bf25.msi", "packagec +ode"=>"{BA2AE79C-7A4B-47FD-A032-D8950297EEB2}", "packagename"=>"StrawberryPerlInstall.MSI", "productid"=>nil, "regcompan +y"=>nil, "regowner"=>nil, "skunumber"=>nil, "transforms"=>nil, "urlinfoabout"=>"http://strawberryperl.com/", "urlupdatei +nfo"=>nil, "vendor"=>"strawberryperl.com project", "version"=>"5.16.3001", "wordcount"=>2}>] diff --git a/spec/unit/plugins/packages_spec.rb b/spec/unit/plugins/packages_spec.rb new file mode 100644 index 00000000..a0e2292a --- /dev/null +++ b/spec/unit/plugins/packages_spec.rb @@ -0,0 +1,112 @@ +# Author:: Christopher M. Luciano (<cmlucian@us.ibm.com>) +# Copyright:: +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') + +describe Ohai::System, "plugin packages" do + + context "on debian" do + + let (:plugin) do + get_plugin("packages").tap do |plugin| + plugin[:platform_family] = 'debian' + end + end + + let(:stdout) do + File.read(File.join(SPEC_PLUGIN_PATH, 'dpkg-query.output')) + end + + before(:each) do + allow(plugin).to receive(:collect_os).and_return(:linux) + allow(plugin).to receive(:shell_out) + .with("dpkg-query -W") + .and_return(mock_shell_out(0, stdout, "")) + plugin.run + end + + it "calls dpkg query" do + expect(plugin).to receive(:shell_out) + .with("dpkg-query -W") + .and_return(mock_shell_out(0, stdout, "")) + plugin.run + end + + it "gets the packages and versions" do + expect(plugin[:packages]['vim-common'][:version]).to eq("2:7.4.052-1ubuntu3") + end + end + + context "on fedora" do + + let (:plugin) do + get_plugin("packages").tap do |plugin| + plugin[:platform_family] = 'fedora' + end + end + + let(:format) { Shellwords.escape '%{NAME}\t%{VERSION}\t%{RELEASE}\n' } + + let(:stdout) do + File.read(File.join(SPEC_PLUGIN_PATH, 'rpmquery.output')) + end + + before(:each) do + allow(plugin).to receive(:collect_os).and_return(:linux) + allow(plugin).to receive(:shell_out).with("rpm -qa --queryformat #{format}").and_return(mock_shell_out(0, stdout, "")) + plugin.run + end + + it "calls rpm -qa" do + expect(plugin).to receive(:shell_out) + .with("rpm -qa --queryformat #{format}") + .and_return(mock_shell_out(0, stdout, "")) + plugin.run + end + + it "gets the packages and versions/release" do + expect(plugin[:packages]['vim-common'][:version]).to eq("7.2.411") + expect(plugin[:packages]['vim-common'][:release]).to eq("1.8.el6") + end + end + + context "on windows" do + + require 'wmi-lite' + + let (:plugin) do + get_plugin("packages").tap do |plugin| + plugin[:platform_family] = 'windows' + end + end + + let(:w32_product) do + File.read(File.join(SPEC_PLUGIN_PATH, 'wmiproduct.output')) + end + + before(:each) do + allow(plugin).to receive(:collect_os).and_return(:windows) + plugin.run + end + + it "gets the packages and versions/release" do + expect(plugin[:packages]['chefdk-0.6.2-1.msi'][:version]).to eq("0.6.2.1") + end + + end + +end |