cp file from contents of .mpkg

Discussion in 'macOS' started by mr666, Jul 1, 2011.

  1. mr666, Jul 1, 2011
    Last edited: Jul 1, 2011

    mr666 macrumors regular

    Sep 14, 2009
    In single-user mode, please explain the command to navigate to the contents of
    /Volumes/"Mac OS X Install DVD"/System/Installation/Packages/OSInstall.mpkg/contents/EssentialSystemSoftware/Contents/EssentialSystemSoftwareGroup/contents/BaseSystem.pkg/contents/bin

    in order to cp the sh file to /volumes/Macintosh\ HD/bin

    I don't want to run any of the various installers, just cp a file from the contents.
  2. Jagardn macrumors 6502a

    Apr 18, 2011
    Everything in single user mode is CASE SENSITIVE also, any spaces have to be escaped like this "/Volumes/Mac\ OS\ X\ Install"

    Basically the syntax is...
    cp source destination
    I don't see a reference to a script file anywhere in your path, but it would look something like this
    "cp /Volumes/Mac\ OS\ X\ Install\ DVD/System/Installation/Packages/OSInstall.mpkg/contents/EssentialSystemSoftware/Contents/EssentialSystemSoftwareGroup/contents/BaseSystem.pkg/contents/bin/script.sh /Volumes/Macintosh\ HD/bin"

    That is assuming your script name is script.sh.

Share This Page