On Ubuntu, you can use dpkg
the command to verify that a package is installed.
-
Open a terminal.
-
Enter the following command:
dpkg -s <软件包名>
For example, if you want to verify
vim
that is installed, you can enter:dpkg -s vim
-
Press the Enter key to run the command.
-
If the software package has been installed, you will see detailed information about the software package, including version number, etc. Here is an example of querying vim. The screenshot is as follows:
If the package is not installed, you will see an error message, as shown in the screenshot below:
This way you can verify whether a specific package is installed on Ubuntu, give it a try.