Install from Terminal

Discussion in 'Mac Basics and Help' started by Independent147, Jun 17, 2010.

  1. Independent147 macrumors newbie

    Joined:
    Aug 21, 2007
    #1
    Hi, I've just begun "playing" with Terminal, and I was wondering if anyone knows if it is possible to install packages from terminal. Just a little "get to know it" kind of thing...
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    The hdid command can be used to mount DMG files. Then you can also use the installer command for pkg files. Use the man command to find further details on these commands.
     
  3. Slux macrumors member

    Slux

    Joined:
    Apr 27, 2010
    #3
    There is also an application out there called "macports" that allows Linux-like package management in OS X, with a repository of open source software. I havent played with it much further than installing Wine though, so I can't really tell you much about it.
     
  4. Zortrium macrumors 6502

    Joined:
    Jun 23, 2003
    #4
    MacPorts will basically let you easily install anything that you want to run from the command line. Doesn't do much with GUI apps though.
     
  5. mac2x macrumors 65816

    Joined:
    Sep 19, 2009
    #5
    I always like hearing about a user who wants to learn the command line...it's what separates the real geeks from the wannabes. :D

    Just use common sense, and NEVER EVER run a command you do not understand. You can easily access the manual like so:

    Code:
    $ man [command here]
    
    That will display a handy page detailing exactly what the command does, as well as any optional flags that can be appended. Simply press Q to exit the help.

    Some resources I have used:

    http://www.hypexr.org/bash_tutorial.php
    http://www.ibm.com/developerworks/linux/library/l-bash.html
    http://ss64.com/osx/
    http://www.dartmouth.edu/~rc/help/faq/permissions.html

    Enjoy! :)
     
  6. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #6
    Especially if someone on the internet tells you to do it.

    An excellent tip. When I first started messing around with the command line, I didn't know how to close help, as the usual way (^C) doesn't work. I had to close the terminal window every time.
     
  7. Independent147 thread starter macrumors newbie

    Joined:
    Aug 21, 2007
    #7
    Thank You

    Thank you to all of you, I'll take the advice hand in hand with the warnings. It honestly took me quite a while to figure out that quitting man was q. I had been trying to find these commands from a mix of searching the internet and using the trick in terminal where you hold escape and then enter y at the prompt, followed by looking any potential commands up using man. That was relatively unsuccessful thanks to there being over 1400 listed commands :D

    I might be using this board again in the future (as I have in the past), and maybe I'll start offering advice to others on how to perform what they are asking.

    In any case, I thank all of you and wish you luck in your computing endeavors!
     

Share This Page