Is there any command line i can use to install a .pkg file to my own directory?)

I'm a newer of Mac OS X, i need to insatll lots of .pkg package to my mac machine, so i think of install them use a script automatically, but i cnanot find any way to use the command line to insatll the .pkg package to my own forder(like /myapp). can somebody help me? thanks a lot.

Here's a article on how to move your home dir:
How to Move the Home Folder in OS X – and Why
The key basic steps are to copy your home dir to another drive and using the Accounts Preferences advanced options for the your account to redefine where your home dir is.
With or without the home dir moved you can organize your apps as you see fit.  I keep my apps categorized; doc/text related apps, video apps, calculators, etc.  They could even be on a third drive if you want, but that makes backups a bit more complicated (always backup).
The advantage of keeping the home dir separate from the boot dir is (a) if the boot drive fails it doesn't take your stuff with it, (b) it allows you to have multiple boot drives and switch among them if necessary while using the same home dir, and (c) if you use a ssd for a boot drive it allows you to use a relatively small ssd (I use a 120GB).
With a ssd as a boot drive you could still elect to put key apps on it for performance reasons.  I do that for commonly used stuff.  But it's mainly reserved for the boot system.  I try not to put any more that I have to on it just to minimize needless writing to the ssd.  Of course you cannot stop ssd writes by the OS itself (e.g., swap space -- but that too can be minimized with enough ram).

Similar Messages

  • Automator: Is there any command keys I can use to stop the workflow on the keyboard?

    Need to stop Automator without using a mouse.....suggestions?

    Command plus period should work.
    In Automator>Workflow menu, you should see the KB shortcuts.

  • I downloaded Trial version of Photoshop CS 6 - Now it has expired , i don't have serial key . Is there any way I still can use Photoshop Cs 6 ?

    I downloaded Trial version of Photoshop CS 6 - Now it has expired , i don't have serial key . Is there any way I still can use Photoshop Cs 6 ?

    What csuebele said, or download and install it as a trial on a different computer.

  • It there any app where i can use my existing account balance to in-app purchase a gift card?

    it there any app where i can use my existing account balance to in-app purchase a gift card?
    there are itunes gift credit remaining in my account, but i an trying to transfer it to another account, so if there are app that allow me to in-app purchase giftcard, then i can indirectly transfer the credit into my another account.
    is there anyone can help me with this question, or have a better idea
    thx a lot!!

    Skydiver119 Thank you, like I said new to the use of tablets but enjoing them vey much, thanks again will be adding some apps and iBooks to my iPad JoeNamath9

  • Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Are you a digimarc subscriber? You would be better off asking them, if so.

  • My pause forward and backwards button wont work. Are there any handicaps that i can use with the middle button?

    My buttons dont work and i wanted to know if there are any substitues that i can use with the home button.

    Nope, it either needs to be plugged in or turned on with the power button.
    A replacement iPhone 4 is $149, but at least the whole phone is replaced.

  • Is there a command which I can use to dump all the configurations as I set out in System Preferences on the Server?

    Hi folks,
    I am planning to reinstall OS X 10.6 on my Mac Server.  As such I need to collect all the configurations like User Account, User Password, File Sharing... which all are previously setup in the System Preferences.
    Instead of writing them down on paper, is there a command which I can execute to dump all these data to a file so that I can refer to them easily?

    I support Mac OS X Server at some schools, so I run it as a Home Server.
    I do not understand your question.
    Server is a package of additions that runs with Mac OS X as if it were part of the Operating System (login is not required for Server components to start up). It is not a wildly different Operating System. There is even an Installer package that allows you to ADD the server componets to an already-installed Mac OS X
    User information such as Preferences are stored in a /Users/<user_name>.
    This does not change after you install Server, but you can move the Users folder elsewhere, or you can move the Users accounts to an Open Directory database.

  • I have Quicktime 7 on my new MacBook Air running Yosemite 10.10.1 but would like to know if I can view or run my .mkv movies/files? Or are there any approved software that can run or view my .mkv files.  Thanks.

    I have a new MacBook Air running Yosemite 10.10.1 with Quicktime 7 but would like to know if I can view my .mkv files on Quicktime 7 or are there any approved software I can run that's safe for Yosemite 10.10.1.

    Hello kimosabe0731,
    Welcome to the Apple Support Communities! At this time, QuickTime does not support the playback of .mkv files. For more information, see the following resource:
    Media formats supported by QuickTime Player - Apple Support
    http://support.apple.com/en-us/HT201290
    Cheers,
    Matt M.

  • Javac command line program can use class, need tomcat to do same

    This may be simple, but any assistance to a newby would be greatly aprreciated. I have a this class file:
    import java.io.*;
    public class OCrypt
    static public String getEncryptedText (String plainText)
    Runtime R;
    String _encryptedText = "";
    char[] someData = new char[16];
    R = java.lang.Runtime.getRuntime();
    try
    java.lang.Process P = R.exec("./OCrypt " + plainText
    InputStreamReader ISR = new InputStreamReader(P.getInputStream());
    ISR.read(someData);
    _encryptedText = new String(someData,0,11);
    catch (Exception e)
    _encryptedText = "***ERROR***";
    return (_encryptedText);
    Where ./OCrypt is a compiled program writtine in C in the same folder. A small test program calls the class and C code and works. Now for the tomcat part, I need to be able to call this code from tomcat. I know it has worked in the past on a much older version of tomcat. I need to figure out how to make it work on tomcat 5.5.9
    Thanks

    Thanks for the reply. Please bare with me. I am reading in the SAMS teach yourself book to know how to create the folder structure. I assumed this folder should be off of my WEB-INF/classes folder. See the full path below.
    Couple of things
    1 - Your class should be in a package. Otherwise you
    will have problems.I added the .class file to a package. Or at least I think I did. I added this line to the top of the code.
    package OCrypt;
    The file is in this folder:
    /var/local/jakarta-tomcat-5.5.9/webapps/ROOT/pss/WEB-INF/classes/OCrypt
    Then I ran 'javac OCrypt' in that folder.
    2 -
    Where ./OCrypt is a compiled program writtine in C
    I always keep the C file in the same location as the class. That may be a problem later when tomcat can resolve the class but then can't find that program. I hope that will generate a completely different error.
    in the same folder.
    In the same folder as what?
    The current working directory for Tomcat is normally
    [TOMCAT]/bin. Is that the folder you mean? I will put it there if I get the class resolved.
    If you want to use this tool, I would say put it in
    the PATH for the machine (so it can be found from
    anywhere) or use an absolute reference to it.I can put a complete path in the .java file before I compile if you think that will help.
    You> can't count on the working directory being where you
    think it is. But right now I would just like to create a simple class like adding two numbers together and returning a result. My larger issue is more of a server configuration. I am using a enterprise wide tomcat server and have been told EACH application folder has it's own classpath. I even attempted to write a JSP that would output my enviroment to a simple page. This didn't work because the env was only for the user, not the env AFTER all the startup scripts run for the server.
    >
    One solution is to use ServletContext.getRealPath().
    Is there any reason you couldn't rewrite the
    encryption into Java - that way you wouldn't have to
    bother with Runtime.exec()
    Another alternative would be to use JNI to get a Java
    interface to the C class.
    http://www-128.ibm.com/developerworks/edu/j-dw-javajni
    -i.html
    I think either of those solutions are preferable to
    using Runtime.exec().

  • Is there any possible way I can use the keyboard controls/shortcuts of Microsoft on the Mac version or PhotoShop?

    I am very used to using a PC for Photoshop and just recently changed to Mac. I tried plugging in a different but the keyboard shortcuts arent like Windows version

    shldr2thewheel wrote:
    Since you have a mac, learn how to use Photoshop for Mac and stop thinking about Windows.  Time to let go and learn how to use programs for Mac.
    This is pretty horrible advice. 95% of Photoshop works the same on Mac and PC. Almost all of the keyboard shortcuts are identical except that Ctrl becomes Command and Alt becomes Option (same key anyway). The menus are all the same.
    shldr2thewheel wrote:
    Also, when using PS on a Mac, their is no option to enable "windows keyboard mode" in OS X. I know, I have used PS on a PC and currently use it on a Mac.  You have no option but to learn how to use it on a Mac.  If you are comfortable with Windows, purchase a copy of Windows and run it in Boot Camp or a virtual machine and purchase a copy of PS for windows. Then when in Windows, I believe you can use MS shortcuts.
    This is also (mostly) incorrect advice.
    If you look in the Keyboard system preference, and you click Keyboard Shortcuts, you will find a shortcut called "Move focus to the menu bar." Once this happens, you can type ahead to menus and commands, much like the alt menu shortcuts in Windows. If you wanted to open the Duplicate command, it would be Ctrl-F2 to activate the menu bar (edit that shortcut if you don't like it), then type I and Enter to drop the Image menu, then type D and Enter to open Duplicate. If there were two D commands, you would type ahead until the letters are different. You can use the spacebar instead of Enter, and Esc does the same as Windows. I just tried all this in CS5 and it works fine. The advantage over Windows is that you do not need to memorize the alt shortcuts, because it's based on the command name you want instead of an arbitrary letter in the middle of the name.
    As jasdril said, you can simply edit the direct shortcuts too. But in most cases there should be no need to because as I said, most are the same anyway.
    In short, there is plenty of keyboard-driven flexibility there for anyone willing to adapt just a little tiny bit.
    The second advice that is not so good is recommending a Windows virtual machine. That'll slow down Photoshop, in addition to using up a lot of RAM and CPU that Photoshop really needs. The Mac version of Photoshop being native, would run at a proper speed.
    The last possibly bad decision in this thread is TTro787 deciding to take the Mac back to the store, ignoring a quarter century of history of the Mac as a well-established graphic design and photo workstation. If you don't think the Mac is going to work well for Photoshop, it isn't going to be because of the Mac... the Mac is not just for Starbucks posers. Too many smart scientists (who want to use the Unix-based OS) and competent designers use Macs.
    In short there is a whole lot of intolerance and assumed differences in this thread by both Mac and Windows zealots, which is too bad. Photoshop is mostly the same on Mac and Windows unless you're trying really hard to make it not work.

  • Are there any updates so i can use my HP Photosmart C4780 All in One Printer wirelessly?

    just wondering..are there any updates for the iMac with OS X (10.8.2) so I can use my HP Photosmart C4780 All in One (Print,Scan,Copy)?

    Hi,
    An HP Full Feature Software is not available for Mountain Lion, therefore the Wireless configuration is tricky and cannot be done through the software.
    To connect the printer to your wireless network you will need to create a temporary wireless ad hoc connection, then the wireless connection to your router can be configured via the EWS page:
    Step one: Restore the printer's network default settings
    Touch the ATM button ( ) next to Wireless / Scan .
    Touch the ATM button ( ) next to Wireless Menu .
    Touch the ATM button ( ) next to Wireless Settings .
    Use the up and down ATM buttons ( ) to select Restore Network Defaults , and then press OK .
    Touch the ATM button ( ) next to  Yes to confirm your selection.
    Step two: Networkly connect the Mac to the printer by creating a temporary ad-hoc connection
    From the Mac, click the Wi-Fi icon.
    Click Join other network.
    Click Show Networks.
    Select the printer's SSID, it should be listed as HPSETUP or should contain HP or C4700 within its name.
    Click Connect
    Allow two-three minutes to fully establish the network connection.
    Step three: Connect the printer to your router via the EWS page
    Open Safari.
    Click the Bookmarks icon ()
    Click Bonjour.
    Double click the printer name, the EWS page appears.
    Open the Networking tab.
    From the left pane select Wireless.
    Click the Start Wizard button and follow the steps to connect the printer to your router.
    Step four: Reconnect the Mac to your router
    From the Mac, click the Wi-Fi icon.
    Click Join other network.
    Click Show Networks.
    Select your router SSID.
    Click Connect
    Allow two-three minutes to fully establish the network connection.
    Now the printer should be connected to your network.
    Open Print & Scan, click the Plus sign and add the printer listed as Bonjour.
    btw John Galt - I this it should be spelled as OS X, please correct me if i'm wrong.. ;-)
    Hope that helps,
    Shlomi

  • HT203146 My Macbook Pro trackpad is unresponsive. Are there key commands which I can use to open my computer?

    Macbook Pro trackpad will not click so I am unable to log in. Are there any suggestions to fix this? Can I use keystrokes to log in and potentially solve the problem?

    Try SMC and NVRAM resets:
    http://support.apple.com/en-us/HT201295
    http://support.apple.com/en-us/HT204063
    Then try a Safe boot:
    http://support.apple.com/en-us/HT201262
    Ciao.

  • Is there any command line option, so that when I open firefox from command line it uses the already opened firefox, instead of creating a new firefox window.

    for example: this option is available with jedit editor.
    jedit
    above cmd always opens a new jedit instance.
    jedit -reuseview
    above cmd checks if there is a existing jedit instance if yes brings it to focus else opens up a new one.

    Start your '''Computer''' in safe mode with networking. Then start Firefox.
    After a bit, close it. Then open it a few minutes later.
    '''[http://encyclopedia2.thefreedictionary.com/Linux+Safe+Mode Starting The Computer In Safe Mode;<br>Free Online Encyclopedia]'''

  • Is there any email address i can use to contact customer support ?

    I bought my iPhone 4S 2 months ago , and ever since the first week of usage the phone started bugging. It doesnt read my SIM card although i got a brand new one. I took it to the shop where i bought it , the sales man said that nothing was wrong with the device. Now 2months later im still having the same problem and it seems there was no solution for it, im starting to think that its a factory default problem. And since i live in Lebanon, we do not have any apple factory guarantee. It's like i threw 800$ over nothing, knowing that im a loyal apple consumer, and ive put my trust in its products.  So i need to know if there is any way i could contact someone directed to the factory to state my problem officially ?
    Thank you

    Apple does not provide technical support nor customer support via e-mail.
    And since Apple has not released the iPhone in Lebanon, they will not provide support for using an iPhone in that country. You will need to go back to the reseller from whom you purchased your iPhone; Apple cannot help you. This is the risk you take when you purchase a product from one country for use in another country where the product has not been release; you basically are then on your own when it comes to support.
    Regards.

  • Are There Any Other Speakers You Can Use with MacPro Besides 5.1?

    I have Logitech Z5500 speakers on my PowerMac G5 and I wanted to get speakers for the MacPro but not the 5.1 speakers because I don't want to crowd it up with 5 more speakers. But it seems like the only speakers that have the optical port are the 5.1 speakers and they don't have 2 optical ports to support both computers.
    Do I have any other choices? Any ideas??
    MacPro 2.66 ghz, Macbook Pro, Macbook, PowerMac G5 Dual Core   Mac OS X (10.4.7)  

    Glad to have been of service.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

Maybe you are looking for