2 LuCI OPKG call abstraction library
4 module "luci.model.ipkg"
7 Return information about installed and available packages.
11 @param pkg Limit output to a (set of) packages
12 @return Table containing package information
16 Return the package status of one or more packages.
20 @param pkg Limit output to a (set of) packages
21 @return Table containing package status information
25 Install one or more packages.
29 @param ... List of packages to install
30 @return Boolean indicating the status of the action
31 @return OPKG return code, STDOUT and STDERR
35 Determine whether a given package is installed.
44 Remove one or more packages.
48 @param ... List of packages to install
49 @return Boolean indicating the status of the action
50 @return OPKG return code, STDOUT and STDERR
58 @return Boolean indicating the status of the action
59 @return OPKG return code, STDOUT and STDERR
63 Upgrades all installed packages.
67 @return Boolean indicating the status of the action
68 @return OPKG return code, STDOUT and STDERR
72 List all packages known to opkg.
76 @param pat Only find packages matching this pattern, nil lists all packages
77 @param cb Callback function invoked for each package, receives name, version and description as arguments
82 List installed packages.
86 @param pat Only find packages matching this pattern, nil lists all packages
87 @param cb Callback function invoked for each package, receives name, version and description as arguments
92 Find packages that match the given pattern.
96 @param pat Find packages whose names or descriptions match this pattern, nil results in zero results
97 @param cb Callback function invoked for each patckage, receives name, version and description as arguments
102 Determines the overlay root used by opkg.
106 @return String containing the directory path of the overlay root.
110 lua version of opkg compare-versions
113 @name compare_versions
114 @param ver1 string version 1
115 @param ver2 string version 2
116 @param comp string compare versions using
117 "<=" or "<" lower-equal
118 ">" or ">=" greater-equal
123 @return Boolean indicating the status of the compare