All of lore.kernel.org
 help / color / mirror / Atom feed
* Smart PM for upgrade the full image
@ 2014-01-08 12:52 Tarek El-Sherbiny
  2014-01-08 13:33 ` Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Tarek El-Sherbiny @ 2014-01-08 12:52 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

Hi All,

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?

Thanks,
-- 
*Tarek*

[-- Attachment #2: Type: text/html, Size: 938 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Smart PM for upgrade the full image
  2014-01-08 12:52 Smart PM for upgrade the full image Tarek El-Sherbiny
@ 2014-01-08 13:33 ` Paul Eggleton
  2014-01-08 14:07   ` Tarek El-Sherbiny
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2014-01-08 13:33 UTC (permalink / raw)
  To: Tarek El-Sherbiny; +Cc: yocto

Hi Tarek,

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".

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Smart PM for upgrade the full image
  2014-01-08 13:33 ` Paul Eggleton
@ 2014-01-08 14:07   ` Tarek El-Sherbiny
  2014-01-08 15:39     ` Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Tarek El-Sherbiny @ 2014-01-08 14:07 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1336 bytes --]

Hi Paul,

Thank you  for your replay.
Smart upgrade only upgrades packages that is currently installed. It
doesn't install new packages nor remove unwanted packages.
Is that not true?

Thanks,
Tarek


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

> Hi Tarek,
>
> 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".
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>



-- 
*Tarek*

[-- Attachment #2: Type: text/html, Size: 2029 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Smart PM for upgrade the full image
  2014-01-08 14:07   ` Tarek El-Sherbiny
@ 2014-01-08 15:39     ` Paul Eggleton
  2014-01-08 18:25       ` Tarek El-Sherbiny
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2014-01-08 15:39 UTC (permalink / raw)
  To: Tarek El-Sherbiny; +Cc: yocto

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@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Smart PM for upgrade the full image
  2014-01-08 15:39     ` Paul Eggleton
@ 2014-01-08 18:25       ` Tarek El-Sherbiny
  0 siblings, 0 replies; 5+ messages in thread
From: Tarek El-Sherbiny @ 2014-01-08 18:25 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2661 bytes --]

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@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@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*

[-- Attachment #2: Type: text/html, Size: 3667 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-08 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 12:52 Smart PM for upgrade the full image Tarek El-Sherbiny
2014-01-08 13:33 ` Paul Eggleton
2014-01-08 14:07   ` Tarek El-Sherbiny
2014-01-08 15:39     ` Paul Eggleton
2014-01-08 18:25       ` Tarek El-Sherbiny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.