On Wed, Oct 08, [EMAIL PROTECTED] wrote:
> 
> I am installing as minimal of a set of packages as our internal
> requirements and dependancies allow, which ends up being about 608 packages
> if installed from a x86_64 only install tree.  The second I point that same
> kickstart towards the standard install tree (which is provided via our
> satellite server and will be out production method), an additional 146
> 32bit packages are installed.  So I'm trying to figure out how to exclude
> the i?86 packages during the %packages section of the kickstart.
...

> Possible solutions based on above:
> 
> 1: remove it after the fact with yum or rpm (not an option with network
> install of over 400 systems).

I remove the unnecessary 32bit packages in kickstart %post with something
like this:
/bin/rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' \
  | sort | grep i386.rpm > /root/i386.pkgs-tmp
/bin/rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' \
 | sort | grep i686.rpm | grep openssl >> /root/i386.pkgs-tmp
egrep -v 'audit-libs-1|restof-packages-i-need' /root/i386.pkgs-tmp > 
/root/i386.pkgs
rpm -e all packages in /root/i386.pkgs

It's not pretty, but works for me.

> 2: explicitly state each and every package exactly as I want it (arch
> included) in the %packages section (seriously? no)

-- 
Jarno Huuskonen

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to