Portsnap 方式 更新porttree

Portsnap 方式

portsnap(8) 也是更新 Ports Collection 的方式之一。 FreeBSD 6.0 起開始內建 Portsnap 機制,而較舊的系統,則可透過 sysutils/portsnap port 來安裝:

 # pkg_add -r portsnap

Portsnap 細節功能,請參閱 Portsnap 使用篇

  1. /usr/ports 目錄不存在的話,就建立一下吧:
     # mkdir /usr/ports
  2. 接下來,下載壓縮的 Ports Collection 定期更新檔到 /var/db/portsnap 目錄。 完成下載後,要斷線與否都可以。
     # portsnap fetch
  3. 若是第一次跑 Portsnap 的話,則需要先解壓到 /usr/ports
     # portsnap extract

    若已有 /usr/ports 而且只是想更新而已,那麼就照下面作:

     # portsnap update

One thought on “Portsnap 方式 更新porttree

  1. I’m a huge fan of using Positive Quotes from Historical Figures as part of my conversations, I find that it helps me go deeper with people as the words of the wise leaders from the past seem to inspire deep thoughts…For what it’s worth, I’ve been doing this for years now and it makes a huge difference in the overall satisfaction in the exchange, so i can say first hand that what you’re saying is definitely true from my perspective…

There are a few things that can cause this shoe fiasco-spun9 發表迴響 取消回覆

你的電子郵件位址並不會被公開。 必要欄位標記為 *