papaschtroumpf Posted August 17, 2004 Report Share Posted August 17, 2004 I want to know which version number my kdenetwork-krfb rpm is from the command line (over SSH). I don;t know how to query it. If I do urpmq kdenetowrk-krfb, it simply shows "kdenetowrk-krfb". Quote Link to comment Share on other sites More sharing options...
papaschtroumpf Posted August 17, 2004 Author Report Share Posted August 17, 2004 answering my own question, rpm -q kdenetwork-krfb gave me the answer, but is there a way to do it with the urpm tools? Quote Link to comment Share on other sites More sharing options...
bvc Posted August 17, 2004 Report Share Posted August 17, 2004 not on mandrake rt now but there is a way with either urpmq or urpmf (I think) :unsure: Quote Link to comment Share on other sites More sharing options...
bvc Posted August 17, 2004 Report Share Posted August 17, 2004 (edited) 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 August 17, 2004 by bvc Quote Link to comment Share on other sites More sharing options...
Qchem Posted August 18, 2004 Report Share Posted August 18, 2004 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. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 18, 2004 Report Share Posted August 18, 2004 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.