LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: 卤鸭子

gentoo的emerge和bsd的ports到底谁好?

[复制链接]
发表于 2004-5-13 12:58:34 | 显示全部楼层
是的,portage的灵感来自于ports,有ports作为借鉴,所以说起点高,我甚至觉得emerge就象是ports移植到了linux。
发表于 2004-5-13 14:59:53 | 显示全部楼层
最初由 卤鸭子 发表
楼上的?portage能做的什么,ports不能做?

You can't just do emerge xxx, you must locate the correct directory first by running "find" from /usr/ports, then cd /usr/ports/dir, make install; quite troublesome.

It's quite annoying to build programs like openoffice, it prompts for user interaction partway through the build process, it's not pleasant to get up in the morning and find that the build was not completed.

There is no way to upgrade the ports tree without installing an additional port after installation, ie cvsup. To upgrade an installed port to a newer version, you have to install another utility, namely portupgrade. Don't know why they don't just integrate them into ports!

You can't emerge --pretend, though Openbsd has such feartures.

You can't run emerge depclean to uninstall those dependencies that are currently not in use, so you will always be stuck with uneeded packages laying around unless you manually use pkg_info -R on each package to see if anything needs them.

There're others, but I'm not sure if freebsd is able to do such things or not, such as --buildpkg, --fetchonly etc that can be very useful to some users.
发表于 2004-5-13 20:46:05 | 显示全部楼层
如上所述,ports的确是有这样或者那样的不足,我认为这是因为ports是unix下第一个这样的系统,设计者在设计的时候难免会有这样或者那样的地方没有考虑到,但这并不妨碍ports成为一个了不起的发明。而portage的灵感来自于ports,基本上是大部分的借鉴了ports的思想,熟悉这两者的人相信都会认同,实际上这一点在gentoo的发起人Daniel Robbins所写的gentoo历史里也曾经提到过。因此我说portage起点比较高,弥补了ports的一些不足,楼上的朋友也提到了这些不足。

>You can't just do emerge xxx, you must locate the correct directory first by running "find" from /usr/ports, then cd /usr/ports/dir, make install; quite troublesome.
实际情况并不是这样的,实际上你只要到/usr/ports里去用make search name = xxx 或者 make search key = xxx就可以方便的找到你要的东西。

>It's quite annoying to build programs like openoffice, it prompts for user interaction partway through the build process, it's not pleasant to get up in the morning and find that the build was not completed.
这的确是ports不如emerge的地方,我有时候也被搞得很沮丧,呵呵。

>There is no way to upgrade the ports tree without installing an additional port after installation, ie cvsup. To upgrade an installed port to a newer version, you have to install another utility, namely portupgrade. Don't know why they don't just integrate them into ports!

You can't emerge --pretend, though Openbsd has such feartures.

You can't run emerge depclean to uninstall those dependencies that are currently not in use, so you will always be stuck with uneeded packages laying around unless you manually use pkg_info -R on each package to see if anything needs them.

There're others, but I'm not sure if freebsd is able to do such things or not, such as --buildpkg, --fetchonly etc that can be very useful to some users.

的确如此,不过如果加上portupgrade的话,这些都不是问题。至于buildpkg、fetchonly之类的,ports本身就有,只是楼上的没有发现而已。

给三个连接,一个是说ports的make参数的,两个是说portage的特性的,不妨看看。

http://www.cnfug.org/journal/11/03.html
http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html
http://www.onlamp.com/pub/a/bsd/2003/09/18/FreeBSD_Basics.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表