Check if a program (ex: Chrome) is installed

This command works in systems running apt . With dpkg you can list all packages installed and the output is filtered with grep.

 bash | 
 
 copy code |
?

1
2

 bash | 
 
 copy code |
?

1
dpkg −l | grep chrome