Wolfgang Pfeiffer wrote:

> I'm trying to find rpm-packages that I installed on my machine (Red Hat
> 6.1) the last some days:
> 
> Quote from 'Maximum RPM' (1997):
> ---------------------------------------------------------------------
> Finding Recently Installed Packages, Part I
> 
> You remember installing a new package a few days ago. All you know for
> certain is that the package installed a new
> command in the /bin directory. Let's try to find the package:
> 
> 
> # find /bin -type f -mtime -14 | rpm -qF
> rpm-2.3-1
> #
> 
> Looks like RPM version 2.3 was installed sometime in the last two weeks.
> -----------------------------------------------------------------------
> 
> But if I do the same on my system I get this:
> ------------------------------------------
> $ find /bin -type f -mtime -14 | rpm -qF
> rpm: only one major mode may be specified
> -----------------------------------------
> I have installed findutils-4.1.5-4.
> 
> 
> Am I getting old; what's going on there?
> 

Try


rpm -qf `find /usr/bin -type f -mtime -14`

the F means Freshen to the later versions of rpm and I have never had 
any luck piping args into rpm so I use the backticks on the command that 
will return the args.

Bret



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to