Re: Rpm Querying

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

 



Phil Schaffner wrote:
On Wed, 2004-02-18 at 12:47, Satan wrote:

Ok ill be a bit more clearer. Im not getting an error message if i did i would have said. When i use rpm -qpi package i get all the information. Grand, but it says on every package i tryed that its not installed even when it is. Whats causing this?


The -p flag is used to query the PACKAGE_FILE
[PACKAGE_NAME.version.arch.rpm] file rather than the database of
installed RPMs.  Use "rpm -qi PACKAGE_NAME" (just the base name - no
version required) to query the RPM database.  Do "man rpm" and notice
the distinction between "PACKAGE_NAME" and "PACKAGE_FILE" usage for
various options.

As a specific example: [bevan@saladin fedora-1-updates]> ls strace-4.5.1-1.i386.rpm strace-4.5.1-1.i386.rpm

[bevan@saladin fedora-1-updates]> rpm -qpi strace-4.5.1-1.i386.rpm
Name : strace Relocations: (not relocateable)
Version : 4.5.1 Vendor: Red Hat, Inc.
Release : 1 Build Date: Thu 13 Nov 2003 07:37:23 PM PST
Install Date: (not installed) Build Host: porky.devel.redhat.com
[...]


[bevan@saladin fedora-1-updates]> rpm -qi strace-4.5.1-1.i386.rpm
package strace-4.5.1-1.i386.rpm is not installed

[bevan@saladin fedora-1-updates]> rpm -qi strace
Name : strace Relocations: (not relocateable)
Version : 4.5.1 Vendor: Red Hat, Inc.
Release : 1 Build Date: Thu 13 Nov 2003 07:37:23 PM PST
Install Date: Tue 13 Jan 2004 07:45:23 PM PST Build Host: porky.devel.redha





[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux