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