User Tools

Site Tools


ubuntu:dpkg:check_if_a_package_is_installed_or_not

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu:dpkg:check_if_a_package_is_installed_or_not [2023/06/18 14:44] – created peterubuntu: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
 +</code>
 +
 +----
 +
 +===== Example =====
 +
 +<code bash>
 +dpkg -s lsof | grep Status
 +</code>
 +
 +returns:
 +
 +<code bash>
 +Status: install ok installed
 +</code>
  
ubuntu/dpkg/check_if_a_package_is_installed_or_not.1687099465.txt.gz · Last modified: 2023/06/18 14:44 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki