[svlug] about RPM
duperron at charter.net
Thu Mar 15 18:56:03 PST 2001
There has to be more to it than that. I can do rpm -qa | grep ls
and still see nothing. Further "| grep" means take the standard
out and pipe it into grep. If there is nothing on the standard out
grep will return nothing, as it should. The command rpm -qa MUST
return something if the pipe is ever to work.
> Vince Duperron writes:
> > Hello;
> > I have been following this thread in hopes of learning more about
> > rpm. I try the example below and if fails...
> > [vince at thingfish ~]% rpm -qa | grep inet
> > [vince at thingfish ~]% rpm -qa
> > [vince at thingfish ~]% uname -rav
> > Linux thingfish 2.2.18pre21 #1 Sun Mar 4 14:45:32 PST 2001 ppc unknown
> > bobby 7% rpm -qa | grep inet
> > bobby 8% rpm -qa
> > bobby 9% uname -rav
> > Linux bobby 2.2.18pre21-compact #1 Sat Nov 18 09:23:46 MST 2000 i586 unknown
> > I would expect that rpm -qa would Query All rpms in the data base.
> > I would expect to see a long stream of stuff.
> > Is this right?
> Yes, but you don't have any package whose name contains "inet".
> (The database in question is a database of packages that you have
> installed, not all packages that exist.)
> Seth David Schoen <schoen at loyalty.org> | And do not say, I will study when I
> Temp. http://www.loyalty.org/~schoen/ | have leisure; for perhaps you will
> down: http://www.loyalty.org/ (CAF) | not have leisure. -- Pirke Avot 2:5
> svlug mailing list
> svlug at lists.svlug.org
More information about the svlug