1 package Ocsinventory::Agent::Backend::OS::Generic::Packaging::Deb;
6 sub check { can_run("dpkg") }
10 my $common = $params->{common};
12 # use dpkg-query --show --showformat='${Package}|||${Version}\n'
13 foreach(`dpkg-query --show --showformat='\${Status}---\${Package}---\${Version}---\${Installed-Size}---\${Description}\n' | grep ^'install ok installed'`) {
14 if (/^(\S+)---(\S+)---(\S+)---(\S+)---(.*)/) {
15 $common->addSoftware ({