I come from a linux background and recently started using Mac OSx (Mountain lion).

On linux, I used to install LAMP using a simple command sudo apt-get install lamp-server^

I was wondering is there is a similar command in Mac OSx? I know there are integrated web server program like MAMP, XAMPP etc but I dont to install those.

Please if someone can guide me.

Thanks