removed libreoffice, and lots of packages not needed for the purpose of providing an Edu version
libreoffice does not uninstall cleanly, in the sense that many of its dependent packages (needed by nothing else) are needlessly left in place.
examples:
/home/*/.config/libreoffice/3/user/uno_packages/cache/*
/home/*/.libreoffice/3/user/uno_packages/cache/*
/home/*/.libreoffice/3-suse/user/config/uno_packages/cache/*
Install
deborphan and
gtkorphan and use them to help identify those leftovers.
Help -- meaning use discretion in deciding what to remove; don't trust autoremove to wisely decide (it will not, cannot).
Some of the packages I would choose to uninstall at this step, you (for your respin) would disagree with.
Here, I would remove anything postscript-document related. I would also remove most, if not all, of the CUPS infrastructure.
Next step, consider whether the expected audience is"global", vs will only ever be installed/used locally to your region.
If local only,
dpkg-reconfigure locales and pare down the list of to-be-supported locales (languages).
Afterward, run
bleachbit (twice, once as user, again as root) (also check whether etc/skel contains any locale-specific bloat)
followed by
updatedb (to freshen the mlocate.db file)
The above 2 steps will clear away 10,000+ unneeded files. The effect on the resultant iso, though, may only be 25MB or so.
If your thinning is thorough / aggressive, the savings can be improved quite a bit further.
Next step, IMO, is to install and run from root terminal the tiny
ncdu (ncurses disk usage) utility.
ncdu enables you to quickly, easily,"walk" through your filesystem dirs to identify"what's taking up how much room".
/usr/share/themes, /usr/share/icons ...do you really want to keep all the existing"stuffs" installed?
Fonts? How many do you need/want installed, and did you realize which of the installed fonts is hogging however much storage space?
man ncdu -- although ncdu enables you to selectively delete items, I perform the deletions via a GUI file manager.
Does ANY installed iconset really need to ship with 256px versions ?!? (I've even seen 512px tile images shipped in some iconsets!)
For your distro, maybe some of the apps _are_ displaying super-large icons.
I can recite at least a dozen other"steps" to pursue, paths containing"unneeded bloat"...
...but, compared to the steps above, chasing those provides diminishing returns.
-- ANY *.pyc file can be deleted (or excluded/omitted when building the iso)
-- python, perl, and vim paths contain a LOT of locale files (missed by bleachbit)
/usr/share/perl/5.18.1/Unicode/Collate/Locale/
/usr/share/vim/vim*/lang/*
-- /usr/share/doc contains a LOT of files that 5yr-olds will never read
-- if shipping iceweasel, most of the ~/profile/../*.sqlite files can be excluded/deleted (even from the etc/skel copy)
-- aptitude, if present, and apt-xapian-index (drives the in-toolbar version of the synaptic search) can be removed
(along with the huge xapian search index file)
Do I see docfetcher icon in the panel of your screenshot?
Any prebuilt docfetcher/beagle index could be excluded from the iso (call a shell script from the installer to rebuild the index)
melodie, I hope you'll jot notes as you perform the various"cleaning" steps,
and post a followup to let us know"how much space freed" by each step.
Speaking of notes, below I'm pasting a mostly-notes portion of my own cleanup script:
Code: Select all
rm /usr/share/icons/gnome/icon-theme.cache
# ^--- if this exists, its size will be 62Mb ^^^^^^ 78.7Mb as seen in antixFull
# you can later regenerate the cache manually, at will
# (if desired, and if it doesn't get regenerated automatically)
# via cli gtk-update-icon-cache <path to your icon theme>
#
# ISSUE: EVEN IF YOU NEVER ELECT TO USE/SEE THIS ICON THEME
# CAN'T UNINSTALL THE GNOME THEME B/C IT IS MARKED AS A"DEPENDENCY" OF BASIC DEBIAN PKGS
# in my testing, absence of the cache is a non-issue
#
# v---- 73.4Mb as seen in antixFull
rm /usr/share/icons/HighContrast/icon-theme.cache
#
# these are automatically regenerated by each"apt-get update" operation 42Mb+/usr/share/vim/
rm /var/cache/apt/*.bin
#
# ANY CRUFT PRESENT IN /skel REPRESENTS A TWO(three four...)FOLD PROBLEM
# because an additional copy gets created in /home/ for each new user
# v--- these will be autogenerated at first run, if absent, and are present
# from the outset (new install, browser not yet launched) 17Mb /skel cruft + 13Mb+ per user
rm /__etc/skel/.mozilla/firefox/*.default/places.sqlite
rm /__etc/skel/.mozilla/firefox/*.default/cookies.sqlite
rm /__etc/skel/.mozilla/firefox/*.default/downloads.sqlite
rm /__etc/skel/.mozilla/firefox/*.default/formhistory.sqlite
rm /__etc/skel/.mozilla/firefox/*.default/webappsstore.sqlite
rm /__etc/skel/.mozilla/firefox/*.default/signons.sqlite
rm /__etc/skel/.mozilla/firefox/*.default/startupCache/*
rm -Rf /__etc/skel/.mozilla/firefox/*.default/thumbnails/*
rm -Rf /__etc/skel/.mozilla/firefox/*.default/safebrowsing/*
# ^--- this 17Mb is NOT a comprehensive list of"what all" may be safely excluded
# but it's better than complete inattention to this cruft by the iceweasel package maintainer
#
# note: bleachbit"vacuums" places.sqlite ...and the resulting file is still 10Mb (size on disk) (i suspect they're highly compressable in squashfs)
rm /home/*/.mozilla/firefox/*.default/cookies.sqlite
rm /home/*/.mozilla/firefox/*.default/places.sqlite
rm /home/*/.mozilla/firefox/*.default/signons.sqlite
rm /home/*/.mozilla/firefox/*.default/formhistory.sqlite
# the following are late (May 2014) additions
rm -Rf /home/*/.cache/mozilla/firefox/*/Cache/*
# rm /home/*/.cache/mozilla/firefox/*default/thumbnails/* Grrrr user may have multiple profiles
rm -Rf /home/*/.cache/mozilla/firefox/*/thumbnails/*
# ^---- reflects my choice. Other user may wish to preserve signons+formhistory
# /home/*/.mozilla/plugins/libflashplayer.so 18Mb per user
# /__etc/skel/.mozilla/plugins/libflasplayer.so 18Mb
# ^------ placing ONE instance pathed within /usr/local/share
# and symlinks to it @ home and /etc will free at least 18Mb
# THIS IS A DISTROMAKER DESIGN CONSIDERATION, NOT A CLEANUP ITEM