免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2871 | 回复: 0

PORTS [复制链接]

论坛徽章:
0
发表于 2010-02-23 14:35 |显示全部楼层
1.怎样找到我想安装的包路径:
# cd /usr/ports
# make search name=mysql
2.仅仅下载源码包,而不安装:
# cd /usr/ports/directory
# make fetch
3.预先知道需要那些包,才能安装这个软件:
# cd /usr/ports/directory
# make fetch-list
4.把软件装到指定的目录:
# cd /usr/ports/directory
# make PREFIX=/usr install
5.仅仅下载包,解包,而不安装:
# cd /usr/ports/directory
# make extract
6.用PORTS制作一个定制二进制包:
# cd /usr/ports/somewhere/frobble
# make extract
# cd work/frobble-2.8
[Apply your patches]
# cd ../..
# make package
7.强制安装:
# make install FORCE_PKG_REGISTER=yes clean
8.初始化一个port
# cd /usr/ports/directory
# make rmconfig
# make config
新手必杀技ports命令
cd /usr/ports
make deinstall
#删除所有软件,我刚用freebsd三个月的时候老使这个,删了安接着删.....费时费力哦,不推荐
cvsup -g -L 2 -h cvsup.tw.freebsd.org /usr/share/examples/cvsup/ports-supfile
cd /usr/ports
make fetchindex
#别忘了使用ports安装软件前要升级ports系统啊,我现在天天用上边命令的脚本
#要是你没装cvsup,那就去装cd /usr/ports/net/cvsup-without-gui/ && make install
cd /usr/ports/sysutils/portupgrade
make install
#安装这个软件是新手省事而又带来新麻烦的好东西,尽管会带来一些新麻烦,但是还是推荐毕竟麻烦数量少了很多
rm -r /usr/ports
#损招、阴招,现在想不起来当初为什么要用这个命令,不推荐啊不推荐~~
#你要是用了找不到ports了,简单再用cvsup -g -L 2 -h cvsup.tw.freebsd.org /usr/share/examples/cvsup/ports-supfile命令就行了,费时费力
pkgdb -F
portversion | grep "

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/13704/showart_2185054.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP