next | previous | forward | backward | up | top | index | toc | home
Macaulay2Doc > The Macaulay2 language > packages > getPackage(String)

getPackage(String) -- download a package from the repository

Synopsis

Description

Synopsis

  • Usage:
    getPackage pkgname
  • Inputs:
    • pkgname, a string, the name of a package
    • Version => a string, default value null, the version to download, instead of the most recent version
    • CurrentVersion => a string, default value null, the version currently installed
    • Repository => a string, default value http://www.math.uiuc.edu/Macaulay2/Packages/, the URL of the repository
    • DebuggingMode => a Boolean value, default value false, the debugging mode to be passed to installPackage
  • Consequences:
    • the most recent version of the package is downloaded from the repository and installed, unless it's not newer than the version currently installed (according to the value of the CurrentVersion option)

Synopsis

  • Usage:
    getPackage()
  • Inputs:
    • Repository => a string, default value http://www.math.uiuc.edu/Macaulay2/Packages/, the URL of the repository
  • Outputs:
    • a list, a list of names of available packages from the repository

See also