分页: 1 / 1

pkgsrc 使用方法

发表于 : 2010-03-28 11:46
lionux
pkgsrc是NetBSD下的packages管理系统。
cvs同步pkgsrc

代码: 全选

[color="Sienna"]#export CVSROOT="[email protected]:/cvsroot"
# export CVS_RSH="ssh"
# cd /usr
# cvs checkout -P pkgsrc[/color]
更新pkgsrc

代码: 全选

[color="Sienna"]# cd /usr/pkgsrc
# cvs update -dP[/color] 
安装packages例如firefox

代码: 全选

[color="Sienna"]# cd /usr/pkgsrc/www/firefox
# make install[/color]
清除工作目录

代码: 全选

[color="Sienna"]# make clean-depends clean[/color]
删除
pkg_delete 名称不用加版本号
pkg_delete -r packages 删除并删除依赖此packages的其他包,升级此packages时用。

列出packages 信息

代码: 全选

[color="Sienna"]$ pkg_info                                                               
digest-20080510     Message digest wrapper utility
f2c-20090411nb4     Fortran to C compiler including a script to emulate f77
libtool-base-2.2.6bnb4 Generic shared library support script (the script itself)
gmake-3.81          GNU version of 'make' utility
pkg-config-0.23nb1  System for managing library compile/link flags
dri2proto-2.1       DRI2 extension headers from modular X.org
glproto-1.4.10      GL extension headers
xproto-7.0.16       X protocol and ancillary headers from Xorg X11
xextproto-7.0.5     XExt extension headers from X.org
inputproto-1.5.1    Input extension headers from X.org
fixesproto-4.0      Fixes extension headers from X.org
damageproto-1.2.0   Damage extension headers from modular X.org
kbproto-1.0.4       KB extension headers from X.org[/color]
包多看不清的话可以
pkg_info | more 分页显示

pkgsrc 非常强大还支持以下系统

代码: 全选

[color="Sienna"]Solaris 	Mar 1999
Linux 	Jun 1999
Darwin (Mac OS X) 	Oct 2001
FreeBSD 	Nov 2002
OpenBSD 	Nov 2002
IRIX 	Dec 2002
BSD/OS 	Dec 2003
AIX 	Dec 2003
Interix 	Mar 2004
DragonFlyBSD 	Oct 2004
OSF/1 	Nov 2004
HP-UX 	Apr 2007[/color]