Why is it that after running "rpm -q *" as root I get.
package Public is not installed package public_html is not installed package screen-configurations.xml is not installed package signature.comcast is not installed package SQL is not installed package student is not installed package SUSE-Linux-10.glabels is not installed package Templates is not installed package tmp is not installed package txt_docs is not installed package udev-rules is not installed package Videos is not installed package vlc is not installed package weekalarmrc is not installed package xine+anarok.txt is not installed package yast-devel-1.eml is not installed
100 of lines of this. Yet they works
I loaded rpm off my DVD, zypper and again off yast2 with the same result. As an effort to fix it I ran rpm --rebuilddb and --initdb - no change.
Hi,
Try with \ like this: "rpm -q *"
These are the files/folders in the current folder
Regards,
Luiz
2010/8/11 Donn Washburn n5xwb@comcast.net:
Why is it that after running "rpm -q *" as root I get.
package Public is not installed package public_html is not installed package screen-configurations.xml is not installed package signature.comcast is not installed package SQL is not installed package student is not installed package SUSE-Linux-10.glabels is not installed package Templates is not installed package tmp is not installed package txt_docs is not installed package udev-rules is not installed package Videos is not installed package vlc is not installed package weekalarmrc is not installed package xine+anarok.txt is not installed package yast-devel-1.eml is not installed
100 of lines of this. Yet they works
I loaded rpm off my DVD, zypper and again off yast2 with the same result. As an effort to fix it I ran rpm --rebuilddb and --initdb - no change.
-- 73 de Donn Washburn 307 Savoy Street Email:" n5xwb@comcast.net " 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
* Donn Washburn (n5xwb@comcast.net) [20100811 17:28]:
Why is it that after running "rpm -q *" as root I get.
package Public is not installed
[...]
That's because the shell expands the * wildcard to all files in the folder, i.e. like doing 'rpm -q $(ls *)'. So you have to either escape the character by prefixing it with . But even then it won't work as rpm doesn't understand wildcards. If you want to list all installed packes use 'rpm -qa'.
Philipp
On Wed, 11 Aug 2010 18:22:13 +0200 Philipp Thomas pth@suse.de wrote:
by prefixing it with . But even then it won't work as rpm doesn't understand wildcards. If you want to list all installed packes use 'rpm -qa'.
and "rpm -qa" *does* understand wildcards:
susi:~ # rpm -qa 'tex*' texlive-bin-2009-15.1.x86_64 texlive-latex-2009-15.1.noarch texinfo-4.13a-10.5.x86_64 texlive-bin-latex-2009-15.1.x86_64 texlive-2009-15.1.noarch
*much* better than the old pipe-n-grep way ;-)
* Stefan Seyfried (stefan.seyfried@googlemail.com) [20100811 21:52]:
and "rpm -qa" *does* understand wildcards:
susi:~ # rpm -qa 'tex*'
But 'rpm -q' does not, so 'rpm -q *' will return 'package * not installed' or some such. Good to know that -qa does take wildcards.
Philipp
El 11/08/10 11:27, Donn Washburn escribió:
Why is it that after running "rpm -q *" as root I get.
You can also use rpmqpack to list all packages.