[poky] Using RPM with Poky
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Mar 21 10:10:40 PDT 2011
On Monday 21 March 2011 17:00:44 Mark Hatle wrote:
> On 3/21/11 11:35 AM, Gary Thomas wrote:
> > Also, is there documentation on how to use zypper, how to set up
> > repositories, etc?
>
> There is no documentation yet on how to use Zypper. Below is how I've been
> using it to test things:
>
>
> On the host:
>
> 1) Build the environment -- full set of rpm packages you want available
>
> 2) Build "createrepo-native"
>
> 3) Copy tmp/deploy/rpm and contents of somewhere it can be accessed via
> HTTP, such as /var/www/html.
>
> 4) Create the repository database:
>
> <poky directory>/scripts/poky-setup-rpmrepo /var/www/html/rpm
>
> On the target:
>
> (assuming qemu)
>
> 1) zypper addrepo http://192.167.7.1/rpm main
>
> 2) zypper refresh
>
> 3) zypper install <package>
>
>
>
> Some other useful commands:
>
> zypper info <package>
>
> This will give you basic info on a package, and tell you if it's already
> installed (@System repository) or which remote repository it's stored in.
>
> zypper remove <package>
>
> This will remove a package, and clean up any other packages that are
> dependent upon it.
>
Mark, you beat me to it :) I just finished copying this onto the wiki:
https://wiki.yoctoproject.org/wiki/Zypper_Repository_Setup
We could probably do with this in the documentation in reworked form. Scott R,
what do you think?
Cheers,
Paul
More information about the poky
mailing list