Class luci.model.ipkg
LuCI IPKG/OPKG call abstraction library
Functions
| info (pkg) | Return information about installed and available packages. |
| install (...) | Install one or more packages. |
| installed (pkg) | Determine whether a given package is installed. |
| remove (...) | Remove one or more packages. |
| status (pkg) | Return the package status of one or more packages. |
| update () | Update package lists. |
| upgrade () | Upgrades all installed packages. |
Functions
- info (pkg)
-
Return information about installed and available packages.
Parameters
- pkg: Limit output to a (set of) packages
Return value:
Table containing package information - install (...)
-
Install one or more packages.
Parameters
- ...: List of packages to install
Return values:
- Boolean indicating the status of the action
- IPKG return code
- installed (pkg)
-
Determine whether a given package is installed.
Parameters
- pkg: Package
Return value:
Boolean - remove (...)
-
Remove one or more packages.
Parameters
- ...: List of packages to install
Return values:
- Boolean indicating the status of the action
- IPKG return code
- status (pkg)
-
Return the package status of one or more packages.
Parameters
- pkg: Limit output to a (set of) packages
Return value:
Table containing package status information - update ()
-
Update package lists.
Return values:
- Boolean indicating the status of the action
- IPKG return code
- upgrade ()
-
Upgrades all installed packages.
Return values:
- Boolean indicating the status of the action
- IPKG return code