Flatpak - 1 GB instead of 0.1 GB for installing Octave - Page 1
Forum section: electronics / general

author: RoGeorge
author_rank: Super Contributor
timestamp: April 10, 2020, 06:05:14 pm
content: This is the first time using flatpak to install Octave on a Kubuntu 20.04 LTS. Flatpak is the way to install the current stable Octave, according to Octave websitehttps://www.gnu.org/software/octave/To my surprise, Flatpack downloaded and installed an additionally 900 MB for a 100 MB Octave.Why? Is this normal, am I doing it right?Code:~$ flatpak install flathub org.octave.OctaveLooking for matches…Required runtime for org.octave.Octave/x86_64/stable (runtime/org.kde.Sdk/x86_64/5.14) found in remote flathubDo you want to install it? [Y/n]:org.octave.Octave permissions:ipc network pulseaudio wayland x11 dri file access  dbus access  host, xdg-config/kdeglobals:ro com.canonical.AppMenu.Registrar, org.freedesktop.FlatpakDownload ID Branch Op Remote94.4 MB / 94.9 MB 1. [✓] org.freedesktop.Platform.GL.default 19.08 i flathub101.9 MB / 102.0 MB 2. [✓] org.freedesktop.Platform.GL.nvidia-440-64 1.4 i flathub8.6 MB / 8.7 MB 3. [✓] org.freedesktop.Platform.VAAPI.Intel 19.08 i flathub857.5 kB / 916.8 kB 4. [✓] org.freedesktop.Platform.openh264 2.0 i flathub108.4 kB / 156.7 kB 5. [✓] org.gtk.Gtk3theme.Breeze 3.22 i flathub16.8 kB / 340.6 MB 6. [✓] org.kde.Sdk.Locale 5.14 i flathub684.7 MB / 769.8 MB 7. [✓] org.kde.Sdk 5.14 i flathub121.8 MB / 132.3 MB 8. [✓] org.octave.Octave stable i flathubInstallation complete.

author: Karel
author_rank: Super Contributor
timestamp: April 10, 2020, 06:21:11 pm
content: Just install whatever package you want with "apt-get install <package>" and forget that flatpak bullshit.When I said I prefer to compile my programs statically with some crucial libraries instead of using the libraries providedby the system, they said that I shouldn't do that because it's a waist of memory and space, and the libraries don't get updatedwhen the system receives updates, etc.Now, they sing hallellujah for flatpak which exactly does that, avoiding the system libraries...

author: RoGeorge
author_rank: Super Contributor
timestamp: April 10, 2020, 09:37:51 pm
content: Before installing with flatpak, I tried with apt install, but it didn't found octave, so I thought it's not in the repository any more. There was an Octave in the ubuntu GUI installer (named Discover), but packages there are using 'snap', which I was trying to avoid, so I used 'flatpak' as recommended by Octave, in the hope the flatpak install will be lighter.I avoid snap not for the extra space required, but because snap programs seems to be starting slower when compared with native installs.No idea why apt install didn't worked the first time, I guess apt update went wrong the first time, because the .bash-history looks like thatCode:sudo apt updatesudo apt install octavesudo apt install flatpacksudo apt updatesudo apt install flatpaksudo apt install plasma-discover-flatpak-backendflatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepoflatpak install flathub org.octave.OctaveHowever, I was a little unfair to consider Octave being only 0.1 GB. With Octave installed from apt install, it is not 1 GB like it was with flatpak, but it still is about 0.5 GB when counted with all the dependencies:Code:~$ sudo apt install octaveReading package lists... DoneBuilding dependency treeReading state information... DoneThe following additional packages will be installed:aglfn ca-certificates-java default-jre-headless epstool gnuplot-data gnuplot-qt gsfonts imagemagick-6-common java-common libaec0 libamd2 libarpack2 libblas3 libcamd2 libccolamd2libcholmod3 libcxsparse3 libemf1 libfltk-gl1.3 libfltk1.3 libgfortran5 libgl2ps1.4 libglpk40 libgraphicsmagick++-q16-12 libgraphicsmagick-q16-3 libhdf5-103 liblapack3 liblqr-1-0liblua5.3-0 libmagick++-6.q16-8 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmetis5 liboctave7 libopenblas0 libopenblas0-pthread libplot2c2 libpstoedit0c2a libqhull7 libqrupdate1libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libsz2 libtext-unidecode-perl libumfpack5 libwmf0.2-7 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libxml-libxml-perl libxml-namespacesupport-perllibxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl octave-common octave-doc openjdk-11-jre-headless pstoedit tex-common texinfoSuggested packages:default-jre gnuplot-doc libiodbc2-dev default-libmysqlclient-dev graphicsmagick-dbg libmagickcore-6.q16-6-extra libqscintilla2-doc libwmf0.2-7-gtk libxml-sax-expatxs-perl liboctave-devfonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei xfig | ivtools-bin | tgif | transfig debhelper texlive-base texlive-latex-basetexlive-plain-generic texlive-fonts-recommendedThe following NEW packages will be installed:aglfn ca-certificates-java default-jre-headless epstool gnuplot-data gnuplot-qt gsfonts imagemagick-6-common java-common libaec0 libamd2 libarpack2 libblas3 libcamd2 libccolamd2libcholmod3 libcxsparse3 libemf1 libfltk-gl1.3 libfltk1.3 libgfortran5 libgl2ps1.4 libglpk40 libgraphicsmagick++-q16-12 libgraphicsmagick-q16-3 libhdf5-103 liblapack3 liblqr-1-0liblua5.3-0 libmagick++-6.q16-8 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmetis5 liboctave7 libopenblas0 libopenblas0-pthread libplot2c2 libpstoedit0c2a libqhull7 libqrupdate1libqscintilla2-qt5-15 libqscintilla2-qt5-l10n libsz2 libtext-unidecode-perl libumfpack5 libwmf0.2-7 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libxml-libxml-perl libxml-namespacesupport-perllibxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl octave octave-common octave-doc openjdk-11-jre-headless pstoedit tex-common texinfo0 upgraded, 60 newly installed, 0 to remove and 0 not upgraded.Need to get 92.3 MB/93.1 MB of archives.After this operation, 443 MB of additional disk space will be used.Do you want to continue? [Y/n]TL;DR, TIL:1. When common packages are missing, try apt update one more time.2.Quote3. Found this nice comparison table between flatpak and snap:https://askubuntu.com/questions/866511/what-are-the-differences-between-snaps-appimage-flatpak-and-others