SKS OCDoc
OpenComputers
Computronics
Minitel

lib/pkgman.lua

pkg.update()

Re-download cached repository indexes.

pkg.get(pkgname^string^, auto^boolean^): boolean

Downloads and mounts a package, identified as pkgname, onto the pkgfs. Setting auto will flag the package as automatically installed; this is used for dependencies.

pkg.remove(pkgname^string^): boolean

Remove the package pkgname from the pkgfs and package directory.

pkg.upgrade(force^boolean^)

Upgrades all packages on the system to the current version stored in the relevant repository. If force is set, re-download all packages.

pkg.list(filter^string^, installed^boolean^)

Print a list of available packages matching filter, optionally filtering to only installed packages if installed is set.

pkg.delRepo(name^string^): boolean

Removes a repository from the list of repositories.

pkg.getMeta(pkgname^string^): table

Returns the metadata for a the package specified in pkgname.

© ShadowKat Studios
The software used to generate this page is licensed under the Mozilla Public License version 2 and can be found here