May 29,2006

Darwin Port 簡單使用方式

好久沒特別去使用 darwin port 了
最後還是決定去用他
下面就是他的使用方式

  1. port install mysql5 -> 安裝 mysql5
  2. port install php5 +apache2 +mysql5 -> 安裝 PHP ,並且加入apache2,mysql5這些 configure variable(可從port info 看到 可以加的variant)
  3. port search mysql5 -> 查詢 mysql5
  4. port info mysql5 -> show 出 mysql5
  5. port uninstall mysql5 -> 移除 mysql5
  6. port uninstall mysql5 @5.0.12 -> 移除 mysql5 5.0.12的version ,通常用於安裝兩個以上的 package
  7. port installed -> 看安裝了啥套件
  8. port sync -> To get the latest Portfiles (the instructions for building ports)
  9. port selfupdate -> To get the latest DarwinPorts infrastructure (or "base") for building ports, you need to update your base via this command
  10.  port outdate ->To determine which ports are out-of-date (the current Portfile provides a newer version than the installed version of the port)
  11. port index ->

    Most of the time you won't need to use this command as it is used to build the index of all the available ports, but sometimes the index you have is out of date or innacurate for some reason. When this occurs you will get an error message like 'port search failed: expected integer but got "PortIndex"'. You can fix problem by moving to the dports directory (/Users/mike/darwinports/dports in our examples) and executing: portindex. This will go through all the available ports in the dport directory and build an index file called PortIndex.



Posted by thegiive at 樂多Roodo! │23:34 │回應(0)引用(0)MAC
樂多分類:日記/一般 工具:編輯本文
Ads by Roodo! 

引用URL

http://cgi.blog.roodo.com/trackback/1681935