Monday, March 31, 2014

Check if a package is installed in Ubuntu

Here is an example to check if package vino is installed

$ dpkg -s vino
Package: vino
Status: install ok installed
Priority: optional
Section: gnome
Installed-Size: 564
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 3.4.2-0ubuntu1.3
Depends: libappindicator3-1 (>= 0.2.92), libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libavahi-glib1 (>= 0.6.16), libc6 (>= 2.15), libcairo2 (>= 1.10.0), libdbus-glib-1-2 (>= 0.78), libgcrypt11 (>= 1.4.5), libglib2.0-0 (>= 2.31.8), libgnome-keyring0 (>= 2.20.3), libgnutls26 (>= 2.12.6.1-0), libgtk-3-0 (>= 3.0.0), libice6 (>= 1:1.0.0), libjpeg8 (>= 8c), libminiupnpc8 (>= 1.6), libnotify4 (>= 0.7.0), libsm6, libsoup2.4-1 (>= 2.24.0), libtelepathy-glib0 (>= 0.11.13), libx11-6, libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxtst6, zlib1g (>= 1:1.1.4), dconf-gsettings-backend | gsettings-backend
Recommends: gvfs
Suggests: vinagre, gnome-user-guide
Breaks: gnome-session-bin (<< 3.0)
Conffiles:
 /etc/xdg/autostart/vino-server.desktop 1fb907503747b28761bd76f597983a24
Description: VNC server for GNOME
 VNC is a protocol that allows remote display of a user's desktop. This
 package provides a VNC server that integrates with GNOME, allowing you
 to export your running desktop to another computer for remote use or
 diagnosis.
Homepage: http://live.gnome.org/Vino
Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>

$ dpkg-query -l vino
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        Description
+++-==============-==============-============================================
ii  vino           3.4.2-0ubuntu1 VNC server for GNOME

No comments:

Post a Comment