日期:2014-05-16 浏览次数:20673 次
macport相当于linux下的yum或者是aptget等包管理软件,可以很方便的安装软件。下面来看一下他的基本命令
转自:http://www.joycodes.com/index.php/mac-port-update-command/
?
* 更新port自身
|
sudo
port selfupdate
|
* 列表
|
post list
|
* 搜索包
|
port search package
#package为搜
索名称,支持通配符
|
* 安装
|
sudo
port
install
package
|
* 删除
sudo
port uninstall package
|
* 更新过期的包
|
sudo
port upgrade outdated
|
* 删除为激活的包
sudo
port uninstall inactive
|
有关port的命令还有很多,详情请参考http://guide.macports.org/
?
===========
?
Install and configure MySQL 5 with MacPorts
I decided to move my MySQL server installation from the server I installed from MySQL .com to macports. Why? I believe MacPorts will simplify future upgrades. I'd also like to keep my LAMP installs in the same location. If you haven't already, install and configure MacPorts . Here are the steps I'll go over:
You can install using Porticus, Port Authority, or from the command line: