title: MAC command to run a .pkg file on terminal
body: <p>I have a .mpkg file which i want to execute from the terminal
  I sucessfully used this command to achive this </p>
  
  <pre>sudo installer -pkg Snip.mpkg -target /Applications</pre>
  
  <p>But the thing is that when i run this command it ask me for the admin password before performing the installation.
  Is there a way i can do this without the password or can i provide the password also in my sudo installer command...</p>
  
  <p>Also see :- <a href="https://stackoverflow.com/questions/5297647/running-pkg-on-mac-os-from-java-code">Running .pkg on MAC OS from java code</a></p>
  
  <p>please reply</p>
  
  <p>thanks in advance</p>