软件包管理工具安装与使用方法

2009-05-13 03:40:45来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


还有其他方法.

-----------------有用的工具---------------------------
1,pkgfind 查找软件
#cd /usr/pkgsrc/pkgtools/pkgfind
#make install clean-depends

netbsd: {10} pkgfind xorg
fonts/xorg-fonts100dpi: X.org 100dpi bitmap fonts
fonts/xorg-fonts75dpi: X.org 75dpi bitmap fonts
fonts/xorg-fontsCyrillic: X.org Cyrillic bitmap fonts
fonts/xorg-fontsEncodings: X.org Encoding fonts
fonts/xorg-fontsMisc: X.org miscellaneous bitmap fonts
fonts/xorg-fontsTruetype: X.org Truetype fonts
fonts/xorg-fontsType1: X.org Type1 fonts
fonts/xorg-fontserver: X.org font server
meta-pkgs/xorg: X.org meta-package
misc/xorg-docs: X.org Documentation
x11/xorg-clients: X.org client programs and related files
x11/xorg-imake: Imake and other utilities from X.org
x11/xorg-libs: X.org Libraries
x11/xorg-server: X.org X server and related programs

2,pkglint
#pkgfind pkglint
#cd /usr/pkgsrc/pkgtools/pkglint
#make install clean-depends

用法:lintpkgsrc -i 检查是否有更新的版本 man lingpkgsrc
netbsd:lintpkgsrc -i
Scanning Makefiles: 4866 packages
Unknown package: 'Xrandr' version 1.0.2

3, cpuflags
优化编译
/etc/mk.conf控制编译的一些状态.而cpuflags 根据用户的环境自动优化.
#pkgfind cpu
netbsd: {18} pkgfind cpu
devel/cpuflags: Determine compiler flags to best target current cpu
print/gimp-print-escputil: Epson Stylus inkjet printer tool
sysutils/cpuburn: CPU load testing utilities for Pentium pro and later
sysutils/cpuid: CPU identification feature
sysutils/wmcpuload: Dockable CPU monitor
sysutils/xfce4-cpugraph-plugin: XFce4 CPU load plugin

#cd /usr/pkgsrc/devel/cpuflags
#make install clean-depends
然后加入下面到/etc/mk.conf
#touch /etc/mk.conf
.sinclude "/usr/pkg/share/mk/cpuflags.mk"
.sinclude "/usr/pkg/share/mk/optimize_gcc.mk"
4,pkgclean
快速清除work
cd /urs/pkgsrc/pkgtools/pkgclean
make install clean-depends
用法:
pkgclean

还有很多有用的工具,自己体会吧。我的mk.conf
netbsd: {19} more /etc/mk.conf
.sinclude "/usr/pkg/share/mk/cpuflags.mk"
.sinclude "/usr/pkg/share/mk/optimize_gcc.mk"
FETCH_CMD= /usr/pkg/bin/wget -cT 20
#--------------for master_site_backup------------------
MASTER_SITE_BACKUP?= \
ftp://ring.asahi-net.or.jp/pub/NetBS...es/distfiles/\
ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/\
ftp://ftp.FreeBSD.org/pub/FreeBSD/distfiles/
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
#--------------for master_site_backup------------------
#MKX11=yes
ACCEPTABLE_LICENSES+=no-commercial-use
ACCEPTABLE_LICENSES+=unrar-license
ACCEPTABLE_LICENSES+=citrix_ica-license

特别说的是我用wget 替代了系统自己的ftp,来下载distfiles

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:TLS - implementing linux one in fbsd (转)

下一篇:OpenBSD全能服务器安装手册之更新记录及版权声明