Hi,
Despite the fact that I don't want to be called "the one who reinvented
the wheel", I'm still writing this mail :)
I've found that some YaST packages have a huge amount of documentation
but honestly, who reads such documentation and how often? Do we really
want to have all this data in a minimal installation?
This script checks all yast2* packages for size of their documentation
and prints a sum at the end:
SUM=0; for size in `du -s /usr/share/doc/packages/yast2* | \
sed 's/\([^ \t]*\).*/\1/'`; do \
echo $size; SUM=`expr 0${SUM} + ${size}`; done; \
echo; echo "Sum: ${SUM}"
My system has about 58 MB of YaST documentation written in HTML.
These are the biggest sinners:
du -s /usr/share/doc/packages/yast2* | \
sort --general-numeric-sort | tail -n 10
646 /usr/share/doc/packages/yast2-repair
694 /usr/share/doc/packages/yast2-bootloader
737 /usr/share/doc/packages/yast2-nis-server
740 /usr/share/doc/packages/yast2-installation
1030 /usr/share/doc/packages/yast2-pkg-bindings
1073 /usr/share/doc/packages/yast2-network
1710 /usr/share/doc/packages/yast2-printer
2619 /usr/share/doc/packages/yast2
12372 /usr/share/doc/packages/yast2-storage
23191 /usr/share/doc/packages/yast2-core
Sizes are in kilobytes.
------------------------------------------------------------------------
The best solution could be creating YaST "${name}-doc" packages
containing only the documentation. They could be installed by default on
a normal KDE/GNOME installation but not selected for a minimal installation.
------------------------------------------------------------------------
It seems to be quite easy change in an RPM .spec file...
At least these packages should be split into ${name} and ${name}-doc:
yast2-installation (0.7 MB), yast2-pkg-bindings (1 MB), yast2-network (1
MB), yast2-printer (1.7 MB), yast2 (2.6 MB), yast2-storage (12 MB), and
yast2-core (22.6 MB)
Only these can save up to 41 MB.
What do you think of that?
--
Lukas Ocilka, YaST Developer (xn--luk-gla45d)
-----------------------------------------------------------------
SUSE LINUX, s. r. o., Lihovarska 1060/12, Praha 9, Czech Republic