Solved

Kickstart RPM platform issue

Posted on 2010-09-21
4
634 Views
Last Modified: 2013-12-06
I used Kickstart for servers having x86_64 architecture.  But it installs even i386 RPMs.  I just want it to install only x86_64.  What should I do.  Just in case you want to look, here is my kickstart.

Note: If I remove comment from my first line, ksvalidator objects

Unknown command: platform=x86,

I tried platform=AMD64 but it doesn't work either.

This brings the following questions to my mind:
1.  Is the 'plateform' keyword working at all in kickstart?
2.  Are x86_64 RPMs independent of i386 RPMs?  I do not recall ever seeing x86_64 RPMs installed totally without i386--I am not saying this is the way it is supposed to be.  But can x86_64 RPMs be installed without i386?  If so, how.

My Kickstart file is attached





ks.txt
0
Comment
Question by:farzanj
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
larsrohr earned 500 total points
ID: 33731934
No, I don't think the 'platform' command is valid.
Here's a current kickstart option reference:
  http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html

I use a different 'url' option for my x86_64 kickstarts and i386 kickstarts, e.g.:
  url --url=http://192.168.0.254/packages/i386
  url --url=http://192.168.0.254/packages/x86_64

So for my x86_64 machines, the ks.cfg would use the latter, and would install from the x86_64 tree.


I do see that there are plenty of i386 rpms in the default x86_64 tree, and a little googling around seems to indicate that they are there primarily for the compat support, and that using glibc.i686 may be responsible for pulling in lots of the other i386 rpms.  Unfortunately, it doesn't seem that there's a straight-forward way of simply excluding all i386 rpms.  Two alternatives I do see:
1. delete all the i386 rpms from your install source tree.
2. add a %post section to your ks.cfg to remove unwanted rpms, e.g.:
     %post
     yum -y remove glibc.i686


Are you wanting to avoid i386 rpms due to space, bandwidth, or other reasons?  Or just looking for a "clean" x86_64 system?
0
 
LVL 31

Author Comment

by:farzanj
ID: 33733787
I wanted to eliminate any extra stuff -- making it clean and system.  Yes, I wanted to save space as much as I could.  By bandwidth do you mean saving it during the install?  After the install, I don't see how it is saved.  

Yes, the i386 are picked and there doesn't appear to be a way to get rid of them.

I am nervous about erasing i386 RPMs later as it may break something.
0
 
LVL 12

Assisted Solution

by:larsrohr
larsrohr earned 500 total points
ID: 33737777
Yes, bandwidth savings are only during the install.

Saving disk space, eliminating extra unneeded packages, and keeping the system clean -- that sounds fine, and is in line with the goals of others who were looking for similar solutions.

Using the "yum -y remove glibc.i686" method, whether as part of the %post in your kickstart, or run manually after installation, may not remove every i386 rpm, but it will probably get most of them (about 300+ on one of my systems).  But it has a nice advantage, too:  If you do find something broken (say, some third-party vendor software that was compiled against the i686 glibc), you can very easily run "yum -y install glibc.i686" to reverse the situation.

I would only recommend removing All i386 rpms from the installation source, if you have a test machine to install on and play with, so you can verify that nothing seems broken.
0
 
LVL 31

Author Closing Comment

by:farzanj
ID: 33752837
Disappointing to learn about more deficiencies of Kickstart/ RPM problems.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 90
AWS CLI - Issue with name display 2 73
Need BIOS update Linux for MSI X99A motherboard. 4 41
Remote desktop Ubuntu from Windows 10 5 63
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question