參考網頁:

http://www.freebsd.org/doc/zh_TW/books/handbook/ports-using.html

http://man.ddvip.com/os/freebsdsysc/portsnap.html

 

2013/3/23重要宣告:未來更新ports tree時,皆應使用portsnap,cvsup/csup已停止使用。

 

FreeBSD 6.0之後都內建portsnap,直接使用即可,檔案會解在/var/db/portsnap/下:

#portsnap fetch    //第一次使用要先跑這個。

Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching public key from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Thu May 30 08:02:17 CST 2013:
54ae5af06b485363ba5f08c4e89c28f4da55fc67bcab8c100% of   69 MB  425 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Thu May 30 08:02:17 CST 2013 to Thu May 30 15:55:00 CST 2013.
Fetching 3 metadata patches.. done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 7 patches.... done.
Applying patches... done.
Fetching 1 new ports or files... done.

#portsnap extract     //第一次使用要先跑這個。

#portsnap fetch update  //更新整個ports

.....................................

/usr/ports/x11/yelp/
/usr/ports/x11/zenity/
Building new INDEX files... done.

日後要更新,可以隨時跑:

#portsnap update

就會更新整個ports tree了。比以前用cvsup或是csup方便。

 

arrow
arrow
    文章標籤
    FreeBSD portsnap ports tree
    全站熱搜

    貓熊麗麗 發表在 痞客邦 留言(0) 人氣()