Re: Find latest RPM in directory

Alex <[email protected]> Thu, 20 May 2010 16:34:28 -0400
Newsgroups gmane.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
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html