NetBSD下的Pkgsrc

2009-05-13 14:57:58来源:未知 阅读 ()

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

NetBSD官方Pkgsrc Guide:http://www.netbsd.org/docs/pkgsrc/index.html
The primary download location for all pkgsrc files is
ftp://ftp.NetBSD.org/pub/pkgsrc/
. There are a number of subdirectories for different purposes, which are described in detail in Appendix C, Directory layout of the pkgsrc FTP server.
The tar file for the current branch is in the directory current and is called pkgsrc.tar.gz. It is autogenerated daily.
The tar file for the stable branch 2007Q4 is in the directory pkgsrc-2007Q4 and is also called pkgsrc-2007Q4.tar.gz.
To download a pkgsrc stable tarball, run:
$ ftp
ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-200xQy/pkgsrc-200xQy.tar.gz
Where pkgsrc-200xQy is the stable branch to be downloaded, for example, “pkgsrc-2007Q4”.
Then, extract it with:
$ tar -xzf pkgsrc-200xQy.tar.gz -C /usr
This will create the directory pkgsrc/ in /usr/ and all the package source will be stored under /usr/pkgsrc/.
To download pkgsrc-current, run:
$ ftp
ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc.tar.gz
Source:http://www.netbsd.org/docs/pkgsrc/getting.html#getting-via-tar
官方对pkgsrc tar包的获得描述,pkgsrc-200xQy属于稳定版本模式,每季度发布一次.建议使用通过测试的pkgsrc包,如果想获得最新的也可以,下载current pkgsrc.
NetBSD虽然没有axel,aget会自动根据要下载文件的大小自行决定要使用的线程数
FAILOVER_FETCH=yes 文件下载完成后检查校验和.如果不对的话就重新下载.此参数可以防止文件下载失败或错误.
#cd /usr/pkgsrc/net/aget
#make install clean clean-depends
#vi /etc/mk.conf
FETCH_CMD?=/usr/pkg/bin/aget
FAILOVER_FETCH=yes
几个Pkgsrc常用的软件:
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
如果lintpkgsrc发现有更新的版本。
那么可能需要更新,这个看你自己是否喜欢追新了。
1,make update
这个方法是更新软件并更新所有依赖这个软件的软件。所以不建议经常使用。
2,make replace
这个方法只是更新本软件。

标签:

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

上一篇:loader.conf rc.conf sysctl.conf make.conf src.conf

下一篇:NetBSD下的编译优化