opkg upgrades


kaprikawn

Very Active Member
Joined
Sep 28, 2008
Messages
392
Location
UK
Website
kaprikawn.wordpress.com
I have my Pandora booting from the SD card and I've installed Firefox using an


sudo opkg install firefox


When I try to launch it though I get an error message saying that my version of sqlite is out of date. The error message reads:


SQLite Version Error - The application has been updated, but your version of SQLite is too old and the application cannot run.


Couple of questions:


1) How do you upgrade individual packages using opkg? (I've previously tried upgrading the lot and it borked my Pandora, the keyboard didn't work, so that's not an option).


2) What package(s) do I need for Firefox exactly? Is it sqlite3? Because according to the following webpage, none of the dependancies involve anything sqlite related:


http://www.angstrom-distribution.org/repo/?pkgname=firefox


And before anyone says anything, yes, I know Firefox is available as a PND, I would still appreciate answers to my questions that aren't 'Use the PND instead'.


Thanks in advance.
 
Last edited by a moderator:

Linux-SWAT

Hardcore Member
Joined
Feb 13, 2010
Messages
8,534
Opkg problem :


I did :


opkg update


opkg upgrade


It downloaded and installed a big bunch of data and / is now full ^^


I can't even open a terminal : input/output error :rolleyes:


seems "opkg upgrade" was more an ~"install all"


ZaxxonHF5RC1 was used.
 

alerino

Well-Known Member
Joined
Aug 11, 2007
Messages
3,200
well, my 8 month old pandora have been reflashed only once, because of that upgrade command, damn it! :)
 

Linux-SWAT

Hardcore Member
Joined
Feb 13, 2010
Messages
8,534
So what is wrong in the setting of this command ?


It clearly wasn't an update, it even installed fftw :lol:


By the way, i just acceded a terminal. I launched rxvt.


/ use 94%


Not sure i/o errors linked to that...
 
Last edited by a moderator:

alerino

Well-Known Member
Joined
Aug 11, 2007
Messages
3,200
it upgrades your system, based on Angstrom Distribution


since you're running out of space, you'll have to reflash
 

Linux-SWAT

Hardcore Member
Joined
Feb 13, 2010
Messages
8,534
But, normally, an apt-get (or whatever the tool) upgrade upgrades the packages currently installed on your system, so why opkg installed soooo much stuff ?
 

alerino

Well-Known Member
Joined
Aug 11, 2007
Messages
3,200
pandora runs a custom skinnier angstrom build, to suit its rather small NAND (512 mb)
 

Linux-SWAT

Hardcore Member
Joined
Feb 13, 2010
Messages
8,534
I understood that, but why the heck a simple update bloats the system.


I just want software a, b and c updated, not x, y, z installed.


Btw, thanks for your answers.
 

EvilDragon

Administrator
Staff member
Joined
Mar 4, 2003
Messages
29,546
Age
43
Location
Ingolstadt
I understood that, but why the heck a simple update bloats the system.


I just want software a, b and c updated, not x, y, z installed.
Because a package manager caches the package list onto the NAND, and that needs a lot of space :/
 

Linux-SWAT

Hardcore Member
Joined
Feb 13, 2010
Messages
8,534
It's _only_ the packages list ? (I meant not the unzipped and installed ones)


It downloaded and installed packages during a long period. More than 1 hour i think.


Oh, and my bad about fftw, it's installed by default (just reflashed ^^).


# opkg list-installed | grep fftw


libfftw3f3 - 3.2.2-r1.5


Note that i'm just playing around, i had no believing it will update the official OP / ^^


I just took an interested look at here :
 
Last edited by a moderator:

WizardStan

Mega GP Mania
Joined
May 24, 2008
Messages
16,733
The Pandora is running a mix of beta and official packages, and probably a few custom built packages. The repo points to the beta packages. When you do an upgrade, it replaces the official and custom packages that have been manually installed with beta packages that may be a higher version but do not necessarily (and frequently don't) work. Do Not Do An opkg upgrade! It will not work. Yet. I know ED wants to utilize the opkg system at some point, having their own repo with Pandora specific packages, but I don't think that has happened yet. At least, I can't find any information about it in the HF5 pages (though I admit I only glanced briefly through them).
 
Joined
Aug 20, 2010
Messages
179
Ok, but why the overbloat ? Isn't it an almost 1:1 size replacement ?
If I understand your question correctly, you're asking why running "opkg upgrade" might take significantly more space than just swapping out the packages in the first place (for example, why does it take more than 15KB to exchange PackageX-1.0 with PackageX-1.1, even though PackageX-1.1 is only 15KB bigger than the 1.0 version)?


The trick is in how the package manager works. Typically, package managers cache every version (or the current version) of every package file you've downloaded. Thus, the space required for the new version of a package is, in the worst case scenario:



Code:
(Previous version Package Files) + (Current version Package File) + (Actual installed program)

These package managers usually come with a cache-cleaning command. For Debian's Apt and Dpkg system, it's "apt-get clean". I'd suggest you try whatever opkg's version of that is, try running the "man opkg" command at a command line.
 

Linux-SWAT

Hardcore Member
Joined
Feb 13, 2010
Messages
8,534
Yes you understood it perfectly :D ' .


So it would be better to use this with a SD card :


--cache <directory> Use a package cache


Worth the command :


opkg update


opkg list-upgradable


The list is long ^^.


Thanks all.
 

ardje

Still Fresh
Joined
Oct 11, 2010
Messages
38
Because a package manager caches the package list onto the NAND, and that needs a lot of space :/
Actually: openwrt has about the same problems, but then with 1.5MB left for installing.


They cache the packagelist in tmpfs, which means you have to opkg update after every reboot, but only if you want to install something.


Of course, then there is metadata of installed packages, but as far as I've seen, the metadata consists of a file list per package.
 

ardje

Still Fresh
Joined
Oct 11, 2010
Messages
38
But, normally, an apt-get (or whatever the tool) upgrade upgrades the packages currently installed on your system, so why opkg installed soooo much stuff ?
Oh, yes... apt-get can blow up your system too :).


There are some dependencies in the pandora specific parts, which somehow depend on normal packages, which somehow suck in all available themes for the new xfce.


The pandora opkg is not E_NOSPACE proof (I guess this is true for every opkg).


These kind of things (except the E_NOSPACE part, which is pretty solid in apt-get) will happen with apt-get too, but you usually de-install the specific cullprits, because you have space ;-).
 
Top