Hello Witold, On Wed, Jun 20, 2018 at 05:09:40AM +0200, Witold Baryluk wrote: > Package: kicad-packages3d > Severity: normal > > > The following NEW packages will be installed: > kicad-packages3d > 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. > Need to get 0 B/314 MB of archives. > After this operation, 4635 MB of additional disk space will be used.
the (hugh) size of the installed package is already mentioned in the package description. > $ apt show kicad-packages3d > Package: kicad-packages3d > Version: 5.0.0~rc2-2 > ... > This package is providing 3D Models for Pcbnew and the footprint editor > usable for KiCad >= 5.0.0. > . > Please note this package will use about 4GB of disk space! Ensure you have > enough free space on your PC or Laptop before you install the package. ^^^^^ ... > That is a lot. It would be nice, if the files itself would be stored > compressed with some light weight compression algorithm like lz4 or zstd, > or even gzip. I've no idea if this is possible within the KiCad binaries and this is a thing which needs to be addressed upstream. The packaging can't do anything useful here. The Debian packages are built as xz compressed archives which has one of the best compressions ratio in nower days so I don't see anything which could be improved on the Debian side. So I suggest you file a upstream bug report as wishlist on the bug tracker for kicad on Launchpad. https://bugs.launchpad.net/kicad Then we could turn this report into a wishlist bug which can track the progress of the upstream bug report. But I suspect upstream won't work on adding a live decompression of 3D data within the near time. > Also on a side note, apt-get it too stupid to detect that the > installation is going to fail due to lack of free space: > > Preparing to unpack .../kicad-packages3d_5.0.0~rc2-2_all.deb ... > Unpacking kicad-packages3d (5.0.0~rc2-2) ... > dpkg: error processing archive > /var/cache/apt/archives/kicad-packages3d_5.0.0~rc2-2_all.deb (--unpack): > cannot copy extracted data for > './usr/share/kicad/modules/packages3d/Package_QFP.3dshapes/LQFP-128_14x14mm_P0.4mm.wrl' > to > '/usr/share/kicad/modules/packages3d/Package_QFP.3dshapes/LQFP-128_14x14mm_P0.4mm.wrl.dpkg-new': > failed to write (No space left on device) > > When it is obvious it is not going to fit: > > $ LC_ALL=C df -h > Filesystem Size Used Avail Use% Mounted on > udev 16G 0 16G 0% /dev > tmpfs 3.2G 340M 2.9G 11% /run > /dev/mapper/wielkiczarny_mirrored--ssd-root 1.8G 1.3G 487M 72% / > /dev/mapper/wielkiczarny_mirrored--ssd-usr 22G 18G 3.0G 86% /usr > tmpfs 16G 1.6G 15G 10% /dev/shm > tmpfs 5.0M 4.0K 5.0M 1% /run/lock > tmpfs 16G 0 16G 0% > /sys/fs/cgroup > /dev/mapper/wielkiczarny_mirrored--ssd-tmp 3.7G 163M 3.3G 5% /tmp > /dev/mapper/wielkiczarny_mirrored--ssd-opt 3.9G 1.1G 2.6G 30% /opt > /dev/mapper/wielkiczarny_mirrored--ssd-var 28G 20G 7.7G 72% /var > /dev/md0 584M 120M 422M 23% /boot > /dev/sdd1 121M 1.2M 120M 1% /boot/efi > wctank4/home 81G 29M 81G 1% /home > ... This is probably a issue in apt (or dpkg). For apt there is a existing bug report #756619 you may want to jump over. https://bugs.debian.org/756619 Regards Carsten