#!/bin/bash # N.B. This script was not actually applied, but it does # list the clean ups as they were applied. You can try # running it, if you dare... # Starting size: 73 MB # Ending size: 26 MB #Purge iptables, ipchains, base-config, apt, modutils dpkg -purge iptables dpkg -purge ipchains dpkg -purge base-config dpkg -purge apt dpkg -purge modutils #No modules for the psilinux kernel, so we don't need modutils. # (Removing apt removes the archived *.deb files) cd /sbin rm -rf fsck.minix fsck.ext2 fsck.ext3 ln -s e2fsck fsck.ext2 rm mkfs.minix mkfs.ext2 mkfs.ext3 ln -s mke2fs mkfs.ext2 cd /usr/share/unidata rm UnicodeData-2.txt ln -s UnicodeData-2.1.8.txt UnicodeData-2.txt #(saves 631 KB) cd /var/lib/dpkg rm -rf *-old # rm the available-old and status-old files cd /usr/lib/gconv #(4532 KB) #[What are these used for?] rm -rf *NO* *DK* *DE* *CN* *JP* *KR* *TW* *ES* *FI* *FR* *PT* *IT* *PT* *CYR* rm -rf *DE* GREEK* GEOR* JOH* MAC* BIG* *GB* rm -rf IBM93* #Now down to (1521 KB). cd /usr/share/locale #(6285 KB) rm -rf ca cs da de el eo es et* fi fr gl hr hu id is it ja ko kb* nl no pl rm -rf id nb* pt* ro ru sk sl sv tr uk wa zh* #Now down to (68 K) cd /usr/share/zoneinfo #(1402 KB) rm -rf Afr* Ant* Arc* Asi* Atl* Aus* Braz* rm -rf CET CST* Can* Chi* Cub* EE* EST* Egy* Eir* Eur* rm -rf GB* HST Hong* Ice* Ind* Ira* Isr* Jam* Kwaj* Lib* Mex* Mide* Nav* rm -rf Pac* Pol* Por* Sing* Tur* Zul* rm -rf posix/Afr* posix/Atl* posix/Ind* posix/As* posix/Eur* posix/Arc* posix/Mid* posix/Bra* posix/Can* posix/Chil* posix/Mex* rm -rf posix/Ant* posix/Pac* rm -rf right/Afr* right/Atl* right/Ind* right/Ant* right/Asia* right/Eur* rm -rf right/Ind* right/Ant* right/Pac* right/Aus* right/Mid* right/Arc* rm -rf right/Bra* right/Can* right/Chil* right/Mex* #Now down to (612 KB) cd /usr/share/man #(1317 KB) rm -rf de es fr it ja pt* ru* sv #Now down to (1073 KB) cd /usr/bin rm -rf perl perl-5.6 ln -s perl5.6.1 perl ln -s perl5.6.1 perl-5.6 #(saves 1641 KB) rm -rf nview rm -rf nex ln -s nvi nview ln -s nvi nex #(saves 700 KB) cd /usr/share/doc #(2946 KB) rm -rf */READ* rm -rf */T* rm -rf */chang* */copy* */CHAN* */RELE* */AUTH* */NEWS* #Now down to (816 KB) cd / rmdir cdrom boot floppy initrd opt #merely some clean up cd /var/tmp/vi.recover rm -rf * cd