Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3557

Beginners Questions • Check whether a package is installed

$
0
0
You can use dpkg-query without grep quite efficiently:

Code:

$ time dpkg-query -Wf '${db:Status-Status}' aptinstalledreal0m0.030suser0m0.023ssys0m0.007s

Statistics: Posted by lindi — 2024-05-31 22:37 — Replies 10 — Views 299



Viewing all articles
Browse latest Browse all 3557

Trending Articles