Re: RPM noob (query, log, build)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@arrakis i386]# rpm -qa curl-java-0.2.3-2.i386
[root@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*". 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".

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux