2 LuCI OPKG call abstraction library
4 module "luci.model.ipkg"
8 Return information about installed and available packages.
12 @param pkg Limit output to a (set of) packages
13 @return Table containing package information
17 Return the package status of one or more packages.
21 @param pkg Limit output to a (set of) packages
22 @return Table containing package status information
26 Install one or more packages.
30 @param ... List of packages to install
31 @return Boolean indicating the status of the action
32 @return OPKG return code, STDOUT and STDERR
36 Determine whether a given package is installed.
45 Remove one or more packages.
49 @param ... List of packages to install
50 @return Boolean indicating the status of the action
51 @return OPKG return code, STDOUT and STDERR
59 @return Boolean indicating the status of the action
60 @return OPKG return code, STDOUT and STDERR
64 Upgrades all installed packages.
68 @return Boolean indicating the status of the action
69 @return OPKG return code, STDOUT and STDERR
73 List all packages known to opkg.
77 @param pat Only find packages matching this pattern, nil lists all packages
78 @param cb Callback function invoked for each package, receives name, version and description as arguments
83 List installed packages.
87 @param pat Only find packages matching this pattern, nil lists all packages
88 @param cb Callback function invoked for each package, receives name, version and description as arguments
93 Find packages that match the given pattern.
97 @param pat Find packages whose names or descriptions match this pattern, nil results in zero results
98 @param cb Callback function invoked for each patckage, receives name, version and description as arguments
103 Determines the overlay root used by opkg.
107 @return String containing the directory path of the overlay root.
111 lua version of opkg compare-versions
114 @name compare_versions
115 @param ver1 string version 1
116 @param ver2 string version 2
117 @param comp string compare versions using
118 "<=" or "<" lower-equal
119 ">" or ">=" greater-equal
124 @return Boolean indicating the status of the compare