Linux get app version

How to Know the Version of Application Before Installing in Ubuntu

The other day, I was thinking of installing Flowblade, one of the best video editors for Linux. I had two choices for installing this software, either I install it from Ubuntu repositories or from the website of Flowblade itself.

You might already know that the default repository by Ubuntu often doesn’t have the latest versions of a program. Ubuntu does it deliberately to make sure that new version doesn’t have a negative impact on the stability of your system.

But what if you really want only the latest version of an application? You can get it from the official source provided by the provider.

Then comes the question how would you know which version is available to install from Ubuntu?

And this is what I am going to show you in this quick tip. Though I am using Ubuntu here, the same steps are applicable for most other Linux distributions such as Linux Mint, elementary OS etc.

Find out version of a program before installing in Ubuntu

If you read the article about installing software in Ubuntu, you know that you can either use the graphical tool Ubuntu Software Center or the command line itself. We’ll see both ways here.

1. Find out the version of a program before installing in Ubuntu Software Center

Go to Ubuntu Software Center and search for the program you wish to install it. Click on it to find more details about it. You’ll see the information about the version of the program here.

Know the version of a program before installing in Ubuntu Software Center

You’ll also find information about the size of install among other things.

2. Know the version of a program before installing in command line

Like me, if you prefer using the terminal, you can use the command below:

Know the version of a program before installing in terminal

You can also use the old style apt-cache in either of the below two fashions:

Know the version of a program before installing in terminal

Once you find out the software version which you will be getting from the official Ubuntu sources, you can go on to decide if you should be installing it from Ubuntu or from the developer itself.

Читайте также:  Как в линукс авторизироваться

I hope this quick tip helped you and you learn a new thing about Ubuntu Linux today. Do subscribe to our newsletter to get our articles in your inbox regularly.

Источник

How can I check the available version of a package in the repositories?

How can I check the version of the available package in the Ubuntu repositories without installing it?

7 Answers 7

This gives you information of all available package versions.

alaa@aa-lu:~$ apt-cache policy vlc vlc: Installed: 2.0.8-0ubuntu0.13.04.1 Candidate: 2.0.8-0ubuntu0.13.04.1 Version table: *** 2.0.8-0ubuntu0.13.04.1 0 500 http://ae.archive.ubuntu.com/ubuntu/ raring-updates/universe i386 Packages 500 http://security.ubuntu.com/ubuntu/ raring-security/universe i386 Packages 100 /var/lib/dpkg/status 2.0.6-1 0 500 http://ae.archive.ubuntu.com/ubuntu/ raring/universe i386 Packages
  • From the output, you can see that there are two versions available: 2.0.8-0ubuntu0.13.04.1 and 2.0.6-1 . It also tells you which repositories they are coming from.
  • Installed: tells you the version you have installed. If you don’t have the package installed, you’ll see (none) .
  • Candidate: is the version that will be installed if you use apt-get install vlc . If you want to install the other version, you would do apt-get install vlc=2.0.6-1 .

Go to packages.ubuntu.com, fill in the search form and get a nice view of the package including the version.

enter image description here

enter image description here

Additional benefits

  • Will also list versions of packages for other versions of Ubuntu. Eg. if you want to know about the version of the package in Raring (13.04), but your system still has Precise (12.04), then this will provide a way to find it out.
  • You don’t even need Ubuntu to be installed.

Biggest downside is that it won’t list the versions of other repositories you possible have installed, such as PPAs. You will then need the apt-cache policy approach as already posted.

Pro tip

Take the shortcut — just browse to http://packages.ubuntu.com/packagename and replace packagename with the name of the package you want to query.

It also gives information about all available package versions in the repositories. This command output had the syntax like this:

packageName | Version | Repository 

apt-cache’s madison command attempts to mimic the output format and a subset of the functionality of the Debian archive management tool, madison. It displays available versions of a package in a tabular format. Unlike the original madison, it can only display information for the architecture for which APT has retrieved package lists (APT::Architecture).

$ apt-cache madison chromium-browser chromium-browser | 32.0.1700.102-0ubuntu0.13.10.1~20140128.970.1 | http://mirror.sov.uk.goscomb.net/ubuntu/ saucy-updates/universe amd64 Packages chromium-browser | 32.0.1700.102-0ubuntu0.13.10.1~20140128.970.1 | http://mirror.sov.uk.goscomb.net/ubuntu/ saucy-security/universe amd64 Packages chromium-browser | 29.0.1547.65-0ubuntu2 | http://mirror.sov.uk.goscomb.net/ubuntu/ saucy/universe amd64 Packages chromium-browser | 29.0.1547.65-0ubuntu2 | http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages chromium-browser | 29.0.1547.65-0ubuntu2 | http://mirror.sov.uk.goscomb.net/ubuntu/ saucy/universe Sources chromium-browser | 32.0.1700.102-0ubuntu0.13.10.1~20140128.970.1 | http://mirror.sov.uk.goscomb.net/ubuntu/ saucy-updates/universe Sources chromium-browser | 32.0.1700.102-0ubuntu0.13.10.1~20140128.970.1 | http://mirror.sov.uk.goscomb.net/ubuntu/ saucy-security/universe Sources chromium-browser | 29.0.1547.65-0ubuntu2 | http://archive.ubuntu.com/ubuntu/ saucy/universe Sources chromium-browser | 29.0.1547.65-0ubuntu2 | http://archive.ubuntu.com/ubuntu/ saucy/universe Sources 

Источник

Читайте также:  Opening executable files in linux

How can I find the version number of an installed package via dpkg?

Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-=========================-=========================-================================================================== ii network-manager 0.8.3~git.20101118t223039 network management framework daemon 

As you can see, it returns 0.8.3~git.20101118t223039 which is wrong because it truncates the version (I’ve picked a long one for the purpose of this question). The way I’ve solved this in the past is to pass a stupidly long COLUMNS argument to make it expand:

COLUMNS=200 dpkg -l network-manager 
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-============================================-============================================-======================================================================================================== ii network-manager 0.8.3~git.20101118t223039.d60a988-0ubuntu1 network management framework daemon 

Now I can see the full version number, which is 0.8.3~git.20101118t223039.d60a988-0ubuntu1 . I get the feeling that this is not the proper way to find the version number of an installed package. This never really was a problem in the past, but with the tacking on of «ubuntu» in the versions and the proliferation of PPAs these strings are getting longer and longer. Is there an easier way?

Источник

📦 Как проверить версию установленного пакета в Ubuntu/Debian

Как узнать версии пакетов, доступные в операционной системе Ubuntu/Debian Linux ?

В Linux все приложения распространяются в виде пакетов, которые представляют собой не что иное, как файлы, связанные с системой управления пакетами.

Это руководство покажет вам несколько команд, которые можно использовать для проверки версии пакета на машине Ubuntu/Debian Linux.

Системы Linux на основе Debian поставляются с двумя основными менеджерами пакетов:

  • apt – Управление пакетами из репозиториев
  • dpkg – Управление пакетами, загруженными в систему. Часто в формате .deb
  • aptitude можно установить и использовать аналогично apt

Чтобы проверить версию установленного пакета на вашем сервере/настольном Ubuntu, используйте любой из методов, показанных в следующих разделах.

Прежде чем начать, обновите APT-индекс вашего пакета:

Метод 1. Использование команды apt

Команда apt имеет список параметров, который можно использовать для проверки версии пакета, установленного в системе Ubuntu или Debian.

Например, чтобы проверить версию пакета curl, установленную на моем сервере Ubuntu/Debian, я бы запустил:

$ apt list curl Listing. Done curl/focal-updates,focal-security,now 7.68.0-1ubuntu2.2 amd64 [installed,automatic] N: There is 1 additional version. Please use the '-a' switch to see it

Чтобы увидеть все версии пакета, доступные в репозитории, передайте параметр -a.

$ apt list curl -a Listing. Done curl/focal-updates,focal-security 7.68.0-1ubuntu2.5 amd64 [upgradable from: 7.68.0-1ubuntu2.2] curl/now 7.68.0-1ubuntu2.2 amd64 [installed,upgradable to: 7.68.0-1ubuntu2.5] curl/focal 7.68.0-1ubuntu2 amd64
$ apt show curl Package: curl Version: 7.68.0-1ubuntu2.5 Priority: optional Section: web Origin: Ubuntu Maintainer: Ubuntu Developers Original-Maintainer: Alessandro Ghedini Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 411 kB Depends: libc6 (>= 2.17), libcurl4 (= 7.68.0-1ubuntu2.5), zlib1g (>= 1:1.1.4) Homepage: http://curl.haxx.se Task: server, cloud-image, ubuntu-budgie-desktop Download-Size: 161 kB APT-Sources: http://mirrors.digitalocean.com/ubuntu focal-updates/main amd64 Packages Description: command line tool for transferring data with URL syntax curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP. . curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos. ), file transfer resume, proxy tunneling and a busload of other useful tricks.
$ apt show docker-ce -a

Метод 2: использование apt-cache

$ apt-cache policy curl curl: Installed: 7.68.0-1ubuntu2.2 Candidate: 7.68.0-1ubuntu2.5 Version table: 7.68.0-1ubuntu2.5 500 500 http://mirrors.digitalocean.com/ubuntu focal-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages *** 7.68.0-1ubuntu2.2 100 100 /var/lib/dpkg/status 7.68.0-1ubuntu2 500 500 http://mirrors.digitalocean.com/ubuntu focal/main amd64 Packages $ apt-cache policy mariadb-server mariadb-server: Installed: (none) Candidate: 1:10.3.29-0ubuntu0.20.04.1 Version table: 1:10.3.29-0ubuntu0.20.04.1 500 500 http://mirrors.digitalocean.com/ubuntu focal-updates/universe amd64 Packages 500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages 1:10.3.22-1ubuntu1 500 500 http://mirrors.digitalocean.com/ubuntu focal/universe amd64 Packages
Installed: 7.68.0-1ubuntu2.2 --> Show installed version

Если пакет не установлен, вы увидите none в качестве значения установленного ключа:

Читайте также:  Linux create new user password

Источник

Как узнать версию программы в Linux

book24 не заставляйте меня думать

sed (GNU sed) 4.7 Packaged by Debian Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Jay Fenlason, Tom Lord, Ken Pizzini, Paolo Bonzini, Jim Meyering, and Assaf Gordon. GNU sed home page: . General help using GNU software: . E-mail bug reports to: .

В Debian , Ubuntu и других производных Debian можно выполнить команду

Например, чтобы узнать версию sed нужно выполнить

Package: sed Essential: yes Priority: required Section: utils Installed-Size: 336 Origin: Ubuntu Maintainer: Ubuntu Developers Bugs: https://bugs.launchpad.net/ubuntu/+filebug Architecture: amd64 Multi-Arch: foreign Version: 4.7-1 Pre-Depends: libacl1 (>= 2.2.51-8), libc6 (>= 2.14), libselinux1 (>= 1.32) Filename: pool/main/s/sed/sed_4.7-1_amd64.deb Size: 189668 MD5sum: 2e2c9a0370c20a2a1921572f250db43e Description: GNU stream editor for filtering/transforming text Original-Maintainer: Clint Adams SHA1: a8106de20fa00fc7f97a45d18ec411512cc64293 SHA256: a5428ddec609149eb6086cec20bf14a0300972a191eb0cc010e7f1c7f17186f4 Homepage: https://www.gnu.org/software/sed/ Task: minimal Description-md5: 2ed71305ee7a49ce4438c58140980d2f

Команда dpkg -p, впрочем как и флаги —version, -V работает не со всеми программами

Например, если вы выполните

Скорее всего получите сообщение

dpkg-query: package ‘virtualbox’ is not available

Команда virtualbox —version просто запустит Virtualbox

Чтобы определить версию Virtualbox выполните

Oracle VM VirtualBox VM Selector v6.1.10_Ubuntu (C) 2005-2020 Oracle Corporation All rights reserved. No special options. If you are looking for —startvm and related options, you need to use VirtualBoxVM.

  • Поиск по сайту
  • aofeed — Telegram канал чтобы следить за выходом новых статей
  • aofeedchat — задать вопрос в Телеграм-группе

Источник

Оцените статью
Adblock
detector