John wrote regarding 'Re: [SLE] GUI for rpm Management' on Fri, Sep 03 at 11:15:
On Friday 03 September 2004 11:02, Danny Sauer wrote:
Maybe kpackage, then, or a gnome equivilent. Install it with yast. :)
BTW, to find the package associated with a file: rpm -qf /path/to/file or if the file is in your $PATH rpm -qf `which file`
This is for installed files and yes works fine but I am looking for something that will tell me an application is in an rpm which I do NOT have installed so I know what rpm to install to get the app running.
To get some information about a package: rpm -qip package.rpm To list the files in a package: rpm -qlp package.rpm kpackage package.rpm To show what dependencies a package *provides* after it's installed: rpm -q --provides -p package.rpm To show what dependencies a package *requires* met before it can be installed: rpm -q --requires -p package.rpm To learn more about what rpm can do: man rpm look for "PACKAGE QUERY OPTIONS" on that man page (search man by pressing the '/' key and then typing your case-insensitive search string) --Danny