顯示具有 portsnap 標籤的文章。 顯示所有文章
顯示具有 portsnap 標籤的文章。 顯示所有文章

2012年7月17日 星期二

使用PortUpgrade來升級PortUpgrade套件



先更新ports tree
# portsnap update
若失敗則改先執行下列指令
# portsnap fetch update

未來更新ports tree只要執行下列指令即可
# portsnap update

確認ports tree已有更新
# more /usr/ports/UPDATING
可查看有沒有最近release的最新update資訊

-----UPDATING 部份內容-----

20120717:
  AFFECTS: users of ftp/proftpd
  AUTHOR: mm@FreeBSD.org

-----UPDATING 部份內容結束-----


開始進行portupgrade套件更新
# portupgrade portupgrade

升級完後會看到下列資訊
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib/compat/pkg
===>   Installing ldconfig configuration file
===>   Registering installation for portupgrade-2.4.9.5,2
===>  Cleaning for portupgrade-2.4.9.5,2
--->  Cleaning out obsolete shared libraries
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 151 packages found (-0 +1) . done]

檢查目前portupgrade版本
# pkg_version -v | grep portupgrade

portupgrade-2.4.9.5,2               =   up-to-date with port

升級完後建議執行"pkgdb -F"修復程式間關連性
# pkgdb -F 
--->  Checking the package registry database

Freebsd 使用portsnap 更新ports Tree

使用portsnap更新ports Tree

若是第一次更新ports Tree
# portsnap fetch extract
# portsnap update
更新ports Tree
# portsnap fetch update

查看ports Tree更新狀況
# less /usr/ports/UPDATING

內容中可看到最新近的更新資訊

20120716:
  AFFECTS: users of www/lighttpd
  AUTHOR: mm@FreeBSD.org

  The following port options have been reorganized:
  The OPENLDAP option has been renamed to LDAP.
  The MAGNET and CML options have been withdrawn in favor of new LUA option.