ubuntu查看软件包版本_查看Ubuntu上安装了什么版本的软件包

ubuntu查看软件包版本

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.

Ubuntu上的软件包管理系统使安装和删除软件包变得极为简单,但是有时弄清楚您实际安装了哪个版本的特定软件包很重要。

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.

apt-get实用程序只是debian dpkg实用程序的前端,它实际上完成了实际工作。 您可以使用此实用工具来确定已安装的版本。

dpkg -s <packagename>

dpkg -s <软件包名称>

Here’s an example, where I was trying to figure out what version of Ruby I had installed on my system:

这是一个示例,我试图找出系统上安装了哪个版本的Ruby:

[email protected]:~$ dpkg -s ruby1.8

geek @ ubuntuServ:〜$ dpkg -s ruby​​1.8

Package: ruby1.8Status: install ok installedPriority: optionalSection: interpretersInstalled-Size: 272Maintainer: Ubuntu Core Developers <[email protected]>Architecture: i386Version: 1.8.4-5ubuntu1.2Depends: libc6 (>= 2.4-1), libruby1.8 (>= 1.8.4)Suggests: ruby1.8-examples, rdoc1.8, ri1.8Description: Interpreter of object-oriented scripting language Ruby 1.8Ruby is the interpreted scripting language for quick and easyobject-oriented programming. It has many features to process textfiles 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 getfull Ruby 1.8 distribution by installing following packages..ruby1.8 ruby1.8-dev ri1.8 rdoc1.8 irb1.8 ruby1.8-elispruby1.8-examples libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk-ruby1.8libopenssl-ruby1.8 libreadline-ruby1.8Original-Maintainer: akira yamada <[email protected]>

软件包:ruby1.8状态:安装ok已安装优先级:可选部分:解释器已安装大小:272维护器:Ubuntu Core Developers <[email protected]>体系结构:i386版本:1.8.4-5ubuntu1.2取决于:libc6(> = 2.4- 1),libruby1.8(> = 1.8.4)建议:ruby1.8-examples,rdoc1.8,ri1.8描述:面向对象脚本语言的解释器Ruby 1.8Ruby是用于快速,轻松地面向对象的解释性脚本语言编程。 它具有许多功能来处理文本文件和执行系统管理任务(如perl中一样)。 它简单,直接且可扩展。.该软件包提供Ruby的1.8系列。.在Debian上,Ruby 1.8作为单独的软件包提供。 您可以通过安装以下软件包来获得完整的Ruby 1.8发行版。.ruby1.8ruby1.8-dev ri1.8 rdoc1.8 irb1.8 ruby​​1.8-elispruby1.8-examples libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk- ruby1.8libopenssl-ruby1.8 libreadline-ruby1.8原始维护者:akira yamada <[email protected]>

You can see that I’ve got version 1.8.4 installed.

您可以看到我已经安装了1.8.4版本。

翻译自: https://www.howtogeek.com/howto/ubuntu/see-what-version-of-a-package-is-installed-on-ubuntu/

ubuntu查看软件包版本

相关文章: