Because you want rpm -qip, f tells rpm to look at the file and determine what
rpm it belongs to.  p tells rpm you're looking at an rpm package and want some
info from it.

"James A. N. Stauffer" <stauffer_james at yahoo.com> writes:

> Warning: Stupid question!
> Why doesn't the following work?
> rpm -qif
> ftp://ftp.mn-linux.org/linux/redhat/redhat-7.0-en/os/i386/SRPMS/basesystem-7.0-2.src.rpm
> It tells me "No such file or directory"  I even tried ftping it to the
> local directory and I still couldn't get it to work.  (I am comfortable
> with Linux but have not used command line rpm much.)
> 
> =====
> =    o o o o o o o . . .  __________________________ _____=======_||___
>    o      _____           |  James A. N. Stauffer  | | Stauffer_James |
>  .][__n_n_|DD[  ====____  | Spam food: uce at ftc.gov | |   @yahoo.com   |
> >(________|__|_[________]_|________________________|_|________________|
> _/oo OOOOO oo`  ooo  ooo  'o¬o¬o              o¬o¬o` 'o¬o          o¬o`
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> _______________________________________________
> tclug-list mailing list
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list

-- 
Jon Schewe | http://mtu.net/~jpschewe | jpschewe at mtu.net
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39