Author Topic: Ipk Installation Questions  (Read 6934 times)

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Ipk Installation Questions
« on: August 19, 2007, 10:37:46 am »
I am working on a basic guide for preventing and troubleshooting problems with IPK installation, and have a bunch of questions I need help with if it is going to be comprehensive and user-friendly.

First, I use Sharp ROM and need to know the what are the names for the GUI IPK installers for other distros?  

Second, my efforts to learn how to install an IPK directly from a Package Feed were a dismal failure.  I have included Capn_Fish's instructions for pdaXroms, but can someone enlighten me how to do it on Sharp ROMs?

Third, I never am sure whether the package size shown on feeds is the space required for installation or just the size of the ipk.  Also, sometimes we get ipks from places that don't have that information.  What's the easiest way to examine the ipk for how much space is required without actually unpacking it?

Fourth, if someone is using the GUI installer, does it matter whether they tap OK or EXIT when installation is completed?   I usually unpack by hand, using tar and gunzip, and don't have much recent experience with the GUI installer.

Fifth, what are the standard directories in which the binary, image and desktop files for an application are found on various ROMs?  On my 2.38, they are:

For image files:  /home/QtPalmtop/pics/<br>
For desktop files:  /home/QtPalmtop/apps/Applications/ <br>
For the binary: /home/QtPalmtop/bin/ is one good location.

Sixth, I know absolutely nothing about syncing as I have no experience with it.  Can someone point me to a specific page on a user-friendly resource I can send readers to, for learning about it?  My own searches turned up nothing that seemed appropriate.

Finally, ipkg extracts the files to a temporary directory. Am I correct in thinking it is /tmp/ipkg/inst on Sharp ROMs?  Is it the same on other ROMs?

The current version of this guide is at:

http://www.sdjf.esmartdesign.com/ipks/install.html

Please let me know if you find any errors or omissions, have any suggestions for improvement, or find anything that is hard to understand.

Thanks,
sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Ipk Installation Questions
« Reply #1 on: August 19, 2007, 12:32:09 pm »
1. In pdaXrom it's "qpkg" (for the terminal command).

2. I think adding

Code: [Select]
src NAME http://www.myfeed.com/feed
to /etc/ipkg.conf should do it, but I don't know for sure (I think I told you the same thing earlier). You then can do an

Code: [Select]
ipkg update
to see if it worked.

3. Package size is the installed size in the cases I've checked. It is generated by the Packages file generation script. You could use that (I can post a link to it if you need it) to get the sizes.

4. I don't know for sure, but I would think not.

5. On pdaX:

Executables: /usr/bin or /usr/local/bin (sometimes /sbin or/usr/sbin, maybe /usr/local/sbin)

Images: /usr/share/pixmaps or /usr/local/share/pixmaps

.desktop files: /usr/share/applications or /usr/local/share/applications

6. Not I

7. I thinks in pdaX it's /home/temp or some such place. I'm not entirely sure, though.

Hope this helps.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Ipk Installation Questions
« Reply #2 on: August 19, 2007, 06:52:30 pm »
About the /home/temp directory, the next time you are installing a package, is it possible to check it's contents to see what's there (if anything) before the installation is completed?  Or maybe run "lsof | grep /home/temp | xargs ls -l" (pdaXrom users only)

I have to digest the rest and get back to you on it.  I also realized I should look at the oesf wiki pages about syncing.

thanks,
sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ipk Installation Questions
« Reply #3 on: August 19, 2007, 07:37:38 pm »
Quote
About the /home/temp directory, the next time you are installing a package, is it possible to check it's contents to see what's there (if anything) before the installation is completed?  Or maybe run "lsof | grep /home/temp | xargs ls -l" (pdaXrom users only)

I have to digest the rest and get back to you on it.  I also realized I should look at the oesf wiki pages about syncing.

thanks,
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=166442\"][{POST_SNAPBACK}][/a][/div]


it should be /opt/QtPalmtop and not /home/QtPalmtop even though it really is /home/QtPalmtop and /opt/QtPalmtop is a symbolic link to it in most cases, but depending on the version of the ROM and/or model, /home/QtPalmtop may not exist.

also, you might also want to warn people not to use the GUI installer on OpenZaurus and use the command line version instead because the GUI installer crashes.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Ipk Installation Questions
« Reply #4 on: August 20, 2007, 07:37:43 am »
1.  Capn_Fish said the command line installer is qpkg for pdaX ROMs.

Please clarify.  Does that mean that there is no "ipkg" command in pdaX  ROMs, or that "qpkg" calls the GUI?

Also, can someone with pdaX  and other ROMs check what the name of the installer application is when you have the Package Installation GUI open, if it isn't "qpkg"?  A "ps" command should tell you.

2.  I have tried adding http://www.myfeed.com/feed to /etc/ipkg.conf, and it has made no difference in the GUI. I don't want to permanently download an entire list of the packages on the feed, I don't have room.  Is that what "ipkg update" would do?

Also, I would expect to find a menu letting me choose which feed I want the installer to go to.  I see nothing looking like that.

3.  Is the Packages File script basic linux and same for all ROMs?  I would guess so.  Yes, a link will be helpful.  So people can run it just to get the info and not necessarily just use it to make a feed?  Interesting thought.

5.   Thanks, I have added the info about the directories for images, executables, etc. in pdaX ROMs.

6.  Thanks Meanie.  I'll add that.  I did see my /opt/QtPalmtop on Sharp is a symlink to /home/QtPalmtop, but I also have found files in /tmp/ipkg/inst (I think) when ipkg crashed.

You guys have given me some homework to do.  More suggestions are still welcome.

Thanks,
sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Ipk Installation Questions
« Reply #5 on: August 20, 2007, 10:32:54 am »
1. 'qpkg' calls the GUI installer. 'ipkg' is the command line tool/backend.

2. I believe so. I think you have to make it

Code: [Select]
src http://www.myfeed.com/feed
as well.

3. Yes, I believe so.

The pdaX package manager is just called 'Package Manager' AFAIK.

Hope that clears that up.

Quote
1.  Capn_Fish said the command line installer is qpkg for pdaX ROMs.

Please clarify.  Does that mean that there is no "ipkg" command in pdaX  ROMs, or that "qpkg" calls the GUI?

Also, can someone with pdaX  and other ROMs check what the name of the installer application is when you have the Package Installation GUI open, if it isn't "qpkg"?  A "ps" command should tell you.

2.  I have tried adding http://www.myfeed.com/feed to /etc/ipkg.conf, and it has made no difference in the GUI. I don't want to permanently download an entire list of the packages on the feed, I don't have room.  Is that what "ipkg update" would do?

Also, I would expect to find a menu letting me choose which feed I want the installer to go to.  I see nothing looking like that.

3.  Is the Packages File script basic linux and same for all ROMs?  I would guess so.  Yes, a link will be helpful.  So people can run it just to get the info and not necessarily just use it to make a feed?  Interesting thought.

5.   Thanks, I have added the info about the directories for images, executables, etc. in pdaX ROMs.

6.  Thanks Meanie.  I'll add that.  I did see my /opt/QtPalmtop on Sharp is a symlink to /home/QtPalmtop, but I also have found files in /tmp/ipkg/inst (I think) when ipkg crashed.

You guys have given me some homework to do.  More suggestions are still welcome.

Thanks,
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=166473\"][{POST_SNAPBACK}][/a][/div]
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Ipk Installation Questions
« Reply #6 on: August 20, 2007, 11:22:14 am »
Capn_Fish:  Thank you, yes that does help clarify things.

I'm going to try to track down some Sharp ROM folks if none contribute here...I think I'm not a good candidate to write the package feed section as I don't have any desire to use that approach, and don't want to spend a lot more time futzing around trying to figure it out.  (Yes, I included ""src".  I think some steps are missing.)

Spreading myself too thin...

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ipk Installation Questions
« Reply #7 on: August 20, 2007, 07:33:16 pm »
Quote
1.  Capn_Fish said the command line installer is qpkg for pdaX ROMs.

Please clarify.  Does that mean that there is no "ipkg" command in pdaX  ROMs, or that "qpkg" calls the GUI?

Also, can someone with pdaX  and other ROMs check what the name of the installer application is when you have the Package Installation GUI open, if it isn't "qpkg"?  A "ps" command should tell you.

2.  I have tried adding http://www.myfeed.com/feed to /etc/ipkg.conf, and it has made no difference in the GUI. I don't want to permanently download an entire list of the packages on the feed, I don't have room.  Is that what "ipkg update" would do?

Also, I would expect to find a menu letting me choose which feed I want the installer to go to.  I see nothing looking like that.

3.  Is the Packages File script basic linux and same for all ROMs?  I would guess so.  Yes, a link will be helpful.  So people can run it just to get the info and not necessarily just use it to make a feed?  Interesting thought.

5.   Thanks, I have added the info about the directories for images, executables, etc. in pdaX ROMs.

6.  Thanks Meanie.  I'll add that.  I did see my /opt/QtPalmtop on Sharp is a symlink to /home/QtPalmtop, but I also have found files in /tmp/ipkg/inst (I think) when ipkg crashed.

You guys have given me some homework to do.  More suggestions are still welcome.

Thanks,
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=166473\"][{POST_SNAPBACK}][/a][/div]

all Zaurus distros have the command line package management tool called ipkg. on some distros, this is a shell script, whereas on others, like OZ, ... it is a binary file.
Most Zaurus distros also have a GUI version of the package management tool. In pdaXrom, you invoke the GUI package manager by running qpkg from the console if you dont want to invoke it from the menu.
if you use the GUI package manager tool, you can usually change the feeds you want to use from the GUI tool, but if you are using the command line ipkg tool, then you would need to manually edit ipkg.conf
ipkg update will then pull down all the Packages files from all the feeds that are configured. An ipkg upgrade would in theory then upgrade all the installed packages but this is not always a good idea since some feeds have conflicting packages and things might get very broken.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Ipk Installation Questions
« Reply #8 on: August 20, 2007, 11:39:07 pm »
Thanks, Meanie.  My problem with the GUI tool is that the meaning of all the pictures when using "install via network" is far from intuitive.  I figure if I can't figure it out, others must have the same issue, and I have to find someone using the Sharp ROM to enlighten me.  I just haven't gotten around to sending PMs yet.

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ipk Installation Questions
« Reply #9 on: August 20, 2007, 11:50:10 pm »
Quote
Thanks, Meanie.  My problem with the GUI tool is that the meaning of all the pictures when using "install via network" is far from intuitive.  I figure if I can't figure it out, others must have the same issue, and I have to find someone using the Sharp ROM to enlighten me.  I just haven't gotten around to sending PMs yet.

sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=166502\"][{POST_SNAPBACK}][/a][/div]

the old sharp roms were in english and have manuals (also in english)...
« Last Edit: August 20, 2007, 11:53:48 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K