
Das Paketverwaltungssystem von Ubuntu macht das Installieren und Entfernen von Paketen extrem einfach. Manchmal ist es jedoch wichtig, herauszufinden, welche Version eines bestimmten Pakets Sie tatsächlich installiert haben.
Die apt-get-Dienstprogramme sind lediglich ein Frontend des dpkg-Dienstprogramms von debian, das die eigentliche Arbeit tatsächlich ausführt. Sie können dieses Dienstprogramm verwenden, um herauszufinden, welche Version installiert ist.
dpkg -s
Hier ein Beispiel, bei dem ich herausfinden wollte, welche Version von Ruby ich auf meinem System installiert hatte:
[email protected]:~$ dpkg -s ruby1.8
Package: ruby1.8 Status: install ok installed Priority: optional Section: interpreters Installed-Size: 272 Maintainer: Ubuntu Core Developers Architecture: i386 Version: 1.8.4-5ubuntu1.2 Depends: libc6 (>= 2.4-1), libruby1.8 (>= 1.8.4) Suggests: ruby1.8-examples, rdoc1.8, ri1.8 Description: Interpreter of object-oriented scripting language Ruby 1.8 Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in perl). It is simple, straight-forward, and extensible.. This package provides version 1.8 series of Ruby.. On Debian, Ruby 1.8 is provided as separate packages. You can get full Ruby 1.8 distribution by installing following packages.. ruby1.8 ruby1.8-dev ri1.8 rdoc1.8 irb1.8 ruby1.8-elisp ruby1.8-examples libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk-ruby1.8 libopenssl-ruby1.8 libreadline-ruby1.8 Original-Maintainer: akira yamada
Sie sehen, dass ich Version 1.8.4 installiert habe.