FreeBSD通过PORTS安装软件的几个常用命令 - 红联Linux门户 - 中国领先的...
来源:百度文库 编辑:神马文学网 时间:2024/04/28 07:35:36
FreeBSD通过PORTS安装软件的几个常用命令 Nesoikps发布于 2007-11-13 | 421次阅读 字号: 大 中 小 (网友评论 0 条) 我要评论 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 "<"
portupgrade -a
#安装了portupgrade套件之后可以使用的命令,好用啊推荐
pkg_info
#看看你都装什么软件了
portsclean -C
#不明原因就是编译不过八成因为这个,平常也请多用,能清理ports内的临时文件
#安装portupgrade套件之后才能使用新手必杀技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 "<"
portupgrade -a
#安装了portupgrade套件之后可以使用的命令,好用啊推荐
pkg_info
#看看你都装什么软件了
portsclean -C
#不明原因就是编译不过八成因为这个,平常也请多用,能清理ports内的临时文件
#安装portupgrade套件之后才能使用
这里没有什么特别的地方,只是提醒一下,安装完成后注意要更新到最新的ports tree !
由于是最小化安装,所以需要通过 sysinstall 去把下面几个package安装上(via CD-ROM) :
cvsup-without-gui # 更新ports tree 需要
perl # Perl当然是很多地方需要的... ^^!
gmake # 安装mod_jk时需要
bash # 我不熟C Shell,所以我另外安装了这个
完成安装后,更新ports tree,我使用了cvsup.FreeBSDChina.org 作为镜像!
# 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 "<"
portupgrade -a
#安装了portupgrade套件之后可以使用的命令,好用啊推荐
pkg_info
#看看你都装什么软件了
portsclean -C
#不明原因就是编译不过八成因为这个,平常也请多用,能清理ports内的临时文件
#安装portupgrade套件之后才能使用新手必杀技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 "<"
portupgrade -a
#安装了portupgrade套件之后可以使用的命令,好用啊推荐
pkg_info
#看看你都装什么软件了
portsclean -C
#不明原因就是编译不过八成因为这个,平常也请多用,能清理ports内的临时文件
#安装portupgrade套件之后才能使用
这里没有什么特别的地方,只是提醒一下,安装完成后注意要更新到最新的ports tree !
由于是最小化安装,所以需要通过 sysinstall 去把下面几个package安装上(via CD-ROM) :
cvsup-without-gui # 更新ports tree 需要
perl # Perl当然是很多地方需要的... ^^!
gmake # 安装mod_jk时需要
bash # 我不熟C Shell,所以我另外安装了这个
完成安装后,更新ports tree,我使用了cvsup.FreeBSDChina.org 作为镜像!
FreeBSD通过PORTS安装软件的几个常用命令 - 红联Linux门户 - 中国领先的...
Linux下安装Red5 0.7 - 红联Linux门户 - 中国领先的Linux技术网站...
Fedora11_beta_i386安装图解 - 红联Linux门户 - 中国领先的Lin...
linux下Makefile文件的编写 - 红联Linux门户 - 中国领先的Linux技...
新建Oracle数据库三种方法 - 红联Linux门户 - 中国领先的Linux技术网站 - 网站导航 - Linux企业应用 - Linux数据库应用
FreeBSD软件安装卸载工具--Ports和Packages详解
ubuntu7.10下matlab7.0字体问题 - 红联Linux门户 - 中国领先的Linux技术网站 - 网站导航 - Linux发行版技术 - Ubuntu
Red Hat9.0与Win XP双系统安装指南[图] - 红联门户-您身边的Linux学习社区-本站新域名:www.linux110.com-Linux技术文章-Linux教程下载-电脑技术-红旗Linux - 信息资讯 - Linux技术专区 - Linux安装
linux 下 oracle常用命令(安装linux下11g)的相关文章推荐 - - Ja...
linux 下 oracle常用命令(安装linux下11g)的相关文章推荐 - - Ja...
轻松安装、卸载Linux下的软件
Linux下软件的安装与卸载
Linux下软件的安装与卸载
Linux软件安装之RPM的安装技巧
Dr.Web宣布退出VB100病毒测试_软件资讯_快车网_中国领先的资源下载门户
Linux常用命令之vmstat--rainnyzhong的博客
suse linux 常用命令 - phoenics的空间
Linux下软件的安装与卸载d
Linux 中如何卸载已安装的软件.
Redhat Linux通过RPM安装搭建LAMP环境 - Linux - 刘苏平的博客
黑客入侵所需要的几个常用命令
linux软件包的安装
安装Linux 的硬盘分区
freebsd用port安装时make的功能