Can I know the status of a package using apt
-cache or apt
-get or etc? I mean can I know whether a package is installed in the machine or not using apt
I know that, when I try to install a package using:
it outputs that the package is already installed, if it is so.
But, I want to search for a package and know whether it is previously installed or not.
Do I have to use tools other that apt for this?
Thanks and regards