Jump to content

how do I determine the version number of an rpm?


papaschtroumpf
 Share

Recommended Posts

home now

[root@localhost root]# urpmf --provides kdenetwork-krfb
kdenetwork-krfb:krdc
kdenetwork-krfb:krfb
kdenetwork-krfb:kcm_krfb.so
kdenetwork-krfb:kded_kinetd.so
kdenetwork-krfb:kdenetwork-krfb[== 1:3.2.3-13mdk]
[root@localhost root]#

now, this may or may not be the one installed, as urpmf searches the source database.

 

 

[root@localhost root]# urpmq -pr kdenetwork-krfb
kdenetwork-krfb-3.2.3-13mdk
[root@localhost root]# urpmq -prv kdenetwork-krfb
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.cooker_contrib.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.cooker2.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.cooker.cz]
kdenetwork-krfb-3.2.3-13mdk
[root@localhost root]#

again, same thing. urpmX is 90% for using the sources to resolve deps. The exceptions are using urpmi in a local dir to install rpms so that it'll resolve the deps, or using urpme to remove a pgk. Other than that, rpm does everything else. In short, no, and it's not supposed to. You did it right with rpm -q :D

Edited by bvc
Link to comment
Share on other sites

Using broad terms urpmi is a wrapper for rpm, facilitating the install of packages to include their dependancies. The underlying rpm database and tools are still there and theres no reason not to use them, adding flags to urpmi to query the rpm database is re-inventing the wheel IMO.

Link to comment
Share on other sites

If you're looking for information about packages, you can always use

urpmq -i package_name | grep ...

but that'll work the same wether the package is installed or not.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...