For Linux systems using APT, such as, Ubuntu Linux, we can use the utilities that comes with APT, for instance, use dpkg-query, as pointed out in this post. In addition, this post gives a few more elaborated queries.
Here are a few examples.
-
To query if a package is installed, i.e, to report status of specified package,
$ dpkg-query -s gnome-shell dpkg-query: package 'gnome-shell' is not installed and no information is available ......
$ dpkg -s gnome-session-flashback Package: gnome-session-flashback Status: install ok installed ......
-
To List packages matching given pattern,
$ dpkg-query -l gnome-shell Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= un gnome-shell <none> <none> (no description available)
$ dpkg-query -l gnome-session-flashback Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii gnome-session- 1:3.8.0-1ubu all GNOME Session Manager - GNOME Fla
$ dpkg-query -l gnome* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= un gnome <none> <none> (no description available) ii gnome-accessib 3.10.0-1ubun all Accessibility themes for the GNOM ii gnome-applets 3.5.92-0ubun i386 Various applets for the GNOME pan ......
Thanks for sharing & Its Great information. And Look on right now!
ReplyDeleteCan help you BlogSpot Blog, Sbcglobal email not working on iPhone/Mac/Phone, and Sbcglobal.net not sending and receiving emails| How to Reset My Spotify Password? How to Recover My Spotify Password?