软件包管理工具安装与使用方法
2009-05-13 03:40:45来源:未知 阅读 ()
还有其他方法.
-----------------有用的工具---------------------------
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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- FreeBSD下nginx+fast-cgi+mysql+zend的实现 2009-05-13
- gd 安装报错.求助 2009-05-13
- virtualbox for freeBSD 2009-05-13
- 从网上下载的packages为什么本地安装不了?[已解决!] 2009-05-13
- 求PC-BSD 7.1安装指南? 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash