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 Lihat Apa Versi dari Paket Apakah Dipasang pada 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 manajemen paket pada Ubuntu membuatnya sangat mudah untuk menginstal dan menghapus paket, tapi kadang-kadang sangat penting untuk mengetahui versi paket tertentu bahwa Anda benar-benar telah terinstal.

The apt-get utilities are simply a front-end to the debian dpkg utility, which actually does the real work. The apt-get utilitas hanyalah sebuah front-end ke debian dpkg utilitas, yang sebenarnya pekerjaan yang sesungguhnya. You can use this utility to figure out what version is installed. Anda dapat menggunakan utilitas ini untuk mencari tahu versi apa yang diinstal.

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: Berikut ini adalah contoh, di mana saya mencoba untuk mencari tahu apa versi Ruby saya telah terinstal di sistem saya:

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

Package: ruby1.8 Paket: ruby1.8
Status: install ok installed Status: install ok diinstal
Priority: optional Prioritas: opsional
Section: interpreters Bagian: juru bahasa
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 Arsitektur: i386
Version: 1.8.4-5ubuntu1.2 Version: 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 Menunjukkan: ruby1.8-contoh, rdoc1.8, ri1.8
Description: Interpreter of object-oriented scripting language Ruby 1.8 Keterangan: Interpreter berorientasi obyek bahasa script Ruby 1.8
Ruby is the interpreted scripting language for quick and easy Ruby adalah bahasa scripting yang ditafsirkan untuk cepat dan mudah
object-oriented programming. pemrograman berorientasi obyek. It has many features to process text Ini memiliki banyak fitur untuk memproses teks
files and to do system management tasks (as in perl). file dan sistem manajemen untuk melakukan tugas (seperti dalam perl). It is simple, Hal ini sederhana,
straight-forward, and extensible. lurus ke depan, dan extensible.
. .
This package provides version 1.8 series of Ruby. Paket ini menyediakan serangkaian 1,8 versi Ruby.
. .
On Debian, Ruby 1.8 is provided as separate packages. Debian, Ruby 1.8 yang disediakan sebagai paket terpisah. You can get Anda dapat memperoleh
full Ruby 1.8 distribution by installing following packages. Ruby 1.8 distribusi penuh dengan menginstal paket berikut.
. .
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-contoh 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-Maintainer: akira Yamada <akira@debian.org>

You can see that I've got version 1.8.4 installed. Anda dapat melihat bahwa saya punya versi 1.8.4 diinstal.

This article was originally written on 12/16/06 Tagged with: Artikel ini awalnya ditulis pada 12/16/06 Tagged with: Adding Software Menambahkan Software , , Ubuntu Ubuntu , , Ubuntu Tips & Tweaks Ubuntu Tips & Tweaks

Daily Email Updates Harian Email Pembaharuan

You can get our how-to articles in your inbox each day for free. Anda bisa mendapatkan kita bagaimana-untuk artikel dalam kotak masuk Anda setiap hari secara gratis. Just enter your name and email below: Cukup masukkan nama dan email Anda di bawah ini:


Name: Nama:
Email: Email:

Comments (4) Komentar (4)

  1. amir amir

    apt-show-versions is a gem of a tool apt-show-versi adalah sebuah permata dari sebuah alat
    (you need to sudo apt-get install apt-show-versions) (Anda harus sudo apt-get install apt-show-versi)

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

    lists all available versions on the apt repository servers (aswell as the installed version, if there is one) daftar semua versi yang tersedia di server repositori apt (dan juga versi yang terinstal, jika ada satu)

    This is occasionally very useful Ini kadang-kadang sangat berguna

  2. amir amir

    The previous comment was supposed to show the example as: Komentar sebelumnya seharusnya menunjukkan contoh sebagai:

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

    I hope that works better!! Saya berharap bahwa bekerja lebih baik!! Wot no preview?! Wot tidak pratinjau?!

  3. amir amir

    that's better. itu lebih baik. Here's what the output looks like Inilah yang output seperti

    amir@amir-desktop:~$ amir @ amir-desktop: ~ $ apt-show-versions -a ruby apt-show-versi-rubi
    ruby 1.8.2-1 install ok installed ok install ruby 1.8.2-1 diinstal
    No stable version Tidak ada versi stabil
    ruby 1.8.2-1 dapper ruby 1.8.2-1 rapi
    ruby/dapper uptodate 1.8.2-1 ruby / dapper 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 juga merupakan pilihan yang baik, terutama jika Anda tidak tahu persis nama paket

    :~$ dpkg -l : ~ $ Dpkg-l
    or in combination with grep atau dalam kombinasi dengan grep
    :~$ dpkg -l | grep ruby : ~ $ Dpkg-l | grep ruby
    or if you expecting a lot of matches atau jika anda mengharapkan banyak pertandingan
    :~$ dpkg -l | grep lib | less : ~ $ Dpkg-l | grep lib | less

    you can also use regular expression patterns with grep Anda juga dapat menggunakan pola kalimat biasa dengan grep


Our Friends Our Friends
Getting Started Persiapan


About How-To Geek Tentang How-To Geek
What Is That Process? Apa Proses Itu?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
mDNSResponder.exe mDNSResponder.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.