Ask Your Question

How do I determine the version of my packages

asked 2015-06-06 07:57:06 -0500

mparillo gravatar image

updated 2015-06-06 14:46:23 -0500

mether gravatar image

For example, on Kubuntu, I run:

apt-cache policy open-vm-tools-desktop

and it returns:

  Installed: (none)
  Candidate: 2:9.4.6-1770165-8ubuntu1
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-06 12:36:17 -0500

updated 2015-06-06 12:36:55 -0500

$ rpm -q yum

$ dnf info yum
Last metadata expiration check performed 13:13:02 ago on Sat Jun  6 00:22:24 2015.
Installed Packages
Name        : yum
Arch        : noarch
Epoch       : 0
Version     : 3.4.3
Release     : 505.fc22
Size        : 5.6 M
Repo        : @System
Summary     : RPM package installer/updater/manager
URL         :
License     : GPLv2+
Description : Yum is a utility that can check for and automatically download and
            : install updated RPM packages. Dependencies are obtained and downloaded
            : automatically, prompting the user for permission as necessary.
edit flag offensive delete link more


Thank you. Both worked exactly as you described. The rpm -q returned immediate results, as if it was running locally. The dnf info seemed to take much longer, as if it was checking the repositories.

I also was able to use Apper. On Fedora 22 KDE Spin, Apper reports that open-vm-tools-desktop is 9.10.0-4.fc22.

mparillo gravatar imagemparillo ( 2015-06-06 13:17:43 -0500 )edit

The rpm command uses the local database - it's used to query, install, erase, update local individual packages. The DNF (used to be yum - from Fedora 22 we've transitioned to dnf) command uses the external repository as well as the local. dnf can show you both what's on your system and what's available. It's also what you use to install new packages with, to find dependencies etc.

bit4man gravatar imagebit4man ( 2015-06-06 14:49:03 -0500 )edit

Question Tools

1 follower


Asked: 2015-06-06 07:57:06 -0500

Seen: 8,991 times

Last updated: Jun 06 '15