-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patrick Shanahan wrote:
* Donn Washburn
[08-17-07 17:06]: [...] Am I doing it wrong or is there some other new trick. "rpm -q" rpmfilename seems to work but rpm "-q *" or "-qa *" fails to work. Is this a Senior Moment or bad memory problem.
"rpm -q *" doesn't work
"rpm -qa" does.
When invoking "rpm -qa", there is no need to pass "*" as well, hence the
proper usage is:
rpm -qa
and not
rpm -qa *
Also, be careful with using * on a command-line.
Unlike DOS or windows, the "*" is being replaced with proper values by
the shell _before_ calling the actual program.
Which means that if you're in /home/foo and you do this in a shell:
rpm -qa *
the command that will actually be executed is the following:
rpm -qa Desktop Documents bin public_html
because the * is resolved by the shell before calling rpm -qa.
Make sure to escape the "*", either like this:
rpm -qa \*
or like this:
rpm -qa "*"
or even like this:
rpm -qa '*'
More information on that can be found in the bash manual (man bash, or
if you're using KDE, type "man:/bash" as the URL in konqueror).
But as said "rpm -qa \*" is useless, just do "rpm -qa"
You could do this though:
rpm -qa amarok\*
In that case, rpm will only list the packages that have a name starting
with "amarok"
hope this helps
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\