[yocto] Smart PM for upgrade the full image

Tarek El-Sherbiny tarek.elsherbiny at gmail.com
Wed Jan 8 10:25:50 PST 2014


Hi Paul,
Thanks for your reply.

As a work around I think I can dump a list of the installed packages from a
target that is running the latest SW.
$smart query --installed --hide-version > file.txt

Then on customer targets I could run the  install command:
$smart install `echo $(cat file.txt)` -y

At least this is going to update currently installed packages as well as
 install new ones.

I still need to write a script to remove unwanted ones.

Thanks,
Tarek



On Wed, Jan 8, 2014 at 3:39 PM, Paul Eggleton <paul.eggleton at linux.intel.com
> wrote:

> On Wednesday 08 January 2014 14:07:57 Tarek El-Sherbiny wrote:
> > On Wed, Jan 8, 2014 at 1:33 PM, Paul Eggleton <
> paul.eggleton at linux.intel.com
> > > wrote:
> > > On Wednesday 08 January 2014 12:52:42 Tarek El-Sherbiny wrote:
> > > > I have several targets deployed in multiple sites. Each target might
>  be
> > > > running  a different version of the product rootfs image. When I
> release
> > > > a new rootfs image I would like to use the smart command on each
> target
> > > > at the customer site to upgrade the software to the latest image.
> Going
> > > > through each package and install it separately is inefficient way of
> > > > handling the upgrade and I don't expect the customer to have the
> > > > knowledge for doing so.
> > > >
> > > > What we really need is a smart command to compare the latest rootfs
> > > > image and install, remove or un-change packages based on what is
> > > > currently installed.
> > > >
> > > > Can the smart command achieve that or do I need to write my own
> script?
> > >
> > > Isn't this the same question you asked the other day? i.e., this is
> "smart
> > > upgrade".
> >
> > Smart upgrade only upgrades packages that is currently installed. It
> > doesn't install new packages nor remove unwanted packages.
> > Is that not true?
>
> That is true, yes. As far as I know, smart has no capabilities in this area
> beyond what is offered through conflicts - and for situations where one
> package
> replaces another, with any of the package management backends we support
> you
> should use RPROVIDES + RREPLACES + RCONFLICTS to ensure that the old name
> is
> redirected to the new name, new package is installed automatically, and the
> old package is removed (respectively).
>
> If it's a straight old image -> new image upgrade, you'll probably have to
> look at other tools; package managers don't really handle this situation
> well
> - at least not out of the box.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>



-- 
*Tarek*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140108/ceaecfec/attachment.html>


More information about the yocto mailing list