Pkg::PkgInstalled — returns 'true' if the package is installed in the system
boolean PkgInstalled (
)
package
name of the package
Pkg::PkgInstalled("glibc") -> true