Distribution - sagemath/sage GitHub Wiki
Distribution and packaging of SageMath
Here are some links and information about distributing Sage.
Related pages: Sage wiki: days77/packaging, Infrastructure
Source distributions
The release manager releases the source for each development release and each stable release.
- source (stable): http://www.sagemath.org/download-source.html
- source (devel): http://www.sagemath.org/download-latest.html
Containers
Binder
Docker images
CoCalc Docker images (recommended)
As of 2022-08, this is recommended for general use.
Official CoCalc Docker image:
- ships CoCalc, including SageMath
- url: https://hub.docker.com/r/sagemathinc/cocalc/
- GitHub repo: https://github.com/sagemathinc/cocalc-docker
- people: wstein
Other CoCalc Docker images might ship SageMath too:
Computational topology Sage Docker image
- ships: SageMath, SnapPy, Regina, PHCPack, pandas, pe, gridlink, flipper, curver, heegaard, pygraphviz
- url: https://hub.docker.com/r/computop/sage/
- bitbucket repo: https://bitbucket.org/t3m/sagedocker
- dockerfile: https://bitbucket.org/t3m/sagedocker/src/tip/sage/Dockerfile
- people: Nathan Dunfield
Official SageMath Docker images
- https://github.com/sagemath/sage/tree/develop/docker
- url: https://hub.docker.com/u/sagemath/
- admin: see https://github.com/sagemath/sage/blob/develop/docker/Dockerfile#L79
Live USB
Clef agreg
- url: http://clefagreg.dnsalias.org/
- what: bootable "Linux + math software" environment for French "agrégation" exams
- admin: François Boisson
Sage Debian Live (defunct)
- admin: tmonteil
- hosted at: http://sagedebianlive.metelu.net/ (defunct as of 2022-08)
- mailing list: https://sagedebianlive.metelu.net/mailman/listinfo/devel (defunct as of 2022-08)
AIMS Desktop (abandoned 2017)
- url: https://launchpad.net/~aims/+archive/ubuntu/aims-desktop
- admin: pipedream
Package managers
This section is about SageMath packages in package managers, which can be related to particular Linux distributions, or macOS-specific (like Homebrew), or distribution-agnostic, or even OS-agnostic.
See https://repology.org/project/sagemath/versions for an overview of package versions.
- general SageMath packaging mailing list: sage-packaging
Arch-linux
- hosted at: https://www.archlinux.org/packages/community/x86_64/sagemath/
- wiki page: https://wiki.archlinux.org/index.php/SageMath
- repo: https://git.archlinux.org/svntogit/community.git/?h=packages/sagemath
- to install:
sudo pacman -S sagemath
- maintainer: Antonio Rojas
Conda / Anaconda / Miniconda / Conda Forge
- Sage wiki: Conda
- people: isuruf, saraedum
- Feedstocks: https://github.com/conda-forge/sage-feedstock/tree/master/recipe
- Related Sage tickets: https://trac.sagemath.org/query?order=id&desc=1&summary=~conda
Debian
- wiki page: https://wiki.debian.org/DebianScience/Sage
- packages: https://packages.debian.org/sagemath
- package tracker: https://tracker.debian.org/teams/debian-sagemath/
- build logs: https://buildd.debian.org/status/package.php?p=sagemath including ptestlong results
- repo: https://salsa.debian.org/math-team/sagemath
- mailing list: https://lists.alioth.debian.org/mailman/listinfo/debian-science-sagemath
- see also debian-math mailing list
- earlier discussions happened on the debian-science mailing list
- Sage-side mailing list (dormant): debian-sage
- status pages: master branch develop branch
- bug tracker: Debian bugs: package sagemath
- people: Tobias Hansen, Julien Puydt, Jerome Benoit, Ximin Luo
Fedora package
- hosted at: https://apps.fedoraproject.org/packages/sagemath
- wiki page: https://fedoraproject.org/wiki/SIGs/SciTech/SAGE
- see also: https://admin.fedoraproject.org/pkgdb/package/rpms/sagemath/
- mailing list: https://lists.fedoraproject.org/archives/list/[email protected]/
- maintainer: Paulo Cesar Pereira de Andrade (pcpa)
Gentoo: Sage-on-Gentoo
- repository: https://github.com/cschwan/sage-on-gentoo
- Issues: https://github.com/cschwan/sage-on-gentoo/issues
- Maintainer: François Bissey (fbissey/kiwifb)
Homebrew
SageMath can now be installed on macOS via Homebrew by running
brew cask install sage
This fetches the dmg for the app, and installs the app from that dmg. See this post on sage-devel.
Nix
- Nix package manager: https://nixos.org/nix/
- Sage package: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/science/math/sage
- Distribution-agnostic, functional, declarative package managing.
- Should always have 0 doctest failures. To achieve that, some dependency versions are pinned. That is not an issue because Nix allows multiple versions of a package to be installed at the same time. However the goal is to minimize the amount of pinned dependencies.
- Should work on most Linux distributions. More precisely any Linux distro where the Nix package manager is available, e.g. ArchLinux, Debian, others -- definitely works on NixOS.
- Tested on x86 Linux. Probably works on ARM but that is as of yet untested.
- Could run on Darwin, but currently doesn't since some dependencies don't have Darwin-specific patches. If you're a Darwin user, help with that would be very much appreciated. This is work in progress.
- Might even work with the "Windows Subsystem for Linux", but probably needs some patches. Absolutely untested.
- Allows user-installs, given that the nix package manager is already installed.
- To install:
nix-env -iA nixpkgs.sage
or on NixOS just add sage to yourenvironment.systemPackages
- Betas are usually packaged in a PR until the release is final.
- Currently (2018-07-26) maintained by timokau. Any help is appreciated. If you are interested (even if you don't know anything about nix yet), open an issue pinging
@
timokau and I'll help you get started.
RPM package (Fedora, Mandriva)
Ubuntu
- packages: http://packages.ubuntu.com/sagemath derived from the #Debian packages
- earlier PPA: https://launchpad.net/~aims/+archive/ubuntu/sagemath
Other
Please edit this wiki or email slelievre if you know about other package managers providing SageMath... See wikipedia's list of package managers.
Windows
Windows Subsystem for Linux (recommended)
- Under Windows 10, one can run the "Windows Subsystem for Linux" to "run Linux under Windows".
- Documented in Sage installation guide since Sage 9.6.
Cygwin (abandoned 2023)
SageMath installer for Windows (abandoned 2021)
- see https://wiki.sagemath.org/SageWindows
- hosted at: https://github.com/sagemath/sage-windows/releases
- based on the Cygwin port of Sage
Discussion
- mailing list (dormant): sage-windows
Porting to exotic architectures
BSD (2020 most recent activity as of 2022)
- pending tickets: component: "porting: BSD"
- previous effort: Sage on FreeBSD
Solaris (abandoned 2010)
- pending tickets: component: "porting: Solaris"
AIX, HP-UX (abandoned 2011)
- pending tickets: component: "porting: AIX or HP-UX"
Discussion
- Sage Days 77: https://wiki.sagemath.org/days77