Erick Perez
2006-Sep-28 06:36 UTC
[CentOS] Trimming the fat out of a Centos 4.4 Installation
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)? I am in the process of creating a small Centos-4.4-based Asterisk box and I need to boot it from a CF card. Deleting useless packages will help me do what i want. Example: even a minimum install of Centos 4.4 (or Redhat EL for what is worth) includes CUPS, among other things. Any document hyperlink will be more than welcomed!! The result will be posted to the link for others to use. -- ------------------------------------------------------------ Erick Perez Panama Sistemas Integradores de Telefonia IP y Soluciones Para Centros de Datos Panama, Republica de Panama Cel Panama. +(507) 6694-4780 ------------------------------------------------------------
Steve Bergman
2006-Sep-28 07:25 UTC
[CentOS] Trimming the fat out of a Centos 4.4 Installation
On Thu, 2006-09-28 at 01:36 -0500, 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)?Yes, isn't it insane? I usually just start with: rpm -qa --queryformat "%{SIZE}\t%{NAME}\n" | sort -nr | less and then start in with: rpm -e packagename noting what dependencies each package wants to take with it, of course. Then, when I reach a point of diminishing returns with that, I switch strategies: cd / du -ak | sort -nr | less And start hacking away at any obvious offenders. This breaks package integrity, of course, but on CF, you may not care. And then, just on general principles, because I simply detest the wretched, bloaty thing, and all its associated detritus: find / -name "*emacs*" | sort -nr | less And then I call RMS at 2AM to tell him how much I despise it... but I fear I'm veering off topic. ;-) -Steve
Karanbir Singh
2006-Sep-28 10:12 UTC
[CentOS] Trimming the fat out of a Centos 4.4 Installation
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)?it is yes, the base minimum is what App and Solution vendors are then able to assume will be the minimum functional level of a machine, running CentOS.> I am in the process of creating a small Centos-4.4-based Asterisk box > and I need to boot it from a CF card. Deleting useless packages will > help me do what i want. > Example: even a minimum install of Centos 4.4 (or Redhat EL for what > is worth) includes CUPS, among other things.it comes from the LSB compatibility specifications. cups is required as is a MTA and a bunch of other things. if you really want to trim down, get yum going and rpm -qa, check what you dont want, then remove it. - KB -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq
Jim Perrin
2006-Sep-28 11:06 UTC
[CentOS] Trimming the fat out of a Centos 4.4 Installation
> Any document hyperlink will be more than welcomed!!http://www.owlriver.com/tips/tiny-centos/ You did google for this correct? Tiny Centos reveals first hit success.> The result will be posted to the link for others to use.Assuming they look for it :-P -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
Jim Wildman
2006-Sep-28 12:49 UTC
[CentOS] Trimming the fat out of a Centos 4.4 Installation
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