Apk.lua

From Alpine Linux
Revision as of 17:55, 30 September 2008 by Ttrask (talk | contribs) (New page: =Functions= ==repository()== Generates and returns a table of all of the packages with available and loaded version numbers. ==get_all()== Returns an array of all of the packages in the r...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Functions

repository()

Generates and returns a table of all of the packages with available and loaded version numbers.

get_all()

Returns an array of all of the packages in the repository with version numbers.

get_loaded()

Returns an array of all of the loaded packages with version numbers and descriptions.

get_available()

Returns an array of all of the available (not loaded) packages with version numbers.

delete(package)

Unloads a package.
Input:

  • package - string name of package

install(package)

Loads a package from the repository.
Input:

  • package - string name of package

is_installed(package)

Test if a package is loaded.
Input:

  • package - string name of package