http://bbs.chinaunix.net/thread-1020336-1-1.html
安装portupgrade程序
Shell:
cd /usr/ports
make search name=portupgrade
cd /usr/ports/ports-mgmt/portupgrade/
make install clean;rehash
Options for portupgrade 2.3.1,2
[X]
BDB4
Use Berkeley DB >=2 as backend
至此portupgrade程序安装完成。
Shell:
pkgdb -F
Shell:
portupgrade -ai
Shell:
portupgrade -R ruby
Shell:
portupgrade -P cvsup-without-gui
Shell:
pkg_info -L axel-1.0b | less
Information for axel-1.0b:
Files:
/usr/local/man/man1/axel.1.gz
/usr/local/bin/axel
/usr/local/etc/axelrc
/usr/local/share/locale/de/LC_MESSAGES/axel.mo
/usr/local/share/locale/nl/LC_MESSAGES/axel.mo
如查不记得程序版本名称,也可以使用pkg_info | grep -i 程序名称
Shell:
pkg_info | grep -i axel
axel-1.0b
A download accelerator
Shell:
portsclean -C
Cleaning out /usr/ports/*/*/work...
portsclean -DD
Detecting unreferenced distfiles...
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 22 packages found (-1 +1) (...). done]
Delete /usr/ports/distfiles/automake-1.4-p6.tar.gz
Delete /usr/ports/distfiles/ezm3/ezm3-1.2-FreeBSD4-boot.tar.bz2
Delete /usr/ports/distfiles/ezm3/ezm3-1.2-src.tar.bz2
Delete /usr/ports/distfiles/rpm-3.0.6.tar.gz
Delete /usr/ports/distfiles/ezm3