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 Glejte Kaj je različica paketa nameščen na 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. Sistem vodenja paketa na Ubuntu je izjemno enostavno namestiti in odstraniti pakete, včasih pa je pomembno, da ugotovimo, kaj posebno različico paketa, ki ga dejansko imajo nameščen.

The apt-get utilities are simply a front-end to the debian dpkg utility, which actually does the real work. Apt-get utilities so le sprednji konec debian korist dpkg, ki dejansko ni pravo delo. You can use this utility to figure out what version is installed. Lahko uporabite ta pripomoček da ugotovimo, kaj različica je nameščena.

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

Here's an example, where I was trying to figure out what version of Ruby I had installed on my system: Tukaj je primer, ko sem poskušal ugotoviti, kaj različico Ruby sem imel umestiti na svoj sistem:

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

Package: ruby1.8 Paket: ruby1.8
Status: install ok installed Status: namestite ok nameščen
Priority: optional Prednostna naloga: poljubno
Section: interpreters Oddelek: tolmači
Installed-Size: 272 Installed-Size: 272
Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com> Vzdrževalec: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
Architecture: i386 Architecture: i386
Version: 1.8.4-5ubuntu1.2 Version: 1.8.4-5ubuntu1.2
Depends: libc6 (>= 2.4-1), libruby1.8 (>= 1.8.4) Odvisno: libc6 (> = 2.4-1), libruby1.8 (> = 1.8.4)
Suggests: ruby1.8-examples, rdoc1.8, ri1.8 Predlaga: ruby1.8-primeri, rdoc1.8, ri1.8
Description: Interpreter of object-oriented scripting language Ruby 1.8 Opis: Interpreter predmeta usmerjenih skriptni jezik Ruby 1,8
Ruby is the interpreted scripting language for quick and easy Ruby je razlagati skriptni jezik za hitro in enostavno
object-oriented programming. Objektno usmerjeno programiranje. It has many features to process text Ima veliko funkcij za obdelavo besedila
files and to do system management tasks (as in perl). datotek in storiti nalog sistema za upravljanje (kot v perl). It is simple, To je preprosto,
straight-forward, and extensible. naravnost naprej in razširiti.
. .
This package provides version 1.8 series of Ruby. Ta paket vsebuje različica 1,8 vrsto Ruby.
. .
On Debian, Ruby 1.8 is provided as separate packages. Na Debian, je Ruby 1,8 pod pogojem, kot ločene pakete. You can get Lahko dobite
full Ruby 1.8 distribution by installing following packages. polno Ruby 1,8 distribucijo z namestitvijo po paketov.
. .
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-primeri 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-vzdrževalec: Akira Yamada <akira@debian.org>

You can see that I've got version 1.8.4 installed. Vidite lahko, da imam različico 1.8.4 nameščena.

This article was originally written on 12/16/06 Tagged with: Ta članek je bil prvotno napisan na 12/16/06 Tagged with: Adding Software Dodajanje Software , , Ubuntu Ubuntu , , Ubuntu Tips & Tweaks Ubuntu Nasveti in Tweaks

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (4) Komentarji (4)

  1. amir Amir

    apt-show-versions is a gem of a tool apt-show-različice je dragulj orodje
    (you need to sudo apt-get install apt-show-versions) (morate sudo apt-get install apt-show-različice)

    apt-show-versions -a apt-show-različice -

    lists all available versions on the apt repository servers (aswell as the installed version, if there is one) Seznami vse različice so na voljo na strežnikih apt odlagališče (kot tudi nameščeno različico, če ta obstaja)

    This is occasionally very useful To je včasih zelo koristno

  2. amir Amir

    The previous comment was supposed to show the example as: Prejšnji komentar je bil pokazati, da naj bi na primer kot:

    apt-show-versions -a <packagename> apt-show-različice-<ime_paketa>

    I hope that works better!! Upam, da deluje bolje! Wot no preview?! Wot no predogled?!

  3. amir Amir

    that's better. to je bolje. Here's what the output looks like Here's what izhod izgleda

    amir@amir-desktop:~$ Amir @ amir-desktop: ~ $ apt-show-versions -a ruby apt-show-različice-rubinasto
    ruby 1.8.2-1 install ok installed ruby 1.8.2-1 namestite ok nameščen
    No stable version No stabilna različica
    ruby 1.8.2-1 dapper ruby 1.8.2-1 Dotjeran
    ruby/dapper uptodate 1.8.2-1 ruby / Dotjeran 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 je tudi dobra izbira, še posebej, če ne veste točno ime paketa

    :~$ dpkg -l : ~ $ Dpkg-l
    or in combination with grep ali v kombinaciji z grep
    :~$ dpkg -l | grep ruby : ~ $ Dpkg-l | grep ruby
    or if you expecting a lot of matches ali če ste pričakovali veliko zadetkov
    :~$ dpkg -l | grep lib | less : ~ $ Dpkg-l | grep lib | manj

    you can also use regular expression patterns with grep lahko uporabite tudi regularni izraz vzorcev z grep


Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
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.