How to Upgrade an Application in VM

26 views
Skip to first unread message

Ray Joseph

unread,
Jan 4, 2020, 9:31:56 PM1/4/20
to qubes-users
Qubes R4.0.2 rc3

I would like to get the latest Sagemath and Jupyter on a VM. 

I am using the Fedora 30 tempateVM which I updated from 29.  I then cloned the Fedora 30, and added sagemath with:
dnf install sagemath

Is there a term for this type of installation?

The next version of sagemath is to have full Python 3 capabilities. 

I am concerned on how to install the latest because when I made the initial sagemath the newest version was 8.9 but the install was 8.8.  When the next version comes out, I would like to assure I get the latest.

How do I get the latest?

What concerns/risks should I consider for this installation?


Chris Laprise

unread,
Jan 4, 2020, 11:14:38 PM1/4/20
to Ray Joseph, qubes-users
On 1/4/20 9:31 PM, Ray Joseph wrote:
> Qubes R4.0.2 rc3
>
> I would like to get the latest Sagemath and Jupyter on a VM.
>
> I am using the Fedora 30 tempateVM which I updated from 29.  I then
> cloned the Fedora 30, and added sagemath with:
> dnf install sagemath
>
> Is there a term for this type of installation?

That's simply "template installation" or perhaps "customized template".
This is usually the safest way to add apps.

>
> The next version of sagemath is to have full Python 3 capabilities.
>
> I am concerned on how to install the latest because when I made the
> initial sagemath the newest version was 8.9 but the install was 8.8.
> When the next version comes out, I would like to assure I get the latest.
>
> How do I get the latest?
>
> What concerns/risks should I consider for this installation?

This page seems to indicate 8.9 isn't available yet from the fedora
site: https://apps.fedoraproject.org/packages/sagemath

The sage site offers new packages for Debian and Ubuntu (they appear to
strongly prefer these two) but not Fedora, which is why I think it
becomes available on Debian before Fedora. But downloading directly
isn't really secure in this case.

Probably the easiest route using secure update channels is to install a
Qubes Debian 10 template and enable 'Sid' repository which has the 8.9
version. However, there is some risk that the template could break so
clone the template first.

Debian 10 instructions:

1. Create a file '/etc/apt/apt.conf.d/local' containing this line:

APT::Default-Release "stable";

2. Edit the file '/etc/apt/sources.list' to add this line:

deb https://deb.debian.org/debian sid main

3. Run 'sudo apt-get update' to refresh the package db. Then you can
install the 8.9 version with 'sudo apt-get install sagemath -t sid'.

--

Chris Laprise, tas...@posteo.net
https://github.com/tasket
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886

Ray Joseph

unread,
Jan 5, 2020, 10:06:47 PM1/5/20
to qubes-users
Chris,

This sounds like a great path.  I will do it.

Thank you 
Reply all
Reply to author
Forward
0 new messages