Does `sage -upgrade` upgrade the packages as well?

49 views
Skip to first unread message

rickhg12hs

unread,
May 13, 2017, 6:28:31 AM5/13/17
to sage-support
Does `sage -upgrade` upgrade the packages as well?

If not, what's the most efficient way to upgrade all packages to the latest release?


Is this bullet from Sage Docs still acuurate?

  • --upgrade [url] – download, build and install standard packages from given url. If url not given, automatically selects a suitable mirror. If url=’ask’, it lets you select the mirror.

rickhg12hs

unread,
May 13, 2017, 6:33:01 AM5/13/17
to sage-support
In case it makes a difference:

$ ./sage -v
SageMath version 7.6, Release Date: 2017-03-25

Dima Pasechnik

unread,
May 13, 2017, 11:11:33 AM5/13/17
to sage-support
IIRC, --upgrade is broken for years already, and should be removed.
If you need to upgrade a source installation, use git; the corresponding to the pulled version packages
will be automatically upgraded, apart from "old style" ones, that are not upgraded any more anyway.

A binary installation cannot be updated using --upgrade at all, I think.

Zachary Gershkoff

unread,
Jun 1, 2017, 11:31:08 AM6/1/17
to sage-support
How does one upgrade with git? Is it enough to pull the master or develop branch?

Dima Pasechnik

unread,
Jun 1, 2017, 11:36:28 AM6/1/17
to sage-support
With master or develop, one should be all set. Just rebuild (./configure && make)
Sometimes

make doc-clean

would be needed,
in rare cases,

make distclean

is the only way forward.

Reply all
Reply to author
Forward
0 new messages