pkg命令使用

2015-05-31 15:59:45
王春生
5527
最后编辑:王春生 于 2015-05-31 16:05:03

pkg命令目前功能还比较有限,仅实现了简单的浏览,查看,删除,打包等操作。

还没有实现在线的下载更新,依赖包的自动安装等功能。

查看pkg的基本命令


$>pkg
pkg is the package manger for zentaomos.
 -l   --list   list    list all packages.
 -v   --view   view    view a package.
 -r   --remove remove  remove a package.
列出所有安装的包
$> pkg -l |more
acl                  2.2.52   lite The Acl package contains utilities to administer Access Control Lists
acpid                2.0.23   lite The acpid (Advanced Configuration and Power Interface event daemon)
apache2              2.4.10   lite The Apache HTTPD package contains an open-source HTTP server.

按照关键词进行查询


$> pkg -l zentao
zentao   7.1 lite zentao project management system.
zentaodb 7.1 lite zentao database.


查看某一个包


[z@zos:~$] pkg -v zentao |more
Name:zentao
Version:7.1
Mode:lite
Desc:zentao project management system.
Maintainer:chunsheng wang<chunsheng@cnezsoft.com>
file                                                                          	owner	mode	md5
/srv/zentao/.flow                                                             	1000	0664	dfbfc09aef387eeaf7158f8bb8c0be31
/srv/zentao/VERSION                                                           	1000	0664	b57d4ba05996e6139a3ff304b725b353
/srv/zentao/bin/init.bat                                                      	1000	0775	02ed9747897c39a2144598aecec63d42
/srv/zentao/bin/init.sh                                                       	1000	0755	2354575c71094e63546c2bceb2066206
/srv/zentao/bin/php/backup.php                                                	1000	0755	a5b3b15c09bcc91d5ea1723d9ed68469
/srv/zentao/bin/php/checkyaml.php                                             	1000	0755	0efde7930174054d7ba4e06e6bb9fdd9
删除某一个包



[z@zos:~$] pkg -r zentao
Are you sure to remove the package zentao?(y/n)


页脚