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 Pozri Čo verziu balíka je nainštalovaná 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. Systém pre správu balíkov v Ubuntu je to veľmi jednoduché inštalovať a odstraňovať balíky, ale niekedy je dôležité zistiť, akú verziu konkrétny balík, ktorý ste skutočne nainštalovali.

The apt-get utilities are simply a front-end to the debian dpkg utility, which actually does the real work. Apt-get utility sú len front-end pre debian dpkg utilita, ktorá vlastne nemá skutočnej práce. You can use this utility to figure out what version is installed. Môžete použiť tento nástroj zistiť, aká verzia je nainštalovaná.

dpkg -s <packagename> dpkg-s <názov_balíka>

Here's an example, where I was trying to figure out what version of Ruby I had installed on my system: Tu je príklad, kde som sa snažil prísť na to, akú verziu Ruby som mal nainštalovaný na svojom systéme:

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

Package: ruby1.8 Package: ruby1.8
Status: install ok installed Status: install ok installed
Priority: optional Priorita: voliteľný
Section: interpreters Sekcia: tlmočníci
Installed-Size: 272 Installed-Size: 272
Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com> Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
Architecture: i386 Architecture: i386
Version: 1.8.4-5ubuntu1.2 Verzia: 1.8.4-5ubuntu1.2
Depends: libc6 (>= 2.4-1), libruby1.8 (>= 1.8.4) Depends: libc6 (> = 2.4-1), libruby1.8 (> = 1.8.4)
Suggests: ruby1.8-examples, rdoc1.8, ri1.8 Navrhuje: ruby1.8-príklady, rdoc1.8, ri1.8
Description: Interpreter of object-oriented scripting language Ruby 1.8 Popis: Tlmočníčka objektovo-orientovaný skriptovací jazyk Ruby 1.8
Ruby is the interpreted scripting language for quick and easy Ruby je interpretovaný skriptovací jazyk pre rýchle a jednoduché
object-oriented programming. objektovo-orientované programovanie. It has many features to process text
files and to do system management tasks (as in perl). súborov a robiť správu systému (ako v Perle). It is simple, Je to jednoduché,
straight-forward, and extensible. rovno-dopredu a rozšíriteľný.
. .
This package provides version 1.8 series of Ruby. Tento balík obsahuje verziu 1.8 série Ruby.
. .
On Debian, Ruby 1.8 is provided as separate packages. V systéme Debian, Ruby 1.8 sa dodáva ako samostatné balíky. You can get Môžete získať
full Ruby 1.8 distribution by installing following packages. plný Ruby 1.8 distribúcie inštaláciou týchto balíčkov.
. .
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-príklady libdbm-ruby1.8 libgdbm-ruby1.8 libtcltk-ruby1.8
libopenssl-ruby1.8 libreadline-ruby1.8 libopenssl-ruby1.8 readline and history libraries-ruby1.8
Original-Maintainer: akira yamada <akira@debian.org> Original-Maintainer: Akira Yamada <akira@debian.org>

You can see that I've got version 1.8.4 installed. Môžete vidieť, že mám nainštalované verziu 1.8.4.

This article was originally written on 12/16/06 Tagged with: Tento článok bol pôvodne napísaný na 12/16/06 Tagged s: Adding Software Pridanie Software , , Ubuntu Ubuntu , , Ubuntu Tips & Tweaks Ubuntu Tipy & Tweak

Daily Email Updates Denný Svářeč

You can get our how-to articles in your inbox each day for free. Môžete si naše jak-na články vo vašej schránky každý deň zadarmo. Just enter your name and email below: Stačí zadať svoje meno a e-mail nižšie:


Name: Meno:
Email: E-mail:

Comments (4) Komentáre (4)

  1. amir amir

    apt-show-versions is a gem of a tool apt-show-versions je skvostom nástroje
    (you need to sudo apt-get install apt-show-versions) (musíte sudo apt-get install apt-show-versions)

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

    lists all available versions on the apt repository servers (aswell as the installed version, if there is one) zoznam všetkých dostupných verzií na apt úložisko servery (rovnako ako nainštalovanú verziu, ak je nejaký)

    This is occasionally very useful To je občas veľmi užitočné

  2. amir amir

    The previous comment was supposed to show the example as: Predchádzajúci príspevok mal ukázať ako príklad:

    apt-show-versions -a <packagename> apt-show-versions-<názov_balíka>

    I hope that works better!! Dúfam, že funguje lepšie! Wot no preview?! Wot bez náhľadu?!

  3. amir amir

    that's better. že je to lepšie. Here's what the output looks like Tu je to, čo vyzerá ako výstup

    amir@amir-desktop:~$ Amir Amir @-desktop: ~ $ apt-show-versions -a ruby apt-show-versions-ruby
    ruby 1.8.2-1 install ok installed ruby 1.8.2-1 install ok installed
    No stable version No stabilná verzia
    ruby 1.8.2-1 dapper ruby 1.8.2-1 sarge
    ruby/dapper uptodate 1.8.2-1 ruby / sarge 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 tiež dobrá voľba, najmä ak nepoznáte presný názov balíka

    :~$ dpkg -l : ~ $ Dpkg-l
    or in combination with grep alebo v kombinácii s grep
    :~$ dpkg -l | grep ruby : ~ $ Dpkg-l | grep ruby
    or if you expecting a lot of matches alebo ak sa očakáva veľa zápasov
    :~$ dpkg -l | grep lib | less : ~ $ Dpkg-l | grep lib | less

    you can also use regular expression patterns with grep Môžete tiež použiť regulárny výraz vzory s grep


Leave a Comment Zanechať komentár




Leave your Zanechajte svoj friendly priateľský comment here. komentár tu.

If you have a computer help question, Ak máte počítač pomôže otázku, click here to leave it on the forums kliknite tu nechať to na fórach instead. miesto.

Note: Your comment may not show up immediately on the site. Poznámka: Váš komentár sa nezobrazia okamžite na mieste.

Our Friends Naši priatelia
Getting Started Začíname


About How-To Geek O tom, ako-To Geek
What Is That Process? Čo je to za 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.