1 module("luci.lpk", package.seeall)
2 require("luci.lpk.util")
3 require("luci.lpk.core")
5 __appname__ = "LuCI »lpk« Package Manager"
7 __authors__ = "Steven Barth, Jo-Philipp Wich"
8 __cpyrght__ = string.format("Copyright (c) 2008 %s", __authors__)
9 __welcome__ = string.format("%s v%s\n%s",
10 __appname__, __version__, __cpyrght__)
13 options, arguments = luci.lpk.util.getopt(arg)
14 config = luci.util.dtable()
16 local cfgdump = loadfile("/etc/lpk.conf")
18 setfenv(cfgdump, config)
22 if #arguments < 1 then
27 lpk [options] <command> [arguments]
28 lpk [options] install|remove pkg1 [pkg2] [...] [pkgn]
31 install - Install packages
32 remove - Remove packages
33 purge - Remove packages and their configuration files
36 --force-depends - Ignore unresolvable dependencies