Apk.lua: Difference between revisions

From Alpine Linux
(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...)
 
(Category:Lua)
 
(3 intermediate revisions by 2 users not shown)
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
[[Category:ACF]] [[Category:Package Manager]] [[Category:Lua]]

Latest revision as of 08:08, 12 March 2012

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