opm OpenResty 包管理工具使用介绍
介绍
opm
默认位于 /opt/openresty/bin/
目录下
$ opm --help
$ opm search jwt
...
cdbattags/lua-resty-jwt JWT For The Great Openresty
...
$ opm info cdbattags/lua-resty-jwt
Name : lua-resty-jwt
Version : 0.2.0
Abstract : JWT For The Great Openresty
Author : Christian Battaglia (cdbattags)
Account : cdbattags
Code Repo : https://github.com/cdbattags/lua-resty-jwt
License : Apache License 2.0
Original Work : yes
Requires : luajit, jkeys089/lua-resty-hmac >= 0.02
$ opm install cdbattags/lua-resty-jwt
...
Package openresty/lua-resty-string 0.11 installed successfully under /opt/openresty/site/ .
Package jkeys089/lua-resty-hmac 0.06 installed successfully under /opt/openresty/site/ .
Package cdbattags/lua-resty-jwt 0.2.0 installed successfully under /opt/openresty/site/ .
$ ls /opt/openresty/site/pod/
lua-resty-hmac-0.06 lua-resty-jwt-0.2.0 lua-resty-string-0.11
$ opm list
jkeys089/lua-resty-hmac 0.06
cdbattags/lua-resty-jwt 0.2.0
openresty/lua-resty-string 0.11
- 其他命令
- upgrade 更新某个已安装的组件
- update 更新所有已安装的组件
- remove 删除已安装的组件