昨天我们更新了Ports,那么我们就要用Ports安装软件了,可是这么多的软件到底我们要安装的软件在哪里呢?总不能一个一个去找吧?那么我们使用下面的命令来查找:
whereis 软件名
例如: whereis wgetpro
然后系统就会告诉我们
wgetpro: /usr/ports/ftp/wgetpro
呵呵,是不是很方便啊?
接着我们来看看怎么安装软件了
引用
进入软件所在的目录
cd /usr/ports/ftp/wgetpro
编译
make
执行安装
make install clean

这样就安装好了,是不是很方便啊?

PORTS安装软件的几个常用命令
引用
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



现在ArthurXF本人正在搞PHP等技术培训,如果想学习的人可以跟我联系。另外培训的招生简章在这个网址,想了解的可以去看看。加我QQ:29011218交流也可。
PHP培训招生简章
Tags: ,
FreeBSD | 评论(0) | 引用(0) | 阅读(15329)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]