On 20 November 2010 09:48, AJ ONeal <coola...@gmail.com> wrote:
> My assumption is that the only time the results of `opkg list`
> will change is after `opkg update`.
>
> Is that correct?
>
>
> If so, why not have `opkg update` generate the output
> which `opkg list` produces such that `opkg list` is instantaneous?
>
> AJ ONeal
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>

On my 300Mhz mipsel:

r...@quokka:~# ls -l /var/lib/opkg/
-rw-r--r--    1 root     root      3558222 Nov 21 22:53 base
-rw-r--r--    1 root     root       145482 Nov 21 22:53 no-arch
-rw-r--r--    1 root     root        66288 Nov 21 22:53 quokka
r...@quokka:~# time opkg list > /dev/null
real    0m 2.78s
user    0m 2.50s
sys     0m 0.26s

Ok, so its not the quickest. Opkg has to read in the package info and
parse it each time.

What is your use case for needing to call 'opkg list' so frequently
that this becomes painful?

-Graham

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to