* Upgrade to a package with all its dependency without network
@ 2014-05-05 14:16 Marco
2014-05-05 15:29 ` Paul Barker
0 siblings, 1 reply; 4+ messages in thread
From: Marco @ 2014-05-05 14:16 UTC (permalink / raw)
To: openembedded-core
Hello,
I need to be able to upgrade to a package with all its dependency chain
on a target system that does not have access to the network.
I'm trying to understand what may be the best and also the simplest
solution.
Perhaps there is already this functionality in OE/Yocto?
I thought to implement a new opkg feture so that I can to generate the
list of dependencies of a package and then extract the packages from
OE/Yocto using a script or an application.
Another possibility would be to extend the operation of bitbake so I
pull out the package and dependencies putting them in a dedicated
directory to be moved on the target for the update.
For now I'm just analyzing what may be the possibilities and I'd love to
have any comments or advice from someone more experienced than me on
this topic.
Thanks
--
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
http://www.KoanSoftware.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Upgrade to a package with all its dependency without network
2014-05-05 14:16 Upgrade to a package with all its dependency without network Marco
@ 2014-05-05 15:29 ` Paul Barker
2014-05-07 7:54 ` Marco
0 siblings, 1 reply; 4+ messages in thread
From: Paul Barker @ 2014-05-05 15:29 UTC (permalink / raw)
To: Marco; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2425 bytes --]
On Mon, May 05, 2014 at 04:16:46PM +0200, Marco wrote:
> Hello,
> I need to be able to upgrade to a package with all its dependency chain on a
> target system that does not have access to the network.
>
> I'm trying to understand what may be the best and also the simplest
> solution.
> Perhaps there is already this functionality in OE/Yocto?
>
> I thought to implement a new opkg feture so that I can to generate the list
> of dependencies of a package and then extract the packages from OE/Yocto
> using a script or an application.
opkg v0.2.x (the latest release series) doesn't really support this behaviour
very well. The caching logic just doesn't work. For example, I have a board
connected at the minute with a feed configured so I tried this:
opkg install --download-only ncurses-terminfo
ifdown eth0
opkg install ncurses-terminfo
You'd hope that would pick up the package files from the cache but it doesn't.
So even if you put the files there yourself, you may no have a simple way to
install them.
An interim solution I can see is to put all the packages you want in one
directory then run 'opkg-make-index' from opkg-utils on that directory so that
it is a complete package feed. Then add that as a source in
/etc/opkg/base-feeds.conf.
The development branch of opkg which will become v0.3.x has much better cache
logic, it just needs finishing off and tidying up. I'm very busy at the minute
but it's getting there. Any help to close the remaining issues so it can be
released would be appreciated!
>
> Another possibility would be to extend the operation of bitbake so I pull
> out the package and dependencies putting them in a dedicated directory to be
> moved on the target for the update.
>
> For now I'm just analyzing what may be the possibilities and I'd love to
> have any comments or advice from someone more experienced than me on this
> topic.
>
> Thanks
> --
> Marco Cavallini | KOAN sas | Bergamo - Italia
> embedded and real-time software engineering
> Phone:+39-035-255.235 - Fax:+39-178-22.39.748
> http://www.KoanSoftware.com
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
[-- Attachment #2: Type: application/pgp-signature, Size: 501 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Upgrade to a package with all its dependency without network
2014-05-05 15:29 ` Paul Barker
@ 2014-05-07 7:54 ` Marco
2014-05-07 11:31 ` Paul Barker
0 siblings, 1 reply; 4+ messages in thread
From: Marco @ 2014-05-07 7:54 UTC (permalink / raw)
To: Paul Barker; +Cc: openembedded-core
Il 05/05/2014 17:29, Paul Barker ha scritto:
> On Mon, May 05, 2014 at 04:16:46PM +0200, Marco wrote:
>> Hello,
>> I need to be able to upgrade to a package with all its dependency chain on a
>> target system that does not have access to the network.
>>
>> I'm trying to understand what may be the best and also the simplest
>> solution.
>> Perhaps there is already this functionality in OE/Yocto?
>>
>> I thought to implement a new opkg feture so that I can to generate the list
>> of dependencies of a package and then extract the packages from OE/Yocto
>> using a script or an application.
>
> opkg v0.2.x (the latest release series) doesn't really support this behaviour
> very well. The caching logic just doesn't work. For example, I have a board
> connected at the minute with a feed configured so I tried this:
>
> opkg install --download-only ncurses-terminfo
> ifdown eth0
> opkg install ncurses-terminfo
>
> You'd hope that would pick up the package files from the cache but it doesn't.
> So even if you put the files there yourself, you may no have a simple way to
> install them.
>
> An interim solution I can see is to put all the packages you want in one
> directory then run 'opkg-make-index' from opkg-utils on that directory so that
> it is a complete package feed. Then add that as a source in
> /etc/opkg/base-feeds.conf.
>
Hi Paul,
thank you for answering.
This is exactly the main problem, how to extract all the packages I (or
I should say the package itself) want, in one directory.
Would be possible to extend opkg with this feature?
Cheers
--
Marco Cavallini | KOAN sas | Bergamo - Italia
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Upgrade to a package with all its dependency without network
2014-05-07 7:54 ` Marco
@ 2014-05-07 11:31 ` Paul Barker
0 siblings, 0 replies; 4+ messages in thread
From: Paul Barker @ 2014-05-07 11:31 UTC (permalink / raw)
To: Marco; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2484 bytes --]
On Wed, May 07, 2014 at 09:54:41AM +0200, Marco wrote:
> Il 05/05/2014 17:29, Paul Barker ha scritto:
> >On Mon, May 05, 2014 at 04:16:46PM +0200, Marco wrote:
> >>Hello,
> >>I need to be able to upgrade to a package with all its dependency chain on a
> >>target system that does not have access to the network.
> >>
> >>I'm trying to understand what may be the best and also the simplest
> >>solution.
> >>Perhaps there is already this functionality in OE/Yocto?
> >>
> >>I thought to implement a new opkg feture so that I can to generate the list
> >>of dependencies of a package and then extract the packages from OE/Yocto
> >>using a script or an application.
> >
> >opkg v0.2.x (the latest release series) doesn't really support this behaviour
> >very well. The caching logic just doesn't work. For example, I have a board
> >connected at the minute with a feed configured so I tried this:
> >
> > opkg install --download-only ncurses-terminfo
> > ifdown eth0
> > opkg install ncurses-terminfo
> >
> >You'd hope that would pick up the package files from the cache but it doesn't.
> >So even if you put the files there yourself, you may no have a simple way to
> >install them.
> >
> >An interim solution I can see is to put all the packages you want in one
> >directory then run 'opkg-make-index' from opkg-utils on that directory so that
> >it is a complete package feed. Then add that as a source in
> >/etc/opkg/base-feeds.conf.
> >
>
> Hi Paul,
> thank you for answering.
>
> This is exactly the main problem, how to extract all the packages I (or I
> should say the package itself) want, in one directory.
> Would be possible to extend opkg with this feature?
>
Yes, a few people have asked for some method of supporting this use-case so we
definitely want to make it work. Now may not be the best time to work on it as
the package download code in opkg master is currently in flux and the current
work needs finishing. I'm hoping to finish tidying this up soon and then there
will be a stable base on which to add this feature.
I'd suggest filing an enhancement request at
https://code.google.com/p/opkg/issues/.
If you'd like to discuss the details of how this could be implemented within
opkg or contribute patches yourself then that's best discussed on the opkg
mailing list at opkg-devel@googlegroups.com.
Cheers,
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
[-- Attachment #2: Type: application/pgp-signature, Size: 501 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-07 11:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-05 14:16 Upgrade to a package with all its dependency without network Marco
2014-05-05 15:29 ` Paul Barker
2014-05-07 7:54 ` Marco
2014-05-07 11:31 ` Paul Barker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox