Mailinglist Archive: opensuse-factory (509 mails)
| < Previous | Next > |
Re: [opensuse-factory] Alpha7 and RPM db
- From: Pascal Bleser <pascal.bleser@xxxxxxxxx>
- Date: Sat, 18 Aug 2007 00:05:52 +0200
- Message-id: <46C61BC0.5000301@xxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Patrick Shanahan wrote:
> * Donn Washburn <n5xwb@xxxxxxxxxx> [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/
/\\ <pascal.bleser@xxxxxxxxx> <guru@xxxxxxxxxxx>
_\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD4DBQFGxhvAr3NMWliFcXcRArK+AKCsBnbNlE/xyYTOEvaML6zbxOBjMACXXkah
ibY7kC03AT5Nl6k9Uf+Vdg==
=dsdf
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
Hash: SHA1
Patrick Shanahan wrote:
> * Donn Washburn <n5xwb@xxxxxxxxxx> [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/
/\\ <pascal.bleser@xxxxxxxxx> <guru@xxxxxxxxxxx>
_\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD4DBQFGxhvAr3NMWliFcXcRArK+AKCsBnbNlE/xyYTOEvaML6zbxOBjMACXXkah
ibY7kC03AT5Nl6k9Uf+Vdg==
=dsdf
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
| < Previous | Next > |