Check if a package is installed on a Debian system