顯示具有 macport 標籤的文章。 顯示所有文章
顯示具有 macport 標籤的文章。 顯示所有文章

2017/01/09

Clean up cache inactive ports

As there is a shortage on my mac book, I need to free storage from mac ports
sudo port -f clean --all all
sudo port -f uninstall inactive
​

2015/06/21

How to install Mongodb via macport

Warning

This blog post is useless for guys using Homebrew. Actually, according to the official document, you should use homebrew for installing mongodb.
However, if you are the fans of macport, it should be useful for you :).

Steps

  • Follow instructions from here
Congratulation. You have successfully installed Mongodb.

Gotcha

  • Missing some binaries same as issue here
    $> sudo port install mongo-tools
    
​

2014/11/09

Notes on using macport

What is macport

Macport is a package manager tools on MAC OSX. It works like what apt-get does on Debian system.

Tricks

To save my time in the futures, here are experiences which learnt from painful try and error process.

BASH AUTO competition

There is no auto completion (IE Tab will not work) by default. Please read this for setting up an auto completion.

List of common commands

  • port search PKG or port search —regex ‘PKG‘
A command for you to search packages.
  • port install PKG
Install a package from macport
  • port uninstall PKG
Uninstall a package from macport
  • port select PKG VERSION
Select a version for a package. Sometime, packages come with more than one version (py27, py3). This command allows you to select which version will be used when you call python instead of calling python2.7 explicitly.
  • man port
A command for reading the manual page of port.
​