Re: Debian 10 bloats like a balloon (was: Control Debian image size)
Jonas Smedegaard <[email protected]> Wed, 22 May 2019 11:39:58 +0200
| Newsgroups | gmane.linux.debian.devel.embedded |
|---|---|
| Message-ID | <[email protected]> |
--===============1820390387283465515== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Quoting W. Martin Borgert (2019-05-22 10:52:31) > On 2019-03-03 10:48, W. Martin Borgert wrote: > > If there is a small number of huge packages you can't avoid, > > try to rebuild them with less features and/or less > > dependencies. >=20 > I'm currently at moving an older embedded system from Debian 6 > (squeeze) to Debian 10 (buster). Which eats a lot of the flash > and all of the RAM. Also, boot time doubled. Just some examples > how Debian changed in the last years: >=20 > Binary\Debian 6 (squeeze) 10 (buster) > init=C2=B9 0.1 1.2 > ModemManager 0.4 1.2 > NetworkManager 0.6 2.3 > Python=C2=B2 2.3 4.2 > /usr/lib/ + /lib/ 92.0 247.0 >=20 > =C2=B9 upstart -> systemd > =C2=B2 Python 2 -> Python 3 >=20 > Those are the executables, not packages sizes, which might be > even larger. >=20 > Also, new dependencies in the chain led to 300 instead of 200 > depending packages for the same application. >=20 > One way out of this is compiling packages with different compile > options and less dependencies. E.g. libxml2 has a new > dependency, libicu63. Leaving it out frees 30 MiB! libicudata.so > is the single largest library on that system and not needed. >=20 > I'm happy about reading more ideas here, how to unbloat buster. You can save some by avoiding network-manager. Check if you use _both_ python2 and python3, and consider avoiding the=20 parts pulling in one of them. I'd be happy to try analyze more closely, and perhaps codify as a boxer=20 profile, if your system setup is not a secret. - Jonas --=20 * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private --===============1820390387283465515== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAlzlGO0ACgkQLHwxRsGg ASFvMA/8CMKeS71gV316p1ImPuUBea91Qnj3p6O8/90PPOT1xoQX6USoULkxX0Uw zZVZ3ACYVsIknPuv8dnPEiP51+RgcTwRPgMDe0+5R5Y1zhkdgCzsfKnAg/B5zgJP kUpV5vyBQ7u7hGcoEAhceNJPP95zZsRucKEUt0RMYKUOM5lBMfKwzlG1LUY0vtL5 uBTGuB45RVNHrdmZD5k2XqXyEuf5G0z2l98b1pRD+aT+93TUFKAHN+JnvbprxgMd LMoaGVcWg/cHOWsD+QPCN63aNg1MZoy6I2PJn8xisKo4i0acVTHbyx5E6HhA2Df0 oT8RAuDQwt9FsEWI6Ae1IZ8TVV9sYSMH4cySAgZ9UBaT/s97BGWuLHYrowh+Atev 2fxyshqEAHDMG/uUyViTq/xfT8XA91nlfOPxDp3qATFSdPVtarI+OCRWvtrAfagz gIps4WywzS9xUeuvrEf3AfH0r8F/j4ufLBdUfaXKFS111MV+pUeBYCYs3JNT77nK Od3AAftAo6MHlBQLFeXOrXZd46YUUZ/HQ3SqDYZvPXtCuyM60YXklKmDOdFoSRh5 zHVKCrLZyUVkMG6aVoAMR4jhiF7IY3eJaa1RTjfWM2xzyvQsXFUjjPgo52dS4aUZ xvmwz3CvBh/vx76u4UAf8coEqLfWrUjCW5JNrQrdFvy14+EEJEI= =COc8 -----END PGP SIGNATURE----- --===============1820390387283465515==--