Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

See What Version of a Package Is Installed on Ubuntu Skatīt Kāda versija paketi ir instalēts 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. Iepakojuma apsaimniekošanas sistēma Ubuntu padara to ļoti vienkārši uzstādīt un noņemt komplektus, tomēr dažreiz tas ir svarīgi, lai saprastu, kādi versiju konkrētajam kompleksajam pakalpojumam, ka Jums tiešām ir uzstādīts.

The apt-get utilities are simply a front-end to the debian dpkg utility, which actually does the real work. Apt-get komunālie vienkārši front-end to debian dpkg lietderība, kas faktiski nav reālu darbu. You can use this utility to figure out what version is installed. Jūs varat izmantot šo lietderību skaitlis, ko versija ir instalēta.

dpkg -s <packagename> dpkg-s <packagename>

Here's an example, where I was trying to figure out what version of Ruby I had installed on my system: Lūk, piemēram, kur es centos izdomāt, ko versija Ruby man bija uzstādīta uz mana sistēma:

geek@ubuntuServ:~$ dpkg -s ruby1.8 geek @ ubuntuServ: ~ $ dpkg-s ruby1.8

Package: ruby1.8 Iepakojums: ruby1.8
Status: install ok installed Status: install ok uzstādīta
Priority: optional Prioritāte: pēc izvēles
Section: interpreters Sadaļa: tulki
Installed-Size: 272 Installed-Izmērs: 272
Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com> Uzturētājs: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
Architecture: i386 Architecture: i386
Version: 1.8.4-5ubuntu1.2 Versija: 1.8.4-5ubuntu1.2
Depends: libc6 (>= 2.4-1), libruby1.8 (>= 1.8.4) Ir atkarīga no: libc6 (> = 2,4-1), libruby1.8 (> = 1.8.4)
Suggests: ruby1.8-examples, rdoc1.8, ri1.8 Iesaka: ruby1.8-piemēri, rdoc1.8, ri1.8
Description: Interpreter of object-oriented scripting language Ruby 1.8 Apraksts: Tulks objekta orientētu skriptu valoda Ruby 1,8
Ruby is the interpreted scripting language for quick and easy Rubīns ir jāinterpretē skriptēšanas valodu ātri un vienkārši
object-oriented programming. Objektorientētā programmēšana. It has many features to process text Tas ir daudz līdzekļu, lai apstrādātu teksts
files and to do system management tasks (as in perl). failus un veikt sistēmas pārvaldības uzdevumus (kā perl). It is simple, Tas ir vienkārši,
straight-forward, and extensible. taisni uz priekšu, un paplašināms.
. .
This package provides version 1.8 series of Ruby. Šī pakete paredz, versija 1.8 sērija Ruby.
. .
On Debian, Ruby 1.8 is provided as separate packages. Uz Debian, Ruby 1.8 ir paredzēts kā atsevišķs paketes. You can get Jūs varat
full Ruby 1.8 distribution by installing following packages. pilna Ruby 1,8 izplatīšana, uzstādot šādus komplektus.
. .
ruby1.8 ruby1.8-dev ri1.8 rdoc1.8 irb1.8 ruby1.8-elisp 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 ruby1.8-piemēri libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk-ruby1.8
libopenssl-ruby1.8 libreadline-ruby1.8 libopenssl-ruby1.8 libreadline-ruby1.8
Original-Maintainer: akira yamada <akira@debian.org> Original-Uzturētājs: Akira Yamada <akira@debian.org>

You can see that I've got version 1.8.4 installed. Jūs varat redzēt, ka man version 1.8.4 uzstādīta.

This article was originally written on 12/16/06 Tagged with: Šis pants tika sākotnēji rakstīts uz 12/16/06 tagged with: Adding Software Ievietošanas Software , , Ubuntu Ubuntu , , Ubuntu Tips & Tweaks Ubuntu Tips & Tweaks

Daily Email Updates Daily Email Updates

You can get our how-to articles in your inbox each day for free. Jūs varat saņemt mūsu how-to rakstus savā pastkastītē katru dienu par brīvu. Just enter your name and email below: Vienkārši ievadiet jūsu vārdu un e-pasta zemāk:


Name: Vārds:
Email: E-pasts:

Comments (4) Komentāri (4)

  1. amir Amir

    apt-show-versions is a gem of a tool apt-show-versijām ir gem of instruments
    (you need to sudo apt-get install apt-show-versions) (jums nepieciešams sudo apt-get install apt-show-versijas)

    apt-show-versions -a apt-show-versijas -

    lists all available versions on the apt repository servers (aswell as the installed version, if there is one) uzskaita visus pieejamos versijas APT repozitoriju serveri (kā arī uzstādītas versiju, ja tāds ir)

    This is occasionally very useful Tas ir reizēm ļoti noderīgi

  2. amir Amir

    The previous comment was supposed to show the example as: Iepriekšējais komentārs bija paredzēts parādīt piemēru kā:

    apt-show-versions -a <packagename> apt-show-versijas-<packagename>

    I hope that works better!! Es ceru, ka darbojas labāk! Wot no preview?! Wot no priekšskatījumu?!

  3. amir Amir

    that's better. that's better. Here's what the output looks like Lūk, ko produkcijas ārējais izskats

    amir@amir-desktop:~$ amir @ Amir-desktop: ~ $ apt-show-versions -a ruby apt-show-versijas-ruby
    ruby 1.8.2-1 install ok installed Ruby 1.8.2-1 install ok uzstādīta
    No stable version Nav stabila versija
    ruby 1.8.2-1 dapper Ruby 1.8.2-1 kustīgs
    ruby/dapper uptodate 1.8.2-1 ruby / kustīgs uptodate 1.8.2-1

  4. lonny27 lonny27

    dpkg is also a good option, especially if you don't know the exact package name dpkg arī ir laba izvēle, it īpaši, ja Jūs nezināt precīzu Pakotnes nosaukums

    :~$ dpkg -l : ~ $ Dpkg-l
    or in combination with grep vai kopā ar grep
    :~$ dpkg -l | grep ruby : ~ $ Dpkg-l | grep ruby
    or if you expecting a lot of matches vai Jūs gaida daudz spēļu
    :~$ dpkg -l | grep lib | less : ~ $ Dpkg-l | grep lib | mazāks

    you can also use regular expression patterns with grep Jūs varat izmantot arī regulāra izteiksme modeļus ar grep


Our Friends Our Friends
Getting Started Getting Started


About How-To Geek Par How-To Geek
What Is That Process? Kas ir šis process?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.