Author Topic: Workaround for absent Local packages in 3.5.1  (Read 3349 times)

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Workaround for absent Local packages in 3.5.1
« on: October 16, 2004, 08:37:46 am »
Hi all,

as I am used to carrying complete feeds on my CF card, I was quite dismayed that opie-packagemanager in 3.5.1 is missing the Local packages feature. After some trial-and-error, I've come up with a pretty easy way to provide that functionality by setting up a local package feed. It is assumed you have a copy of the current feed, including the Packages file, in /mnt/cf/feed/current.

Code: [Select]
export FEED=/mnt/cf/feed/current
ipkg install --force-overwrite `ls $FEED/mime-support_*.ipk`
ipkg install `ls $FEED/boa_*.ipk`
vi /etc/boa/boa.conf # change DocumentRoot to /mnt/cf/feed/
vi /etc/ipkg.conf # add a line 'src local http://localhost/current'
/etc/init.d/boa start
This will add a new feed into Package Manager, called "local" which you can use just like any other feed. Some notes:
  • I use the boa ultra-lightweight webserver rather than the FTP server that is running at port 4242 by default. First, I kept getting errors from wget when accessing FTP (even upgrading busybox to r10 didn't help) and second, sync authorization dialogs kept popping up.
  • Running a web server does present an additional security risk so you might want to keep it off when not needed (/etc/init.d/boa stop).
  • If you want to use a non-standard feed you will have to generate your own Packages file   which was not necessary with Local packages. There is a tool for it called ipkg-make-index.sh
Overall, I think the fact that opie-packagemanager resolves dependencies vastly outweighs the Local packages limitation and I'm quite happy with the local feed (I also have the impression that the list of packages is generated faster than it used to be with Local packages).

Hope this helps.

z.
« Last Edit: October 16, 2004, 08:39:31 am by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

cycojesus

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • http://cycojesus.free.fr
Workaround for absent Local packages in 3.5.1
« Reply #1 on: October 16, 2004, 09:40:37 am »
I too carry the whole feed & upgrades on a CF, but I didn't took such a long way to get it working :
1/ add the following lines (adapt it to your config) to /etc/ipkg.conf :
src CF_feed file:///mnt/cf/oz/feed
src CF_upgrades file:///mnt/cf/oz/upgrades
2/ run ipkg update ; from here you're able to install from the feeds using commandline, with dependencies and all
3/ remove opie-packagemanager
4/ install opie-aqpkg

That's it.

Anyway thanks for the boa stuff, now that I know a little more about it I might try it for fun.

EDIT : I don't use it but I saw that opie-aqpkg listed an ipk I had temporarly in my SD, outside of any feed.

EDIT : ipkg.conf syntax was wrong : it's file:///mnt/... instead of just /mnt/...
« Last Edit: October 16, 2004, 01:25:24 pm by cycojesus »
SL-6000L : kexecboot and ArmedZed (on SD) & OpenZaurus/Opie (on flash)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Workaround for absent Local packages in 3.5.1
« Reply #2 on: October 16, 2004, 10:35:41 am »
@cycojesus:

I didn't realise that a plain:

src CF_feed /mnt/cf/oz/feed

would work.

I've always used:

src CF_feed file:///mnt/cf/oz/feed


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

cycojesus

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • http://cycojesus.free.fr
Workaround for absent Local packages in 3.5.1
« Reply #3 on: October 16, 2004, 01:24:16 pm »
Quote
@cycojesus:

I didn't realise that a plain:

src CF_feed /mnt/cf/oz/feed

would work.

I've always used:

src CF_feed file:///mnt/cf/oz/feed


Si
Oops  

My bad, you're right ! It's file:///mnt/...
SL-6000L : kexecboot and ArmedZed (on SD) & OpenZaurus/Opie (on flash)

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Workaround for absent Local packages in 3.5.1
« Reply #4 on: October 18, 2004, 05:11:51 am »
Silly me, I really could have thought of a file:/// URL  

Aqpkg is the package manager which does have the Local packages feature, so no local feed is necessary. In 3.5.1, OZ developers have replaced opie-aqpkg with opie-packagemanager which does not provide Local packages.

BTW I think it would be really nice to have separate Opie and GPE feeds. The feed used to be about 50MB and now it's over 150MB which is a lot of space on a CF card (especially when you consider it could be OGG files instead  ). I know that most of it is Opie stuff anyway but it would be nice to have it separately. Also, the sheer number of GPE packages is huge (mainly due to the broad localization) and it makes package managers harder to use.

z.
« Last Edit: October 18, 2004, 05:12:20 am by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

cycojesus

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • http://cycojesus.free.fr
Workaround for absent Local packages in 3.5.1
« Reply #5 on: October 18, 2004, 05:30:38 am »
Quote
Silly me, I really could have thought of a file:/// URL  

Aqpkg is the package manager which does have the Local packages feature, so no local feed is necessary. In 3.5.1, OZ developers have replaced opie-aqpkg with opie-packagemanager which does not provide Local packages.

BTW I think it would be really nice to have separate Opie and GPE feeds. The feed used to be about 50MB and now it's over 150MB which is a lot of space on a CF card (especially when you consider it could be OGG files instead  ). I know that most of it is Opie stuff anyway but it would be nice to have it separately. Also, the sheer number of GPE packages is huge (mainly due to the broad localization) and it makes package managers harder to use.

z.
I strongly agree for separates feed for GPE and Opie (and another separate feed for common stuff)
SL-6000L : kexecboot and ArmedZed (on SD) & OpenZaurus/Opie (on flash)