RPM noob (query, log, build)

Joachim Backes joachim.backes at rhrk.uni-kl.de
Sat Jun 6 09:19:16 UTC 2009


Gordon Messmer wrote:
> On 06/05/2009 10:41 PM, Thufir wrote:
>> So, I went and built my first RPM recently.  I had to go back and forth a
>> bit with the developers, but it's built from the most recent svn update
>> of curl-java, and, from what I see, is exactly what I wanted to install
>> is installed the way I want it installed.  However, I don't understand
>> why the rpm query isn't returning the expected result.
> ...
>> [root at arrakis i386]# rpm -qa curl-java-0.2.3-2.i386
>> [root at arrakis i386]# rpm -qa curl-java-0.2.3-2.i386.rpm
> 
> First, don't use "-qa" unless you need to.  Using "-qa" is really only 
> useful if you're matching a glob-style pattern against all package 
> names.  For instance, "rpm -qa curl*". 

More precise:: rpm -qa curl\* or rpm -qa 'curl*' or rpm -qa "curl*" 
(without \ or ' or ", * is interpreted by your shell)

  If you're not using a glob-style
> pattern, "-qa" is quite slow and provides no benefit over "-q".
> 
> Second, use only the name of the package with both query styles (again, 
> unless you need to):
> 
> rpm -q curl-java
> rpm -qa curl-java
> 
> Using the name only will work with both query styles.  Using the version 
> and arch only works with "-q".
> 


-- 

Joachim Backes <joachim.backes at rhrk.uni-kl.de>

http://www.rhrk.uni-kl.de/~backes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6101 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090606/58d992fa/attachment-0001.bin>


More information about the fedora-list mailing list