[CentOS] Trimming the fat out of a Centos 4.4 Installation

Tue Oct 10 00:05:31 UTC 2006
John Newbigin <jnewbigin at ict.swin.edu.au>

You can also remove a lot of stuff from /usr/share.  You can't do it 
with rpm but rm will work :)

du -sh /usr/share/doc/ # 207M
du -sh /usr/share/locale/ # 234M
du -sh /usr/lib/locale/ # 102M

Of course, you can't remove stuff if you want to use it.

John.


Erick Perez wrote:

> Thanks to all for the references.
> Being the final goal a machine that *only* does
> asterisk,httpd(perl,php) and sshd, I will carefully select the
> packages and make sure only the minimum is there (no cups, no X, no
> ftp, etc.
> Let's see how it goes and i will report back. I will start today, hehe.
> It must fit a CF card and my boss told me that try to put it in a 128
> mb CF card. anyway Let's see how it ends....
> 
> Cheers,
> 
> 
> On 9/28/06, Jim Wildman <jim at rossberry.com> wrote:
> 
>> On Thu, 28 Sep 2006, Erick Perez wrote:
>>
>> > Hi, just to avoid re-inventing the wheel, is there any document that
>> > can help me reduce even further a "minimum" installation of Centos 4.4
>> > (BTW can you say 600mb is minimum)?
>> >
>>
>> This is my 'minimal base' that I start from.  You could remove the lvm2
>> stuff as well.  It will do an install of 163 packages and take about
>> 540M of disk.  About the only thing you will have is ssh and yum.  For
>> a card, you obviously want to change the disk layout.
>>
>> Apply all the other comments to this one.
>>
>>
>> # Kickstart file automatically generated by anaconda.
>>
>> install
>> url --url <your url here>
>> lang en_US.UTF-8
>> langsupport --default=en_US.UTF-8 en_US.UTF-8
>> keyboard us
>> # xconfig --card "VMWare" --videoram 16384 --hsync 31.5-37.9 --vsync 
>> 50-70 --resolution 800x600 --depth 16
>> network --device eth0 --bootproto dhcp
>> rootpw --iscrypted <your pw here>
>> firewall --disabled
>> selinux --disabled
>> authconfig --enableshadow --enablemd5
>> timezone America/New_York
>> bootloader --location=mbr
>> # 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 ext3 --size=100 --ondisk=sda
>> part pv.2 --size=0 --grow --ondisk=sda
>> volgroup VolGroup00 --pesize=32768 pv.2
>> logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024
>> logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=1024
>> reboot
>> skipx
>>
>> %packages -nobase
>> yum
>> -acpid
>> -authconfig
>> -bc
>> -checkpolicy
>> -dmraid
>> -policycoreutils
>> -selinux-policy-targeted
>> -libxslt
>> -xmlsec1-openssl
>> -xmlsec1
>> -nc
>> -lsof
>>
>> -apmd
>> -aspell
>> -aspell-en
>> -autofs
>> -bluez-bluefw
>> -bluez-hcidump
>> -bluez-libs
>> -bluez-utils
>> -crash
>> -cups
>> -cups-libs
>> -dapl
>> -desktop-file-utils
>> -dhcpv6_client
>> -diskdumputils
>> -dos2unix
>> -dosfstools
>> -dump
>> -eject
>> -finger
>> -fontconfig
>> -freetype
>> -ftp
>> -gpm
>> -groff
>> -hdparm
>> -htmlview
>> -ibmasm
>> -indexhtml
>> -ipsec-tools
>> -irda-utils
>> -isdn4k-utils
>> -jpackage-utils
>> -jwhois
>> -kernel-ib
>> -kernel-smp
>> -krb5-workstation
>> -lftp
>> -lha
>> -libgssapi
>> -libibverbs
>> -libmthca
>> -librdmacm
>> -libsdp
>> -libwvstreams
>> -lksctp-tools
>> -logrotate
>> -logwatch
>> -m4
>> -m4
>> -mailcap
>> -mailx
>> -man
>> -man-pages
>> -mdadm
>> -minicom
>> -mkbootdisk
>> -mt
>> -mtools
>> -mtr
>> -mt-st
>> -nano
>> -netconfig
>> -netdump
>> -net-snmp-libs
>> -NetworkManager
>> -nfs
>> -nfs-utils-lib
>> -nscd
>> -nss_ldap
>> -numactl
>> -OpenIPMI
>> -OpenIPMI-libs
>> -pam_ccreds
>> -pam_krb5
>> -pam_passwdqc
>> -pam_smb
>> -parted
>> -patch
>> -pax
>> -pcmcia-cs
>> -pdksh
>> -pinfo
>> -portmap
>> -ppp
>> -procmail
>> -psacct
>> -quota
>> -rdate
>> -rdist
>> -redhat-lsb
>> -redhat-menus
>> -rhpl
>> -rmt
>> -rp-pppoe
>> -rsh
>> -rsync
>> -sendmail
>> -setarch
>> -setools
>> -slocate
>> -specspo
>> -stunnel
>> -sudo
>> -syslinux
>> -sysreport
>> -system-config-mouse
>> -system-config-network-tui
>> -system-config-securitylevel-tui
>> -talk
>> -tcpdump
>> -tcsh
>> -telnet
>> -time
>> -traceroute
>> -unix2dos
>> -up2date
>> -vconfig
>> -wget
>> -which
>> -wireless-tools
>> -wvdial
>> -xorg-x11-libs
>> -xorg-x11-Mesa-libGL
>> -ypbind
>> -yp-tools
>>
>> %post
>> ------------------------------------------------------------------------
>> Jim Wildman, CISSP, RHCE       jim at rossberry.com http://www.rossberry.com
>> "Society in every state is a blessing, but Government, even in its best
>> state, is a necessary evil; in its worst state, an intolerable one."
>> Thomas Paine
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
> 
> 


-- 
John Newbigin
Computer Systems Officer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin