How to upgrade using ipkg?

Sep 07, 2010 2 Replies

I'm laying out an embedded Linux system, and plan on using ipkg for package management. One thing I can't figure out is how to update a packate. Let's say I have package foobar-0.1 installed. Now I have foobar-0.2_arm.ipk in hand and want to upgrade to that.



Do you just "remove" the old package and "install" the new one?



Won't that end up remove modified config files?



I've seen the ipkg "update" command, but it doesn't seem applicable. First, it will try to update all packages, and I just want to do one. It doesn't appear to accept the path of the new .ipk file.



Grant Edwards grant.b.edwards Yow! I am a jelly donut. at I am a jelly donut. gmail.com

No, you just install. ipkg should (I'm using opkg nowerdays) detect that it's a newer version and upgrade it. If it doesn't detect this you may try various -force-XX options.

Even if you remove and install, the config files should be kept. This is at least the usual behaviour of package managers, haven't checked ipkg/opkg.

ipkg update retrieves the list of available packages from the feed. This is something different.

Vitus

Vitus Jensen, Hannover, Germany, Earth, Universe (current)

Doh! That was entirely too simple.

A plain "install" works just fine -- ipkg does indeed detect that it's upgrading.

The packages I've been playing with so far don't have any config files, so I'll have to check on that.

I think I misspelled "upgrade". :)

Thanks.

Grant Edwards grant.b.edwards Yow! Xerox your lunch at and file it under "sex gmail.com offenders"!

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required