On 20 Jun, Michael Hasenstein wrote:
No, it doesn't. It just takes "strings". For example, you can have a Requires: webserver, and some other package has "Provides: webserver".
I stand corrected.
Is there a way to have RPM search for a command? For example, "Requires: bash" now looks for a package named "bash". Can RPM be made to look for an executable file named "bash" instead?
See above. In addition I believe you can indeed reference files, by specifying the full path: Requires: /bin/bash
But there's no way to say "find an executable file named bash"? bash is probably a bad example in this case. How about 'gnome-session'? SuSE puts Gnome under /opt. If I use "Requires: /opt/gnome/bin/gnome-session", the package works for SuSE. But not necessarily for another distribution. I was thinking something along the lines of "Requires: gnome-session". RPM finds the file "gnome-session", looks up the package that owns the file, and makes my package dependant on the other one. Package names may be different between distributions. But the actual file names wouldn't be. An installation script could certainly look for the expected file. But it can't update the package dependencies, can it? -- Robert Wohlfarth rjwohlfar@bigfoot.com "Is not life more important than food, and the body more important than clothes?" -- Matthew 6:25b