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 编辑

portsnap fetch update找到了,当前系统大概下载70M


还有我不知道fb安全更新port系统是如何维护处理的???

fender0107401 发表于 2015-02-13 11:03

看这个:http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/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 static/image/common/back.gif
回复 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 static/image/common/back.gif
像firefox这种软件,不需要手动指定编译参数,还不如用pkg方便,pkg更新起来也容易一些。
其实windows的思 ...

现在是新人想学习一些基础,其实linux这一大套操作流程我都熟悉

lsstarboy 发表于 2015-02-15 09:00

回复 9# action08


    porter手册可能更适合你。
页: [1] 2
查看完整版本: 手册帮版主,ports tree如何更新打补丁??