Advertisement
Tritonio

See What Version of a Package Is Installed on Ubuntu

Mar 15th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. The package management system on Ubuntu makes it extremely simple to install and remove packages, but sometimes it’s important to figure out what version of a particular package that you actually have installed.
  2.  
  3. The apt-get utilities are simply a front-end to the debian dpkg utility, which actually does the real work. You can use this utility to figure out what version is installed.
  4.  
  5. dpkg -s <packagename>
  6.  
  7. Here’s an example, where I was trying to figure out what version of Ruby I had installed on my system:
  8.  
  9. geek@ubuntuServ:~$ dpkg -s ruby1.8
  10.  
  11. Package: ruby1.8
  12. Status: install ok installed
  13. Priority: optional
  14. Section: interpreters
  15. Installed-Size: 272
  16. Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
  17. Architecture: i386
  18. Version: 1.8.4-5ubuntu1.2
  19. Depends: libc6 (>= 2.4-1), libruby1.8 (>= 1.8.4)
  20. Suggests: ruby1.8-examples, rdoc1.8, ri1.8
  21. Description: Interpreter of object-oriented scripting language Ruby 1.8
  22. Ruby is the interpreted scripting language for quick and easy
  23. object-oriented programming. It has many features to process text
  24. files and to do system management tasks (as in perl). It is simple,
  25. straight-forward, and extensible.
  26. .
  27. This package provides version 1.8 series of Ruby.
  28. .
  29. On Debian, Ruby 1.8 is provided as separate packages. You can get
  30. full Ruby 1.8 distribution by installing following packages.
  31. .
  32. ruby1.8 ruby1.8-dev ri1.8 rdoc1.8 irb1.8 ruby1.8-elisp
  33. ruby1.8-examples libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk-ruby1.8
  34. libopenssl-ruby1.8 libreadline-ruby1.8
  35. Original-Maintainer: akira yamada <akira@debian.org>
  36.  
  37. You can see that I’ve got version 1.8.4 installed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement