Latest Octave for Ubuntu?

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Latest Octave for Ubuntu?

Jeffrey Layton
Good morning,

When I try, "apt-get install octave" on Ubuntu 18.04 I get an "old" version. I would like to install the latest (or at least close). I can't find am Ubuntu repo for this - does anyone know of one?

Thanks!

Jeff



Reply | Threaded
Open this post in threaded view
|

RE: Latest Octave for Ubuntu?

steph

 

From: Help-octave <help-octave-bounces+steph=[hidden email]> On Behalf Of Jeffrey Layton
Sent: Wednesday, 06 May 2020 16:21
To: [hidden email]
Subject: Latest Octave for Ubuntu?

 

Good morning,

 

When I try, "apt-get install octave" on Ubuntu 18.04 I get an "old" version. I would like to install the latest (or at least close). I can't find am Ubuntu repo for this - does anyone know of one?

 

Thanks!

 

Jeff

 

 

Download from https://www.gnu.org/software/octave/download.html and install. First install via the Ubuntu repository otherwise you’ll problems with dependencies

 

Steph



Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Nir Krakauer-3
In reply to this post by Jeffrey Layton
The most configurable solution (which I use) is to compile Octave
yourself, see [1] for details.

There are also several other quicker options to get an up-to-date
release, such as using an Octave Snap or Flatpak [2], although these
can sometimes have problems also.

[1] https://wiki.octave.org/Octave_for_Debian_systems#Building_Octave_from_source
[2] https://wiki.octave.org/Octave_for_GNU/Linux#Distribution_independent


Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Nicklas Karlsson
In reply to this post by Jeffrey Layton
> Good morning,
>
> When I try, "apt-get install octave" on Ubuntu 18.04 I get an "old"
> version. I would like to install the latest (or at least close). I can't
> find am Ubuntu repo for this - does anyone know of one?
>
> Thanks!
>
> Jeff

Compile from source code might be an option, most of the time I however found there are not big difference between versions though cumulative improvements over the years make a difference.


Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Ardid, Salva-2

>   > Good morning,
>   >
>   > When I try, "apt-get install octave" on Ubuntu 18.04 I get an "old"
>   > version. I would like to install the latest (or at least close). I can't
>   > find am Ubuntu repo for this - does anyone know of one?
>   >
>   > Thanks!
>   >
>   > Jeff
>  
>   Compile from source code might be an option, most of the time I however
>   found there are not big difference between versions though cumulative
>   improvements over the years make a difference.

Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Ardid, Salva-2
I think I found a weird bug in kmail (my email client) and the text I added to the bottom of my reply went to the limb (the purpose of this sentence is to avoid this happening again; please see my response below)

  >   > Good morning,
  >   >
  >   > When I try, "apt-get install octave" on Ubuntu 18.04 I get an "old"
  >   > version. I would like to install the latest (or at least close). I can't
  >   > find am Ubuntu repo for this - does anyone know of one?
  >   >
  >   > Thanks!
  >   >
  >   > Jeff
  >  
  >   Compile from source code might be an option, most of the time I however
  >   found there are not big difference between versions though cumulative
  >   improvements over the years make a difference.
 
Give flatpak's package a try, it works great for me.




Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Jeffrey Layton
Honestly, I don't want to build everything from source. I've done it before and I'd rather avoid it.

Second - I don't want to use another package manager with Ubuntu. I like using one so I don't screw up anything. Is it possible to convert from flatpack to debian .pkg?

Since it's only available for flatpack, I'm guessing there are package managers for the various distros? So there isn't one for CentOS or Ubuntu or Debian?

Thanks!

Jeff


On Wed, May 6, 2020 at 3:27 PM Salva Ardid <[hidden email]> wrote:
I think I found a weird bug in kmail (my email client) and the text I added to the bottom of my reply went to the limb (the purpose of this sentence is to avoid this happening again; please see my response below)

  >   > Good morning,
  >   >
  >   > When I try, "apt-get install octave" on Ubuntu 18.04 I get an "old"
  >   > version. I would like to install the latest (or at least close). I can't
  >   > find am Ubuntu repo for this - does anyone know of one?
  >   >
  >   > Thanks!
  >   >
  >   > Jeff
  >   
  >   Compile from source code might be an option, most of the time I however
  >   found there are not big difference between versions though cumulative
  >   improvements over the years make a difference.

Give flatpak's package a try, it works great for me.




Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Ardid, Salva-2

El dimecres, 6 de maig de 2020, a les 11:59:49 EDT, Jeffrey Layton va escriure:

> Honestly, I don't want to build everything from source. I've done it before
> and I'd rather avoid it.
>
> Second - I don't want to use another package manager with Ubuntu. I like
> using one so I don't screw up anything. Is it possible to convert from
> flatpack to debian .pkg?
>
> Since it's only available for flatpack, I'm guessing there are package
> managers for the various distros? So there isn't one for CentOS or Ubuntu
> or Debian?
>
> Thanks!
>
> Jeff

Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Ardid, Salva-2
In reply to this post by Jeffrey Layton
[Not again!!!]

Please see replies below:

> Honestly, I don't want to build everything from source. I've done it before
> and I'd rather avoid it.

I understand, building is flexible, but it's also complex (many options) and messy with the host system
 
> Second - I don't want to use another package manager with Ubuntu. I like
> using one so I don't screw up anything. Is it possible to convert from
> flatpack to debian .pkg?

One of the main points of flatpak is not to mess up with the host system. And it's easy to use once you install flatpak (e.g., from the launchap repo if you want to be up-to-date)

Note that for Octave devs is much more efficient to maintain one general package than many for different distros and have to control the conflicts of libraries of their distro versions

There is no way to convert from flatpak to deb
 
> Since it's only available for flatpack, I'm guessing there are package
> managers for the various distros? So there isn't one for CentOS or Ubuntu
> or Debian?

Some distros may include Octave in their official repos, but for instance Ubuntu 18.04 was released on 04/2018 so it has the latest Octave version of that moment

I totally suggest the flatpak way but feel free to use or not

> Thanks!
>
> Jeff

Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Jeffrey Layton
Salva,

Yep, 18.04 is a bit old but some tools I use require it (no CentOS or RHEL). Maybe when they start supporting 20.04, I can upgrade. In the meantime, I would have to build flatpack for 18.04 (it's not in the standard repos). Not excited about that.

In the meantime, it looks like I need to build the important bits from scratch.

I appreciate the time and input you and everyone put in.

Thanks!

Jeff


On Wed, May 6, 2020 at 4:26 PM Salva Ardid <[hidden email]> wrote:
[Not again!!!]

Please see replies below:

> Honestly, I don't want to build everything from source. I've done it before
> and I'd rather avoid it.

I understand, building is flexible, but it's also complex (many options) and messy with the host system

> Second - I don't want to use another package manager with Ubuntu. I like
> using one so I don't screw up anything. Is it possible to convert from
> flatpack to debian .pkg?

One of the main points of flatpak is not to mess up with the host system. And it's easy to use once you install flatpak (e.g., from the launchap repo if you want to be up-to-date)

Note that for Octave devs is much more efficient to maintain one general package than many for different distros and have to control the conflicts of libraries of their distro versions

There is no way to convert from flatpak to deb

> Since it's only available for flatpack, I'm guessing there are package
> managers for the various distros? So there isn't one for CentOS or Ubuntu
> or Debian?

Some distros may include Octave in their official repos, but for instance Ubuntu 18.04 was released on 04/2018 so it has the latest Octave version of that moment

I totally suggest the flatpak way but feel free to use or not

> Thanks!
>
> Jeff


Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Mike Miller-4
On Wed, May 06, 2020 at 16:36:47 +0000, Jeffrey Layton wrote:
> Yep, 18.04 is a bit old but some tools I use require it (no CentOS or
> RHEL). Maybe when they start supporting 20.04, I can upgrade. In the
> meantime, I would have to build flatpack for 18.04 (it's not in the
> standard repos). Not excited about that.

It is in the 18.04 repository, it's spelled "flatpak".

> In the meantime, it looks like I need to build the important bits from
> scratch.

As an Octave developer and someone who packages Octave for Debian,
Flatpak, and Snap, I would agree that flatpak is exactly meant for you.

When you are able to update to Ubuntu 20.04, you will get Octave version
5.2.0. But as with all LTS, that will remain 5.2.0 for the next two
years. It's brand new now, but it will be quite stale in February 2022.

--
mike



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Ardid, Salva-2
In reply to this post by Jeffrey Layton
I use Kde neon user edition 18.04 that builds on ubuntu 18.04, and it will probably move to 20.04 by the time of 20.04.1, so I'm like you in this regard...

Give flatpak a try, it will likely grow on you ;-)

As Mike said, I see flatpak in 3 official ubuntu repos see below (and additonally, the first one of the list comes from launchpad, but it's maintained by alexlarsson, ie it's official from flatpak):

Package: flatpak
Version: 1.7.2-flatpak2~bionic
Priority: optional
Section: admin
Maintainer: Utopia Maintenance Team <[hidden email]>
Installed-Size: 5,737 kB
Depends: adduser, xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libcap2 (>= 1:2.10), libdconf1 (>= 0.26.0), libfuse2 (>= 2.9.2), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.55.1), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 1.2.0), libostree-1-1 (>= 2019.1-flatpak2~bionic), libpolkit-agent-1-0 (>= 0.105), libpolkit-gobject-1-0 (>= 0.101), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libsystemd0, libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Suggests: avahi-daemon
Conflicts: xdg-app
Replaces: xdg-app
Download-Size: 1,134 kB
APT-Manual-Installed: no
APT-Sources: http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic/main amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 1.0.9-0ubuntu0.1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,479 kB
Depends: bubblewrap (>= 0.2.1), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.49.3), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2018.7), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 750 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 1.0.8-0ubuntu0.18.04.1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,475 kB
Depends: bubblewrap (>= 0.2.1), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.49.3), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2018.7), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 750 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 0.11.3-3
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,908 kB
Depends: bubblewrap (>= 0.1.8), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.44), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2017.14), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 579 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: Application deployment framework for desktop apps

El dimecres, 6 de maig de 2020, a les 12:36:47 EDT, Jeffrey Layton va escriure:


Salva,


Yep, 18.04 is a bit old but some tools I use require it (no CentOS or RHEL). Maybe when they start supporting 20.04, I can upgrade. In the meantime, I would have to build flatpack for 18.04 (it's not in the standard repos). Not excited about that.



In the meantime, it looks like I need to build the important bits from scratch.


I appreciate the time and input you and everyone put in.


Thanks!


Jeff



On Wed, May 6, 2020 at 4:26 PM Salva Ardid <[hidden email]> wrote:

[Not again!!!]

Please see replies below:

> Honestly, I don't want to build everything from source. I've done it before
> and I'd rather avoid it.

I understand, building is flexible, but it's also complex (many options) and messy with the host system

> Second - I don't want to use another package manager with Ubuntu. I like
> using one so I don't screw up anything. Is it possible to convert from
> flatpack to debian .pkg?

One of the main points of flatpak is not to mess up with the host system. And it's easy to use once you install flatpak (e.g., from the launchap repo if you want to be up-to-date)

Note that for Octave devs is much more efficient to maintain one general package than many for different distros and have to control the conflicts of libraries of their distro versions

There is no way to convert from flatpak to deb

> Since it's only available for flatpack, I'm guessing there are package
> managers for the various distros? So there isn't one for CentOS or Ubuntu
> or Debian?

Some distros may include Octave in their official repos, but for instance Ubuntu 18.04 was released on 04/2018 so it has the latest Octave version of that moment

I totally suggest the flatpak way but feel free to use or not

> Thanks!
>
> Jeff







Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Jeffrey Layton
You're great! I did miss-spell flatpak (added the "c"). I just installed it and I will try adding Octave later.

Thanks!

Jeff


On Wed, May 6, 2020 at 4:47 PM Salva Ardid <[hidden email]> wrote:
I use Kde neon user edition 18.04 that builds on ubuntu 18.04, and it will probably move to 20.04 by the time of 20.04.1, so I'm like you in this regard...

Give flatpak a try, it will likely grow on you ;-)

As Mike said, I see flatpak in 3 official ubuntu repos see below (and additonally, the first one of the list comes from launchpad, but it's maintained by alexlarsson, ie it's official from flatpak):

Package: flatpak
Version: 1.7.2-flatpak2~bionic
Priority: optional
Section: admin
Maintainer: Utopia Maintenance Team <[hidden email]>
Installed-Size: 5,737 kB
Depends: adduser, xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libcap2 (>= 1:2.10), libdconf1 (>= 0.26.0), libfuse2 (>= 2.9.2), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.55.1), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 1.2.0), libostree-1-1 (>= 2019.1-flatpak2~bionic), libpolkit-agent-1-0 (>= 0.105), libpolkit-gobject-1-0 (>= 0.101), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libsystemd0, libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Suggests: avahi-daemon
Conflicts: xdg-app
Replaces: xdg-app
Download-Size: 1,134 kB
APT-Manual-Installed: no
APT-Sources: http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic/main amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 1.0.9-0ubuntu0.1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,479 kB
Depends: bubblewrap (>= 0.2.1), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.49.3), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2018.7), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 750 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 1.0.8-0ubuntu0.18.04.1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,475 kB
Depends: bubblewrap (>= 0.2.1), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.49.3), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2018.7), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 750 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 0.11.3-3
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,908 kB
Depends: bubblewrap (>= 0.1.8), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.44), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2017.14), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 579 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: Application deployment framework for desktop apps

El dimecres, 6 de maig de 2020, a les 12:36:47 EDT, Jeffrey Layton va escriure:


Salva,


Yep, 18.04 is a bit old but some tools I use require it (no CentOS or RHEL). Maybe when they start supporting 20.04, I can upgrade. In the meantime, I would have to build flatpack for 18.04 (it's not in the standard repos). Not excited about that.



In the meantime, it looks like I need to build the important bits from scratch.


I appreciate the time and input you and everyone put in.


Thanks!


Jeff



On Wed, May 6, 2020 at 4:26 PM Salva Ardid <[hidden email]> wrote:

[Not again!!!]

Please see replies below:

> Honestly, I don't want to build everything from source. I've done it before
> and I'd rather avoid it.

I understand, building is flexible, but it's also complex (many options) and messy with the host system

> Second - I don't want to use another package manager with Ubuntu. I like
> using one so I don't screw up anything. Is it possible to convert from
> flatpack to debian .pkg?

One of the main points of flatpak is not to mess up with the host system. And it's easy to use once you install flatpak (e.g., from the launchap repo if you want to be up-to-date)

Note that for Octave devs is much more efficient to maintain one general package than many for different distros and have to control the conflicts of libraries of their distro versions

There is no way to convert from flatpak to deb

> Since it's only available for flatpack, I'm guessing there are package
> managers for the various distros? So there isn't one for CentOS or Ubuntu
> or Debian?

Some distros may include Octave in their official repos, but for instance Ubuntu 18.04 was released on 04/2018 so it has the latest Octave version of that moment

I totally suggest the flatpak way but feel free to use or not

> Thanks!
>
> Jeff







Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

sshah
In reply to this post by Mike Miller-4
Hi Mike,

I use AWS instances on the cloud to augment local Mac and Linux computing
resources.  What are the pros and cons of using flatpak for octave-cli on
ubuntu LTS compared to building from source? In particular, does it allow
installation of packages and creating your own .oct files?  How does flatpak
compare with Homebrew in this regard?

Thanks in advance!





--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Jeffrey Layton
In reply to this post by Jeffrey Layton
Salva,

I hate to appear helpless. I think I got octave install using flatpak using the following two commands:


flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo

flatpak install flathub org.octave.Octave

These are from, https://linuxhint.com/install_gnu_octave_packages/. However,  I can't find the "octave" command. I see some things in /var/lib/flatpak/app/org.octave.Octave/x86_64/stable but no commands for running octave.

Jeff



On Wed, May 6, 2020 at 1:18 PM Jeffrey Layton <[hidden email]> wrote:
You're great! I did miss-spell flatpak (added the "c"). I just installed it and I will try adding Octave later.

Thanks!

Jeff


On Wed, May 6, 2020 at 4:47 PM Salva Ardid <[hidden email]> wrote:
I use Kde neon user edition 18.04 that builds on ubuntu 18.04, and it will probably move to 20.04 by the time of 20.04.1, so I'm like you in this regard...

Give flatpak a try, it will likely grow on you ;-)

As Mike said, I see flatpak in 3 official ubuntu repos see below (and additonally, the first one of the list comes from launchpad, but it's maintained by alexlarsson, ie it's official from flatpak):

Package: flatpak
Version: 1.7.2-flatpak2~bionic
Priority: optional
Section: admin
Maintainer: Utopia Maintenance Team <[hidden email]>
Installed-Size: 5,737 kB
Depends: adduser, xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libcap2 (>= 1:2.10), libdconf1 (>= 0.26.0), libfuse2 (>= 2.9.2), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.55.1), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 1.2.0), libostree-1-1 (>= 2019.1-flatpak2~bionic), libpolkit-agent-1-0 (>= 0.105), libpolkit-gobject-1-0 (>= 0.101), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libsystemd0, libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Suggests: avahi-daemon
Conflicts: xdg-app
Replaces: xdg-app
Download-Size: 1,134 kB
APT-Manual-Installed: no
APT-Sources: http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic/main amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 1.0.9-0ubuntu0.1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,479 kB
Depends: bubblewrap (>= 0.2.1), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.49.3), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2018.7), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 750 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 1.0.8-0ubuntu0.18.04.1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,475 kB
Depends: bubblewrap (>= 0.2.1), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.49.3), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2018.7), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 750 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
Description: Application deployment framework for desktop apps

Package: flatpak
Version: 0.11.3-3
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <[hidden email]>
Original-Maintainer: Utopia Maintenance Team <[hidden email]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,908 kB
Depends: bubblewrap (>= 0.1.8), xdg-desktop-portal (>= 0.10), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.27), libglib2.0-0 (>= 2.44), libgpgme11 (>= 1.1.6), libjson-glib-1.0-0 (>= 0.16.0), libostree-1-1 (>= 2017.14), libpolkit-gobject-1-0 (>= 0.99), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libxau6, libxml2 (>= 2.7.4)
Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, policykit-1, shared-mime-info, xdg-desktop-portal-gtk | xdg-desktop-portal-backend
Conflicts: xdg-app
Replaces: xdg-app
Homepage: http://flatpak.org/
Download-Size: 579 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: Application deployment framework for desktop apps

El dimecres, 6 de maig de 2020, a les 12:36:47 EDT, Jeffrey Layton va escriure:


Salva,


Yep, 18.04 is a bit old but some tools I use require it (no CentOS or RHEL). Maybe when they start supporting 20.04, I can upgrade. In the meantime, I would have to build flatpack for 18.04 (it's not in the standard repos). Not excited about that.



In the meantime, it looks like I need to build the important bits from scratch.


I appreciate the time and input you and everyone put in.


Thanks!


Jeff



On Wed, May 6, 2020 at 4:26 PM Salva Ardid <[hidden email]> wrote:

[Not again!!!]

Please see replies below:

> Honestly, I don't want to build everything from source. I've done it before
> and I'd rather avoid it.

I understand, building is flexible, but it's also complex (many options) and messy with the host system

> Second - I don't want to use another package manager with Ubuntu. I like
> using one so I don't screw up anything. Is it possible to convert from
> flatpack to debian .pkg?

One of the main points of flatpak is not to mess up with the host system. And it's easy to use once you install flatpak (e.g., from the launchap repo if you want to be up-to-date)

Note that for Octave devs is much more efficient to maintain one general package than many for different distros and have to control the conflicts of libraries of their distro versions

There is no way to convert from flatpak to deb

> Since it's only available for flatpack, I'm guessing there are package
> managers for the various distros? So there isn't one for CentOS or Ubuntu
> or Debian?

Some distros may include Octave in their official repos, but for instance Ubuntu 18.04 was released on 04/2018 so it has the latest Octave version of that moment

I totally suggest the flatpak way but feel free to use or not

> Thanks!
>
> Jeff







Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Mike Miller-4
In reply to this post by sshah
On Wed, May 06, 2020 at 12:23:48 -0500, sshah wrote:
> I use AWS instances on the cloud to augment local Mac and Linux computing
> resources.  What are the pros and cons of using flatpak for octave-cli on
> ubuntu LTS compared to building from source?

The biggest pro is no need to compile and is very fast and easy to
install and update.

> In particular, does it allow
> installation of packages and creating your own .oct files?

Yes and yes. The main limitation here is the application confinement,
which means you can't run arbitrary system programs from Octave or link
with any library installed in /usr/lib, only what has been bundled in
the flatpak. Some packages, for example the 'gsl' package, require a
third party library, so those may need workarounds.

> How does flatpak
> compare with Homebrew in this regard?

Homebrew for Linux is also a nice solution, and if you're already
familiar with it and it works for you, may be better for your use case.
How does it compare? Well, homebrew is not containerized, installs
individual bottles for each library, utility, and application, while
flatpak is containerized and only installs a runtime and an application
layer.

You can also easily install Octave with docker, guix, spack, and snap,
and each of these tools and packaging systems have their own use cases
and pros and cons.

Cheers,

--
mike



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Latest Octave for Ubuntu?

Ardid, Salva-2
In reply to this post by Jeffrey Layton


Response below:

> Salva,
>
> I hate to appear helpless. I think I got octave install using flatpak using
> the following two commands:
>
> flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
>
> flatpak install flathub org.octave.Octave
>
> These are from, https://linuxhint.com/install_gnu_octave_packages/. However,
>  I can't find the "octave" command. I see some things in
> /var/lib/flatpak/app/org.octave.Octave/x86_64/stable but no commands for
> running octave.

You should be able to start its launcher as all other apps as it has a desktop file that is visible (and it also works in the terminal as octave-cli which is octave's default behavior).

Perhaps this has been introduced later on and it's not present in flatpak's version that is present in the ubuntu repos (1.0.9). You can manually make links and/or copy desktop files from those in flatpak, but I would highly encourage using flatpak from the launchpad repo (1.7.2), which avoids these problems. Also flatpak 1.7.2 has many other goodies compared to 1.0.9, e.g. Using `flatpak install octave` and have it suggest whether what you really want to install is org.octave.Octave from flathub repo...

 
> Jeff