Chinaunix

标题: 手册帮版主,ports tree如何更新打补丁?? [打印本页]

作者: action08    时间: 2015-02-13 10:44
标题: 手册帮版主,ports tree如何更新打补丁??
本帖最后由 action08 于 2015-02-13 10:52 编辑

freebsd-update fetch貌似不管ports
作者: action08    时间: 2015-02-13 10:45
如何ports中的包出现安全更新了,如何打补丁??
作者: action08    时间: 2015-02-13 10:46
本帖最后由 action08 于 2015-02-13 10:47 编辑
  1. portsnap fetch update
复制代码
找到了,当前系统大概下载70M


还有我不知道fb安全更新port系统是如何维护处理的???
作者: fender0107401    时间: 2015-02-13 11:03
看这个:http://www.freebsd.org/doc/en_US ... ok/ports-using.html

Procedure 5.1. Portsnap Method

The base system of FreeBSD includes Portsnap. This is a fast and user-friendly tool for retrieving the Ports Collection and is the recommended choice for most users. This utility connects to a FreeBSD site, verifies the secure key, and downloads a new copy of the Ports Collection. The key is used to verify the integrity of all downloaded files.

    To download a compressed snapshot of the Ports Collection into /var/db/portsnap:

    # portsnap fetch

    When running Portsnap for the first time, extract the snapshot into /usr/ports:

    # portsnap extract

    After the first use of Portsnap has been completed as shown above, /usr/ports can be updated as needed by running:

    # portsnap fetch
    # portsnap update

    When using fetch, the extract or the update operation may be run consecutively, like so:

    # portsnap fetch update



作者: fender0107401    时间: 2015-02-13 11:06
回复 3# action08

FreeBSD的安全更新分系统的和软件的。

系统的就是freebsd-update或者自己编译系统的kernel+userland。

软件的就是更新ports tree之后portmaster -a。你也可以用别的管理工具,我是用portmaster的。


   
作者: action08    时间: 2015-02-13 11:36
fender0107401 发表于 2015-02-13 11:06
回复 3# action08

FreeBSD的安全更新分系统的和软件的。


whereis portmaster
嗯,系统现实属于第三方的,如果过了两个月firefox包出现更新了,我如何做呢??
作者: fender0107401    时间: 2015-02-13 13:27
回复 6# action08

你什么都不用管,每次就是更新ports tree,然后portmaster -a。

如果Firefox有更新,那么维护这个port的开发者就会修改对应的Makefiles,然后你更新ports tree的时候,你硬盘上面的Makefiels就会更新,你在运行portmaster,系统就会按照最新的Makefiels编译安装最新的Firefox。

详细的说,ports系统会自动卸载之前的Firefox,并且处理各种依赖关系。

你干的事情就是不停的更新自己硬盘的ports tree,之后就运行portmaster。

   
作者: lsstarboy    时间: 2015-02-13 14:14
像firefox这种软件,不需要手动指定编译参数,还不如用pkg方便,pkg更新起来也容易一些。
其实windows的思维有时比较高效,软件拿过来就能用,你在windows下亲自编译过别人的软件包吗?
作者: action08    时间: 2015-02-13 14:19
lsstarboy 发表于 2015-02-13 14:14
像firefox这种软件,不需要手动指定编译参数,还不如用pkg方便,pkg更新起来也容易一些。
其实windows的思 ...


现在是新人想学习一些基础,其实linux这一大套操作流程我都熟悉
作者: lsstarboy    时间: 2015-02-15 09:00
回复 9# action08


    porter手册可能更适合你。
作者: action08    时间: 2015-02-15 09:50
lsstarboy 发表于 2015-02-15 09:00
回复 9# action08


早上好,放假回家来没??

这个openbsd到ports也是一样的吧??
作者: lsstarboy    时间: 2015-02-15 16:44
回复 11# action08


呵呵,工作20多年了,早就不是学生了。

没认真用过openbsd,不了解。
作者: Machm    时间: 2015-02-15 22:02
UNIX应用的更新,总是很麻烦的,不象Windows,比如,Windows下的一个软件安装,安装时,提示需要安装.net 4.0,一般安装程序都会自带,并安装完成,软件正常使用,当.net有漏洞,微软出补丁时,补上,也不影响,这个软件应用的正常使用,但UNIX类的系统就不行,一但依赖的库或包版本一变化,应用就要重新连编,否则就无法运行。
作者: lsstarboy    时间: 2015-02-16 08:33
回复 13# Machm


    一方面,依赖包一般都是向下兼容的,另一方面pkg 现在可以自动更新依赖包了。
作者: action08    时间: 2015-02-21 14:54
pkg upgrade

This command will compare the installed versions with those available in the repository catalogue. When finished, it will list the applications that have newer versions. Type y to proceed with the upgrade or n to cancel the upgrade.

感觉更新就是这个的
http://www.freebsd.org/doc/en_US ... ok/pkgng-intro.html

作者: action08    时间: 2015-02-24 12:06
root@freebsd:~ # cd /usr/ports/www/firefox-esr
root@freebsd:/usr/ports/www/firefox-esr #
root@freebsd:/usr/ports/www/firefox-esr #
root@freebsd:/usr/ports/www/firefox-esr #
root@freebsd:/usr/ports/www/firefox-esr # make BATCH=YES install clean
===>   firefox-esr-31.2.0,1 depends on file: /usr/local/sbin/pkg - found
=> firefox-31.2.0esr.source.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.


测试一下firefox
作者: SeAL80s    时间: 2015-03-15 20:00
回复 4# fender0107401


    帮主,我不开新贴了,借地方问一下:FreeBSD 的Handbook,大约是每7天左右就更新一次,至少在ftp上看时间是这样的。它是只更新了时间戳还是有内容更新呢?对比了最新的3.15的en和zh_CN.UTF-8,zh_CN还是没有pkgng的内容...为什么会这样呢?
作者: lsstarboy    时间: 2015-03-16 08:21
中文翻译主要来自社区,翻译者都是自愿兼职的,所以翻译进度比较慢,内容更新跟不上。
作者: fender0107401    时间: 2015-03-16 09:32
SeAL80s 发表于 2015-03-15 20:00
回复 4# fender0107401


你下载的那些是系统生成的文档,应该不是每天更新的。

要想每天更新,可以自己同步doc的代码树,然后编译生成对应格式的文档。我之前只生成html格式的。这样做就是最新的了。

中文的Handbook肯定是要落后于英文的Handbook的,而且很多章节的翻译质量都比较差。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2