On Fri, 17 Dec 2004 06:00:45 -0500, madera@xxxxxxxxxxxxxxxxxxx <madera@xxxxxxxxxxxxxxxxxxx> wrote: > I recently created a very simple simple utility to get information on RPM > packages . > > You pass a package file name and (it doesn't even read the package, just the > package file name) it tells you the name, the version, release and > architecture. It also compares two package names to see wich one is newer. I don't think it will be very robust. RPMs can be strangely named. > My question is: I fear that this is already available with the rpm command using > some strange syntax and heavy use of macros. Are there any such params for the > rpm command? Investigate the --qf option. For example, on my system : $ rpm -q --qf '%{name} %{epoch} %{version} %{release}\n' perl perl 2 5.8.6 2mdk _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list