LuaRocks 常用命令
luarocks
luarocks help
查看帮助luarocks help <command>
查看命令帮助
luarocks list
已安装的 rocksluarocks list --porcelain
每个 rock 放在一行显示,便于grep
等命令处理- 如:
luarocks list --porcelain | grep kong-plugin
luarocks show <rock>
查看 rock 信息luarocks show lua-cjson --deps
查看依赖luarocks show lua-cjson --rock-tree
安装路径
luarocks path
Lua path 和 cpath
luarocks search <rock>
搜索luarocks install <rock>
安装luarocks remove <rock>
卸载