Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Giuseppe Condorelli <giuseppe.condorelli@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: How to query installed rpm packages
Date: Wed, 30 May 2012 11:34:43 +0100	[thread overview]
Message-ID: <1793641.qLjaTPpfTI@helios> (raw)
In-Reply-To: <CAOHjBZsuZjS=mbkEm56=BkcoROj8-X7LUdHDrO-m6p3PWvoyPw@mail.gmail.com>

On Wednesday 30 May 2012 12:29:02 Giuseppe Condorelli wrote:
> > If you aren't including packaging data in the resulting image (i.e.
> > IMAGE_FEATURES does not contain "package-management"),
> 
> Adding the package-management I saw target rpm is set to be built.
> So I can think I'll have the rpm inside the target fs I'll install via oe
> system.
> How can it help me if I query installed packages from host?

Adding package-management to IMAGE_FEATURES does two things:

1) Adds rpm to the image to be run on the target
2) Avoids deleting the rpm database files so that rpm actually works

It's #2 that I was referring to earlier - if the rpm database has been 
deleted, rpm on the host will not be able to query the contents of the image. 
Even if they are going to be deleted we can just put our operations before 
that happens - we just need to inject them in the right place. Putting a call 
into ROOTFS_POSTPROCESS_COMMAND achieves this.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



      reply	other threads:[~2012-05-30 10:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 13:14 How to query installed rpm packages Giuseppe Condorelli
2012-05-28 13:26 ` Paul Eggleton
2012-05-28 15:30   ` Giuseppe Condorelli
2012-05-28 16:23     ` Paul Eggleton
2012-05-29 13:20       ` Giuseppe Condorelli
2012-05-29 13:32         ` Paul Eggleton
2012-05-29 13:49           ` Giuseppe Condorelli
2012-05-30 10:29             ` Giuseppe Condorelli
2012-05-30 10:34               ` Paul Eggleton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1793641.qLjaTPpfTI@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=giuseppe.condorelli@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox