Use "dpkg-query" to find whether package is installed