Re: rpm -q in %post in RedHat 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From a script that I got from another list:

RHVer=`rpm -qp --qf "%{version}\n" RedHat/RPMS/redhat-release-*.rpm`

This is supposed to work for 7.3, 8.0, or 9.0, just change the
RedHat/RPMS to where the rpms are located.

Ron

On Thu, 2003-05-15 at 14:13, Michael J. Carter wrote:
> In RedHat 7.X one could determine the ARCH of a system by executing the
> following command in arch:
> 
> carter@guglielmo$ rpm -q --qf '%{ARCH}\n' kernel
> i686
> 
> This returns null in RedHat 9 when executed inside kickstart. Does
> anyone know what changed and if there are any workarounds?
> 
> Thanks,
> mjc
-- 
Ronald Reed <rreed@xxxxxxxxxxxxxxx>
ARM SGP CART Site




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux