webOS Nation Forums >  webOS apps and software >  webOS development > You still don't need to put /var in your ipkgs. How to install properly using ipkg.
You still don't need to put /var in your ipkgs. How to install properly using ipkg.

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/10/2009, 10:30 AM   #1 (permalink)
Member
 
Join Date: Jun 2009
Posts: 211
Likes Received: 0
Thanks: 28
Thanked 147 Times in 41 Posts
Default You still don't need to put /var in your ipkgs. How to install properly using ipkg.

As in, from the root prompt on your pre.

ipkg -o /var install foo.ipk

This command installs your packages using /var as the root directory instead of /. This obviates the need to run "mount -o remount,rw /" before and "mount -o remount,ro /" after installing. You still need to run "exec luna-send -n 1 palm://com.palm.applicationManager/rescan {}" after installing, however.

This is what happens when you install applications from the App Catalog, or via the email hole in previous versions of WebOS. I've inspected at least one App Catalog ipk file (Speed Brain) and confirmed that (a) its data.tar.gz file doesn't use /var in its paths and (b) it still installs into /var.

If your ipkg for some reason includes files outside of /usr/palm/applications (as I'm speculating may be the case for some packages that aren't pure Mojo), this process *may* not be appropriate.
dsevil is offline   Reply With Quote
Thanked By: a2thejay23
Old 07/10/2009, 03:53 PM   #2 (permalink)
Member
 
a2thejay23's Avatar
 
Join Date: Jun 2009
Posts: 46
Likes Received: 0
Thanks: 3
Thanked 6 Times in 3 Posts
Default

where would u copy the ipk to exactly to make this work?

like meaning what dir would u put the ipk in when you copy it from the computer onto the pre
a2thejay23 is offline   Reply With Quote
Old 07/10/2009, 04:19 PM   #3 (permalink)
Member
 
a2thejay23's Avatar
 
Join Date: Jun 2009
Posts: 46
Likes Received: 0
Thanks: 3
Thanked 6 Times in 3 Posts
Default

nm figured it out thanks!
a2thejay23 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0