2.1. Using the Packages System
2.1.1. PACKAGESROOT / PKG_PATH 环境变量
setenv PACKAGESROOT ftp://ftp.freebsdchina.org pkg_add -r libxml2 gmake autoconf262 export PKG_PATH=ftp://ftp.freebsd.org/pub/FreeBSD/8.2/packages/i386/ pkg_add mysql-server php5-fastcgi php5-gd-5.2.6-no_x11 lighttpd-1.4.19p3 nginx pecl-APC
2.1.2. Installing a Package
# pkg_add -r lsof
2.1.3. Managing Packages
# pkg_info libiconv-1.13.1_1 A character set conversion library libxml2-2.7.7 XML parser library for GNOME lighttpd-1.4.26_3 A secure, fast, compliant, and very flexible Web Server pcre-8.02 Perl Compatible Regular Expressions library php5-5.3.2_1 PHP Scripting Language pkg-config-0.23_1 A utility to retrieve information about installed libraries spawn-fcgi-1.6.3 spawn-fcgi is used to spawn fastcgi applications
freebsd0# pkg_version libiconv = libxml2 = lighttpd = pcre = php5 = pkg-config = spawn-fcgi = # pkg_version -v libiconv-1.13.1_1 = up-to-date with port libxml2-2.7.7 = up-to-date with port lighttpd-1.4.26_3 = up-to-date with port pcre-8.02 = up-to-date with port php5-5.3.2_1 = up-to-date with port php5-ctype-5.3.2_1 = up-to-date with port php5-dom-5.3.2_1 = up-to-date with port php5-extensions-1.4 = up-to-date with port php5-filter-5.3.2_1 = up-to-date with port php5-hash-5.3.2_1 = up-to-date with port php5-iconv-5.3.2_1 = up-to-date with port php5-json-5.3.2_1 = up-to-date with port php5-pdo-5.3.2_1 = up-to-date with port php5-pdo_sqlite-5.3.2_1 = up-to-date with port php5-posix-5.3.2_1 = up-to-date with port php5-session-5.3.2_1 = up-to-date with port php5-simplexml-5.3.2_1 = up-to-date with port php5-sqlite-5.3.2_1 = up-to-date with port php5-tokenizer-5.3.2_1 = up-to-date with port php5-xml-5.3.2_1 = up-to-date with port php5-xmlreader-5.3.2_1 = up-to-date with port php5-xmlwriter-5.3.2_1 = up-to-date with port pkg-config-0.23_1 = up-to-date with port spawn-fcgi-1.6.3 = up-to-date with port sqlite3-3.6.23.1_1 = up-to-date with port
2.1.4. Deleting a Package
# pkg_delete php5-5.3.2_1
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。
时间: 2024-10-06 15:40:25