[opensuse-factory] Alpha7 and RPM db
Hey Group; I was going to check the RPM database for various pieces of software versions. Say like Open Office by "rpm --qa *". To which the rpm database comes up with Amarok-1.4.6 only. I would have expected a dump of the programss. So I did a remake of the RPM database "rpm --rebuilddb" then "rpm --initdb" and still it finds only Amarok. This was done as "root". 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. Ultimately I was going to "rpm -qa * | grep open" -- 73 de Donn Washburn 307 Savoy Street Email: " n5xwb@hal-pc.org " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb@arrl.net " VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg BMW MOA #: 4146 - Ambassador " http://counter.li.org " #279316 Did you know? The transistor was invented by three white men. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
* Donn Washburn
I was going to check the RPM database for various pieces of software versions. Say like Open Office by "rpm --qa *".
first, there is no option "--qa", its "-qa", and the asterisk is superfluous.
To which the rpm database comes up with Amarok-1.4.6 only.
this makes NO sense, "Amarok...", *unless* your database is totally corrupt.
I would have expected a dump of the programss.
given the correct syntax...
So I did a remake of the RPM database "rpm --rebuilddb" then "rpm --initdb" and still it finds only Amarok.
show the EXACT command you typed as this still makes no sense.
This was done as "root".
not necessary to show installed pgms, but is for the rebuild and/or initdb.
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.
"Senior" no, but perhaps bad memory. More likely you do not know the command structure/syntax. IN LINUX command-line applications, *usually* the proper command syntax may be displayed via "<command> --help". There is also "man <command>". try: rpm --help and man rpm rpm -qa <app-name> works for me, as does rpm -qa |grep <app-name> or, when memory might be faulty rpm -qa |grep -i <app-name>
Ultimately I was going to "rpm -qa * | grep open"
But you didn't ????
-- 73 de Donn Washburn 307 Savoy Street Email: " n5xwb@hal-pc.org " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb@arrl.net " VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg BMW MOA #: 4146 - Ambassador " http://counter.li.org " #279316
Did you know? The transistor was invented by three white men. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ is this a vain attempt at racial bigotry or just a red-neck showing his true colors.
?? 10 line sig ?? -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-----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/
/\\
Patrick Shanahan wrote:
* Donn Washburn
[08-17-07 17:06]: I was going to check the RPM database for various pieces of software versions. Say like Open Office by "rpm --qa *".
first, there is no option "--qa", its "-qa", and the asterisk is superfluous.
To which the rpm database comes up with Amarok-1.4.6 only.
this makes NO sense, "Amarok...", *unless* your database is totally corrupt.
Bash expanded '*' to the contents of Don's current working directory. Don had a file or directory called Amarok in this directory, and this is the only item in the directory that matched a package name in the RPM database. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
* Bart Whiteley
Bash expanded '*' to the contents of Don's current working directory. Don had a file or directory called Amarok in this directory, and this is the only item in the directory that matched a package name in the RPM database.
Yes, one of those elderly moments on my part..... -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Patrick Shanahan wrote:
* Bart Whiteley
[08-17-07 18:27]: Bash expanded '*' to the contents of Don's current working directory. Don had a file or directory called Amarok in this directory, and this is the only item in the directory that matched a package name in the RPM database.
Yes, one of those elderly moments on my part.....
Bart is correct - I use Amarok all the time because it is one of the greatest music players out there. It also shows why I like the source file and not the distro RPMs that much. Thanks to all that sort out my goof. -- 73 de Donn Washburn 307 Savoy Street Email: " n5xwb@hal-pc.org " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb@arrl.net " VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg BMW MOA #: 4146 - Ambassador " http://counter.li.org " #279316 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Bart Whiteley
-
Donn Washburn
-
Pascal Bleser
-
Patrick Shanahan