How do I use the installer from the command line?

Discussion in 'Mac Basics and Help' started by Jethryn Freyman, Oct 29, 2009.

  1. Jethryn Freyman macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #1
    Trying to install a .pkg from the command line in single user mode.

    I'm using the command "installer -pkg Installer.pkg -target /

    The .pkg is on a mounted USB drive. / is also mounted.

    When I run the command, the screen scrolls to a new blank line and stays there but nothing happens. The light on my USB indicates no data transfer is happening. I get no output, even if I add -verbose to the command.
     
  2. TuffLuffJimmy macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #2
    Do you have the proper pathname?
    /Volumes/USBDRIVE/installer.pkg
     
  3. Jethryn Freyman thread starter macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #3
    Yes, all the path names, spelling, and capitalisation are correct. The software runs correctly on OS X 10.5 and the program itself is simple.
     
  4. TuffLuffJimmy macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #4
    Is it installable once it's been moved to your boot drive?
     
  5. Jethryn Freyman thread starter macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #5
    No, same problem.
     
  6. TuffLuffJimmy macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #6
    perhaps it's an issue with the installer package itself. Does it carry the right permissions?
     
  7. Jethryn Freyman thread starter macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #7
    Yeah the package install fine from the Finder.
     
  8. TuffLuffJimmy macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #8
    I'm stumped. Unless I had the package to look at I can't diagnose an issue.
     
  9. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #9
    Don't forget to mount both /Volumes/USBDRIVE and / as writable, if installing from the USB drive.
     
  10. Jethryn Freyman thread starter macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #10
    http://code.google.com/p/logkext/
    It's logKext, a keylogger.

    Both mounted correctly and writable.
     
  11. Jethryn Freyman thread starter macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #11
    Also tried setting the target to /Volumes/Macintosh\ HD and /dev/diskXsX
     

Share This Page