smartos上如何安装软件
SmartOS使用NetBSD的pkgsrc来安装软件。
具体方式如下:
- 安装pkgin工具:
先到 http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/上看看最新的pkgin源码包是什么。如目前最新为bootstrap-2015Q4-x86_64.tar.gz
- 安装
cd / curl -k http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2015Q4-x86_64.tar.gz | gzcat | tar -xf -
- 重新编译软件包数据库
# pkg_admin rebuild
- 更新pkgin数据库
pkgin -y up
- 安装软件
pkgin in pkg_name
- pkgin常用命令列表
Command Description pkgin up Updates the pkgin database. You should run this command before installing any new packages just in case. pkgin ls Lists all the installed packages pkgin av Lists all of the available packages pkgin in Installs a package pkgin rm Removes a package pkgin se Searches for a package pkgin With no additional arguments, lists all of the available pkgin commands.