Big Fix on Ubuntu not recognizing a package is installed

I have a Fixlet that checks if osquery is install on our systems. On our Ubuntu systems, the relevance clause doesn’t seem to recognize the package is installed when it is indeed installed.

apt list --installed | grep osquery

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

osquery/unknown,now 5.1.0-1.linux amd64 [installed,upgradable to: 5.2.3-1.linux]

And then using QNA

Q: not (exists packages “osquery” whose(currently installed of it) of debianpackages)
A: True
T: 298800

Q: not (exists packages “osquery” of debianpackages)
A: False
T: 289951

Any ideas how to resolve?

this might help: Package of debianpackage

Thanks but it makes no difference.

Q: not (exists packages “osquery” whose(currently installed of it) of debianpackage)
A: True
T: 370018

Q: not (exists packages “osquery” whose(currently installed of it) of debianpackages)
A: True
T: 289996

I think what maybe missing is that ‘package’ is versioned, and for Debian/Ubuntu you should query for ‘base packages’

See the differences at https://developer.bigfix.com/relevance/reference/debianpackagecache.html

Thanks! That was the answer!