Difference between revisions of "Apk.lua"

From Alpine Linux
Jump to: navigation, search
(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...)
 
(Updated to latest)
Line 1: Line 1:
 +
Functions to load/unload apk packages
 
=Functions=
 
=Functions=
==repository()==
+
==delete()==
Generates and returns a table of all of the packages with available and loaded version numbers.
+
Deletes a package
 
 
==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.
 
 
<BR>'''Input:'''
 
<BR>'''Input:'''
 
*package - string name of package
 
*package - string name of package
  
==install(package)==
+
==install()==
Loads a package from the repository.
+
Installs a package
 
<BR>'''Input:'''
 
<BR>'''Input:'''
 
*package - string name of package
 
*package - string name of package
  
==is_installed(package)==
+
==version()==
Test if a package is loaded.
+
Checks a package's installed version
 
<BR>'''Input:'''
 
<BR>'''Input:'''
 
*package - string name of package
 
*package - string name of package

Revision as of 10:28, 29 June 2010

Functions to load/unload apk packages

Functions

delete()

Deletes a package
Input:

  • package - string name of package

install()

Installs a package
Input:

  • package - string name of package

version()

Checks a package's installed version
Input:

  • package - string name of package