Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/pkg/packagemanager/doc/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 14.4.2025 mit Größe 2 kB image not shown  

Quelle  _Chapter_Introduction.xml   Sprache: XML

 
<?xml version="1.0" encoding="UTF-8"?>

<!-- This is an automatically generated file. -->
<Chapter Label="Chapter_Introduction">
<Heading>Introduction</Heading>

<P/>
<Section Label="Chapter_Introduction_Section_What_does_the_PackagePackageManagerPackage_package_do">
<Heading>What does the <Package>PackageManager</Package> package do?</Heading>

<P/>
This package provides the ability to install or remove a package using a single
command: <Ref Func="InstallPackage" /> or <Ref Func="RemovePackage" />.  The
user can specify a package to install using its name, or using a URL to an
archive, a repository, or a <C>PackageInfo.g</C> file.  When installing,
<Package>PackageManager</Package> also attempts to compile the package, build its documentation if
necessary, and ensure that its dependencies are also installed.
<P/>
</Section>


<Section Label="Chapter_Introduction_Section_What_does_the_PackagePackageManagerPackage_package_not_do">
<Heading>What does the <Package>PackageManager</Package> package not do?</Heading>

<P/>
At present, <Package>PackageManager</Package> is fairly basic, without many of the advanced
features available in package managers such as pip or apt.  For instance, the
user cannot update all packages in one command.  Removing a package
will not remove any of its dependencies, since we do not track how packages were
installed.  When a package is installed, no tests are run to ensure that it is
compatible with the installed version of GAP.  Any of these features might be
added in the future.  Other feature requests can be posted on the issue tracker
at <URL>https://github.com/gap-packages/PackageManager/issues</URL>.
<P/>
</Section>


<Section Label="Chapter_Introduction_Section_A_quick_example">
<Heading>A quick example</Heading>

<P/>
<Package>PackageManager</Package> is distributed with GAP, so it should already
be available on your system.  To load the package, call:
<P/>
<Example><![CDATA[
gap> LoadPackage("PackageManager");
]]></Example>


<P/>
Note that you'll need to do this in each session when you want to use the package manager.
<P/>
To install the latest deposited version of the <Package>Digraphs</Package>
package, use the following:
<P/>
<Example><![CDATA[
gap> InstallPackage("digraphs");
]]></Example>


<P/>
To uninstall it later, use the following:
<P/>
<Example><![CDATA[
gap> RemovePackage("digraphs");
]]></Example>


<P/>
<Package>PackageManager</Package> also supports version control repositories.  To install the
latest version of the <URL Text="curlInterface package from GitHub">https://github.com/gap-packages/curlInterface.git</URL>, use the following:
<P/>
<Example><![CDATA[
gap> InstallPackage("https://github.com/gap-packages/curlInterface.git");
]]></Example>


<P/>
</Section>


</Chapter>

100%


¤ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.