*奇想西卡*

« [freebsd] 異地備援好東西 rsync | Main | [美食] 雲蓮居(嘉義) »

19 二月, 2006

[freebsd] 更新ports

Freebsd — 作者 segaa @ 17:39

Freebsd 最獨特的地方就在於ports 的便利性,透過ports來找到所需的軟體並安裝也無須擔心相容性或是相依性的問題,又可以持續更新ports的軟體,這篇主要是介紹如何更新ports tree 讓安裝程式時ports tree保持在最新的狀態 :D

開始用Ports安裝應用軟體:
cd /usr/ports/net/cvsup-without-gui; make install clean
cd /usr/ports/sysutils/portupgrade ; make install clean
cd /usr/ports/ftp/wget ; make install clean
cd /usr/ports/security/sudo ; make install clean
cd /usr/ports/shells/bash2 ; make install clean
cd /usr/ports/ftp/ncftp3 ; make install clean
cd /usr/ports/mail/imap-uw ; make install clean
cd /usr/ports/mail/qpopper ; make install clean
cd /usr/ports/security/pidentd ; make install clean
cd /usr/ports/misc/gnuls ; make install clean


其中,cvsup-without-gui 與 portupgrade 是屬於系統更新( src 及 ports-tree )

的工具軟體,建議您一定要裝。
查看安裝之後的結果:
pkg_info
autoconf-2.13_1 Automatically configure source code on many Un*x platforms
bash-2.05 The GNU Bourne Again Shell
gettext-0.10.35 GNU gettext package
gettext-0.10.38 GNU gettext package
gmake-3.79.1 GNU version of 'make' utility
isc-dhcp3-3.0.r11 ISC Dynamic Host Configuration Protocol client and server co
de
libiconv-1.7_1 A character set conversion library
libtool-1.3.4_2 Generic shared library support script
m4-1.4 GNU's m4
ncftp3-3.0.3 ftp replacement with advanced user interface
pidentd-2.8.5 An RFC1413 identification server
qpopper-4.0.3_1 Berkeley POP 3 server (now maintained by Qualcomm)
wget-1.7_3 Retrieve files from the 'net via HTTP and FTP

大海撈針:搜尋某一ports
cd /usr/ports
make search key="popper" | more
cd /usr/ports
make search key="libiconv" | grep Path: | grep libiconv
Port: qpopper-2.53_2
Path: /usr/ports/mail/popper
Info: Berkeley POP 3 server (now maintained by Qualcomm)
Maint: ache@freebsd.org
Index: mail
B-deps:
R-deps:

Port: qpopper-4.0.3_1
Path: /usr/ports/mail/qpopper
Info: Berkeley POP 3 server (now maintained by Qualcomm)
Maint: lioux@FreeBSD.org
Index: mail ipv6
B-deps: autoconf-2.13_1 m4-1.4
R-deps:

Port:軟體名稱,Path:路徑,Info:訊息,Maint:維護者,Index:類型。
cd /usr/ports
make search key="libiconv" | grep Path: | grep libiconv


--------------------------------------------------------------------------------


ports-tree的更新
cd /usr/ports

fetch ftp://freebsd.csie.nctu.edu.tw/pub/CVSup/cvsupfile-ports
cvsup -g -L 2 cvsupfile-ports


« [freebsd] 異地備援好東西 rsync | Main | [美食] 雲蓮居(嘉義) »

迴響


發表迴響






Powered by LifeType