webOS Nation Forums
> Homebrew
> WebOS Internals
>
Package Manager Service
1
2 3 4
Developer:
rwhitby
at: 08:35 PM 12/06/2009
The Package Manager Service (we prefer to abbreviate it as ipkgservice, rather than PMS) is the means by which front-end application installers like Preware (and PreLoad, and any other open source application installers that wish to use it) are able to install advanced homebrew applications containing installation scripts from open standard package feeds in a safe and secure manner.
In general, the end-user should never notice ipkgservice. It should just operate when called by the front-end application, and only really be seen by the user when it pops up a confirmation screen for the user to confirm an action that requires root-level privileges. Installation instructions for Preware refer to ipkgservice separately because WebOS Quick Install does not yet follow package dependencies and install it automatically. The stand-alone installers for Preware automatically install ipkgservice.
End-user documentation for ipkgservice does not exist, and probably will never exist. Please refer to the documentation for the front-end application (e.g. Preware) that you are using.
Developer documentation for ipkgservice does not exist either - at the moment you need to read the source code for ipkgservice or preware to find out how to interface to ipkgservice. The guys who wrote PreLoad were able to do it, so other developers can too
A number of people have requested a separate thread for ipkgservice. This is it
See
http://git.webos-internals.org/trac/ipkgservice/roadmap for the ipkgservice roadmap.
When an update is available tap
Update to install the new version. After it is installed you will see this screen:
When you press OK, your phone will do a
"Java Restart." It will not "reboot" but may seem sluggish for a minute or so while it restarts everything in the background.
-- Rod
Developer:
rwhitby
at: 08:40 PM 12/06/2009
Possibly a silly question Rod, but what exactly does the restartDevice method do, and is it accessible by us basic users?
Thanks for all the hard work you guys do to make this device so amazing!
Developer:
rwhitby
at: 08:53 PM 12/06/2009
Originally Posted by rykatemom:
Possibly a silly question Rod, but what exactly does the restartDevice method do, and is it accessible by us basic users?
Specifically, it runs 'tellbootie' (which is a linux program which palm provides to reboot the device) with no arguments and with no confirmation (it's up to the front-end application that calls this method to confirm with the user before it reboots the device).
It's exactly the same as when you press Orange-Sym-R on the keyboard.
We do realise that this could be used maliciously by a rogue webOS application, but since such an application couldn't do anything other than rebooting your device, we don't consider it a real security issue, and such an application would fairly quickly be identified.
It's been added in preparation for future homebrew modifications that need more than just Luna and Java to be restarted.
-- Rod
Ah, awesome. Thanks much!
Will that run automatically, or with a prompt allowing the user the option to go ahead or cancel?
Developer:
rwhitby
at: 09:04 PM 12/06/2009
Originally Posted by rykatemom:
Ah, awesome. Thanks much!
Will that run automatically, or with a prompt allowing the user the option to go ahead or cancel?
That'd be a front-end application (e.g. Preware) question
For Preware, yes it will give such an option. We're working on that right now for the next Preware version.
-- Rod
Brilliant, thanks much for the answers Rod!
Rod,
In the opening post, would you be willing to show a couple of screenshots?
Thank you!
- Craig
Member:
sagipe
at: 09:22 PM 12/08/2009
Rod,
When I updated the package manager service from Preware, I noticed that the shell script it runs contains a section relevant only to WebOS 1.3.5:
15 # Is the app limit fixed?
16 if [ -d /media/cryptofs/apps ] ; then
17 APPS=/media/cryptofs/apps
18 else
19 APPS=/var
20 # Install the ipkg wrapper
21 mkdir -p /usr/local/bin
22 cp /var/usr/palm/applications/org.webosinternals.ipkgservice/files/ipkg /usr/local/bin/ipkg
23 fi
Seems like the ipkg wrapper is not installed for 1.3.5?
Is it irrelevant for 1.3.5?
Also, does that mean that we will have to reinstall package manager service after the update to 1.3.5, since we need to uninstall the existing ipkg wrapper?
Thanks!
Developer:
rwhitby
at: 09:29 PM 12/08/2009
Originally Posted by sagipe:
Also, does that mean that we will have to reinstall package manager service
Any instructions on whether to reinstall ipkgservice for a particular webOS version will come after the public release of that webOS version.
In the mean-time, you should continue to keep ipkgservice up to date as usual.
-- Rod
trying to install preware and packmanger, everytime i get "arcive truncated" error
please help
on 1.3.1 using 2.96 WebOS QI
does web06 work on 1.3.5
A little help needed here people.
I installed PreGame’s newly rewritten LED manager service and then I tried to install the new My Flashlight app. When trying to install the app I got an error saying the app was “probably installed”. I then restarted went back into Preware only to be told that the package manager service isn’t running.
I have tried using the latest version of quick install to remove Preware and the package manager service, restarting, using QI to reinstall them and finally restarting yet again. I still get the same error and Preware obviously doesn’t work correctly.
I’m running 1.3.1 on an O2 UK GSM Pre. Any help will be greatly appreciated! A visit to the doctor is out of the question really as I’ll lose several apps that I downloaded before the non-US app store became crippled.
EDIT: I did uninstall the LED service through QI before doing the above.
Member:
Matze
at: 08:06 AM 01/02/2010
Originally Posted by Gav_Oracle:
I installed PreGame’s newly rewritten LED manager service and then I tried to install the new My Flashlight app. When trying to install the app I got an error saying the app was “probably installed”. I then restarted went back into Preware only to be told that the package manager service isn’t running.
I confirm the same bahaviour on German GSM- WebOS1.3.1. I installed the App and after that preware is bricked

! I do not want to reinstall everything again! Is there a way to undo the update or a log, where I can find more info for this error?
Until a fix is available, I can only recommend:
DO NOT INSTALL OR UPDATE LED manager on GSM WebOS 1.3.1!
Best regards
Matthias
Urrgh. Too late. My Preware is borked after Pregames Flashlight update - said package Manager not running. I deleted and reinstalled via WOSQI now it says only 2 apps installed - the LED flashlight app and service. The service cannot be removed as it gives an error.
Sigh...
On GSM 1.3.3
Member:
Georgo10
at: 08:35 AM 01/02/2010
Originally Posted by :
root@palm-webos-device:/var# /sbin/start org.webosinternals.ipkgservice
(00158/526131591) org.webosinternals.ipkgservice (start) waiting
(00158/527749023) org.webosinternals.ipkgservice (start) starting
(00158/529030761) org.webosinternals.ipkgservice (start) pre-start
(00158/530770263) org.webosinternals.ipkgservice (start) spawned, process 1607
(00158/532052001) org.webosinternals.ipkgservice (start) post-start, (main) process 1607
(00158/533272705) org.webosinternals.ipkgservice (start) running, process 1607
(00158/580880126) org.webosinternals.ipkgservice (stop) running
(00158/581215820) org.webosinternals.ipkgservice (stop) stopping
(00158/581490478) org.webosinternals.ipkgservice (stop) killed
(00158/581734619) org.webosinternals.ipkgservice (stop) post-stop
(00158/582009277) org.webosinternals.ipkgservice (stop) waiting
start: (00158/582161865) org.webosinternals.ipkgservice main process terminated with status 1
Same problem here

Damn.
Edit:
And here is reason:
Originally Posted by :
root@palm-webos-device:/etc/event.d# sed -i -e "s^/\(all\|[0-9.]*\)\$^/$VERSION^g" $APPS/etc/ipkg/webos-patches.conf
sed: cannot create temp file /media/cryptofs/apps/etc/ipkg/webos-patches.conf6odXWs: Read-only file system
So, it's look like, LED service have hardcoded path /media/cryptofs/apps/ and Package Service thinks, it have data there. But in 1.3.1 is no /media/cryptofs, so it failed on loading.
Solution is remove LED service, Package Service,remove directoru /media/cryptofs (thru novaterm for example) and install Package Service again.
Voi'la
Originally Posted by Georgo10:
Solution is remove LED service, Package Service,remove directoru /media/cryptofs (thru novaterm for example) and install Package Service again.
I'm trying your fix at the moment. How can I remove the cryptofs directory without having to install novacom? Can I do it through the Linux command line option built into quick install?
EDIT:
Don't worry Georgo10 I got the folder removed with the help of zsoc in the webos-internals chat room.
For anyone else with this problem you can use the following command in the "Linux Commandline" option in WebOS quick install:
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
mount -o remount,rw /; rm -r /media/cryptofs; mount -o remount,ro /
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
DO NOT RUN THIS COMMAND IF YOU ARE USING VERSION 1.3.5
Then re install the Package Manager service in the normal way.
Originally Posted by Gav_Oracle:
I'm trying your fix at the moment. How can I remove the cryptofs directory without having to install novacom? Can I do it through the Linux command line option built into quick install?
I shd think so but I just launched the terminal app, then
[CODE]cd /media
rm -r cryptofs[/CODE]
you can also use WebOSQuickInstall->tools->Device Management->> and uninstall flashlight...
so it works for me
LG
black_head1981
1
2 3 4
webOS Nation Forums
> Homebrew
> WebOS Internals
>
Package Manager Service