[root@szm Downloads]# cat /root/anaconda-ks.cfg 

# Kickstart file automatically generated by anaconda.
 
#version=RHEL6
install
cdrom
lang zh_CN.UTF-8
keyboard us
rootpw  --iscrypted $6$LYoCzltKLErj6lSi$4pj2n9ImEa2bACY3D392C2qdHvuy3Slk9nv66gQ5gxcEeRPHW.htjYqcLmuZt1qssrIs.1U4Ir3YcNR5ztV5u/
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
selinux --enforcing
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux --drives=sda
 
#part /boot --fstype=ext4 --size=500
#part pv.SFNUh7-hkuw-3Rly-kkzl-tD7V-cxMg-b0OdEN --grow --size=1
 
#volgroup vg_szm --pesize=4096 pv.SFNUh7-hkuw-3Rly-kkzl-tD7V-cxMg-b0OdEN
#logvol / --fstype=ext4 --name=lv_root --vgname=vg_szm --grow --size=1024 --maxsize=51200
#logvol swap --name=lv_swap --vgname=vg_szm --grow --size=896 --maxsize=1792
repo --name="centos"  --baseurl=file:///mnt/source --cost=100
 
%packages
@base
@chinese-support
@console-internet
@core
@debugging
@basic-desktop
@desktop-debugging
@desktop-platform
@directory-client
@directory-server
@mail-server
@ftp-server
@fonts
@general-desktop
@graphical-admin-tools
@graphics
@input-methods
@internet-applications
@internet-browser
@java-platform
@legacy-x
@nfs-file-server
@network-file-system-client
@network-tools
@office-suite
@print-server
@print-client
@remote-desktop-clients
@server-platform
@server-policy
@system-management
@system-admin-tools
@virtualization-client
@virtualization-platform
@web-server
@web-servlet
@system-management-wbem
@x11
mtools
pax
oddjob
sgpio
genisop_w_picpath
wodim
abrt-gui
certmonger
pam_krb5
krb5-workstation
nscd
pam_ldap
nss-pam-ldapd
gnome-pilot
libXmu
crypto-utils
certmonger
tog-pegasus
 
[root@szm Downloads]# system-config-kickstart
 

Linux常用命令笔记--kickstart_Linux常用命令

 

Linux常用命令笔记--kickstart_Linux常用命令_02

 
 不安装某个软件包:在前面加-
 
 安装方式为:linux ks=http://192.168.1.1/ks.cfg