==Package Repository==
Unzipped packages are stored in the package repository. This is a directory named <code>BaseXRepo</code>, which is located in your home folder. Depending on your [[Configuration]], the name and location of your home folder variesrepository might vary.
BaseX offers provides three commands for interaction with the package repository - <code>– {{Mono|REPO INSTALL</code>}}, <code>{{Mono|REPO DELETE</code> }} and <code>{{Mono|REPO LIST</code>}}. The syntax of these commands is described in [[Commands]]. Since {{Mark|Version 7.1}} of BaseX, an additional [[Repository Module]] is available, which can be used to install new packages via XQuery. Here we give just simple examples of their usage and the usage of a package after it is installed.
===Installing a Package===
A package can be installed using the <code>{{Mono|REPO INSTALL</code> }} command. The path to the package has to be given as a parameter. An example:
<code>{{Mono|REPO INSTALL http://files.basex.org/xar/functx-1.0.xar</code>}}
===Using a Package===
A package can be deleted either by its name or by the name of its directory. This can be done with the command REPO DELETE. e.g.
<code>{{Mono|REPO DELETE http://www.functx.com</code>}}
or
<code>{{Mono|REPO DELETE functx-1.0</code>}}
===Listing installed packages===
All currently installed packages can be listed using the <code>REPO LIST</code> command. It will list the names of all packages which currently reside in the repository along with their versions:
<pre>
Name URI Version Directory-------------------------------------------------------http://www.functx-.com 1.0 http://-www.functx.com -1.0
1 package(s).
</pre>