ubuntu:dpkg:check_if_a_package_is_installed_or_not
Differences
This shows you the differences between two versions of the page.
ubuntu:dpkg:check_if_a_package_is_installed_or_not [2023/06/18 14:44] – created peter | ubuntu:dpkg:check_if_a_package_is_installed_or_not [2023/06/18 14:45] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - dpkg - Check if a package is installed or not ====== | ====== Ubuntu - dpkg - Check if a package is installed or not ====== | ||
+ | |||
+ | <code bash> | ||
+ | sudo dpkg -s [package name] | ||
+ | |||
+ | or | ||
+ | |||
+ | sudo dpkg -s [package name] | grep Status | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | <code bash> | ||
+ | dpkg -s lsof | grep Status | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | Status: install ok installed | ||
+ | </ | ||
ubuntu/dpkg/check_if_a_package_is_installed_or_not.1687099465.txt.gz · Last modified: 2023/06/18 14:44 by peter