For the size question, and using Michał Masłowski's proposal (i.e., the size of the BZ2 tarballs), here is the result when only the major versions are considered (e.g., 3.5 but not 3.5.4):
# Version Linux Linux-libre absolute-removal relative-removal
2.6.27 49175.6 48049.2 1126.42 2.29061%
2.6.28 51431 50073.8 1357.19 2.63886%
2.6.29 55253.3 53721.8 1531.46 2.77171%
2.6.30 58042.9 56456.6 1586.23 2.73285%
2.6.31 60053.5 58247.4 1806.17 3.00759%
2.6.32 62914.2 61160.5 1753.7 2.78744%
2.6.33 64713.4 62759.9 1953.47 3.01865%
2.6.34 66048.5 64181.5 1866.95 2.82664%
2.6.35 67681.4 65894.9 1786.42 2.63945%
2.6.36 68630 66781 1848.98 2.69414%
2.6.37 71853.3 69104.9 2748.47 3.82511%
2.6.38 72987.4 70398.1 2589.32 3.54763%
2.6.39 74313 71986.3 2326.73 3.13098%
3.1 75381.1 73003.1 2377.97 3.1546%
3.2 76316.2 73724.8 2591.42 3.39564%
3.3 77112.9 74726.3 2386.61 3.09495%
3.4 78294.4 75664.8 2629.66 3.35868%
3.5 79080.5 76673.2 2407.31 3.04413%

The sizes are in kB.

Here is the script I wrote (you need to install 'curl'):
#!/bin/sh

TMP=`mktemp -t linux-libre-removal.sh.XXXXXX`
trap "rm $TMP* 2>/dev/null" 0
for nb in `seq 27 39`
do
    echo -n "2.6.$nb " >> $TMP
curl -sI https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.$nb.tar.bz2 | fgrep Length | cut -d ' ' -f 2 >> $TMP curl -sI http://linux-libre.fsfla.org/pub/linux-libre/releases/2.6.$nb-gnu/linux-libre-2.6.$nb-gnu.tar.bz2 | fgrep Length | cut -d ' ' -f 2 >> $TMP.libre
done
for nb in `seq 5`
do
    echo -n "3.$nb " >> $TMP
curl -sI https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.$nb.tar.bz2 | fgrep Length | cut -d ' ' -f 2 >> $TMP curl -sI http://linux-libre.fsfla.org/pub/linux-libre/releases/3.$nb-gnu/linux-libre-3.$nb-gnu.tar.bz2 | fgrep Length | cut -d ' ' -f 2 >> $TMP.libre
done
echo "# Version Linux Linux-libre absolute-removal relative-removal"
paste -d ' ' $TMP $TMP.libre | awk '{ $2 /= 1024; $3 /= 1024; removal = $2 - $3; print $1, $2, $3, removal, removal * 100 / $2 "%" }'

Please guys, stop asking questions that make me want to write a script... I cannot resist! :-)

Reply via email to