Smart

From Yocto Project
Revision as of 14:43, 23 October 2012 by PaulEggleton (talk | contribs) (Created page with "http://labix.org/smart/ Paul's smart contrib branch: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=paule/smart To test this out querying a root filesystem on t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

http://labix.org/smart/

Paul's smart contrib branch:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=paule/smart

To test this out querying a root filesystem on the host:

  1. Ensure you are using "package_rpm" in PACKAGE_CLASSES
  2. Comment out the line in core-image-minimal that removes the packaging data files
  3. bitbake core-image-minimal
  4. bitbake python-smartpm-native
  5. bitbake -c devshell core-image-minimal
  6. Within the devshell:
cd ../rootfs
export PYTHONPATH="/path/to/native/sysroot/usr/lib/python2.7/site-packages"
export RPM_ETCRPM=$PWD/etc/rpm
smart --data-dir=$PWD/var/lib/smart config --set detect-sys-channels=False
smart --data-dir=$PWD/var/lib/smart --remove deb-sys
smart --data-dir=$PWD/var/lib/smart channel --add rpmsys type=rpm-sys name="rpmsys"
smart --data-dir=$PWD/var/lib/smart config --set rpm-dbpath=$PWD/var/lib/rpm

You should now be able to query the packages installed into the rootfs e.g.

smart --data-dir=$PWD/var/lib/smart query