macport操作

| No Comments | No TrackBacks

macport是BSDer们在Mac下无法或缺的工具之一,其使用时支持的命令很多。罗列如下:

activate, archive, build, cat, cd, checksum, clean, compact, configure,
contents, deactivate, dependents, deps, destroot, dir, distcheck, dmg,
dpkg, echo, ed, edit, exit, extract, fetch, file, gohome, help, info,
install, installed, lint, list, livecheck, location, mdmg, mirror, mpkg,
outdated, patch, pkg, provides, quit, rpm, search, selfupdate, srpm,
submit, sync, test, trace, unarchive, uncompact, uninstall, upgrade,
url, usage, variants, version, work

但是最常用也就无非是install,selfupdate,upgrade,uninstall,search,list这几个。

其实macport还有一种叫伪名称的东东,罗列如下:

all, current, active, inactive, installed, uninstalled, and outdated.

以下是我常用的一些macport命令

port -d selfupdate #升级macport, 如同:cd /usr/ports && make update
port install xxx #安装xxx软件, 如同:cd /usr/ports/kkk/xxx && make install
port upgrade outdated #升级所有已过时的软件,作用如portupgrade -a
port installed #列出已经安装的软件,如pkg_info
port search xxx #列出与xxx条件相符的软件,如cd /usr/ports/ && make search name=xxx

No TrackBacks

TrackBack URL: http://mt.khsing.net/cgi-bin/mt-tb.cgi/25

Leave a comment

About this Entry

This page contains a single entry by Guixing published on July 11, 2008 12:02 AM.

RMS现在就像是一条疯狗 was the previous entry in this blog.

django admin的变化 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.