Re: Find latest RPM in directory

Alex <[email protected]> Thu, 20 May 2010 16:34:28 -0400
Newsgroups org.kernel.vger.linux-admin
Message-ID <[email protected]>
Hi Herta,

> Would `ls -ltr` do?

No, because I can't rely on timestamps. They may have recently been
copied there. I'd really like to read the RPM headers and let it tell
me which is the latest.

I know you can use perl-RPM to manipulate the --query-format
command-line syntax, which I understand to be the most reliable, but
it's more complicated than I can do.

Thanks,
Alex