Find if a package is installed
Solution 1:
Use dpkg:
dpkg -s emacs
there is also dpkg-query
which allows you to use wildcards in your search:
dpkg-query -l '*emacs*'
Use dpkg:
dpkg -s emacs
there is also dpkg-query
which allows you to use wildcards in your search:
dpkg-query -l '*emacs*'