I want to find out if a program - Chromium for example - is installed on Ubuntu or not. Manually or as a package.
How do I know if a program is installed via command line?
And there's always
It's obviously a fuzzier search but handy if you're not sure which package you're looking for.
For manually installed things...
A bit harder but if they're on the current path, you could just run them. That's a bit of mission so I'd rather just run:
Which is better?
That depends on the sanity of user. There's nothing to stop somebody installing something called
But assuming the owner is sane - packages should be good enough for most people.
You can make use of "dpkg" command. Refer this link http://ssatish.wordpress.com/2012/12/31/ubuntu-how-to-check-if-a-software-is-installed/
e,g, Chromium, Run in terminal
To check whether a package is install also
You will get like this if it is installed:
To listing all installed packages, just use
Use Ubuntu Software Center type
If you see the green icon like this:
That means it is installed :)
For a graphical view, open the
You may want to click the
If you want a command line solution, then
Well, if you really want anything that is installed, your best bet would be to try to run it. Maybe you can get away with searching for the starter file in all $PATH directories, but if someone installs something in /opt for example, this won't work.