Table of Contents

DNF is a software package manager that installs, updates, and removes packages on RPM-based Linux distributions. It automatically computes dependencies and determines the actions required to install packages

Pre-requisites



NOTE:
  1. If you are running out of pre-built image, then there is a limit on the rootfs size(limited by the device RAM) as rootfs is on RAM. Depending on the device RAM, you may not be able to install many packages and you will end up seeing errors for low disk space

  1. When installing packages, always install packagegroups over single packages when available. For example:
    1. To run qt, install packagegroup-petalinux-qt instead of qtbase.
    2. To run GCC, install packagegroup-core-sdk instead of GCC
  2. packagegroup-petalinux-xen and packagegroup-petalinux-openamp will not work and should not be installed.

EXAMPLE

As an example consider how to install Qt and run it.

Qt installation


We need to install packagegroup-petalinux-x11 and packagegroup-petalinux-qt, qt-extended to run qt applications on target.
  1. dnf install packagegroup-petalinux-x11
  2. dnf install packagegroup-petalinux-qt
  3. dnf install packagegroup-petalinux-qt-extended
  4. dnf install packagegroup-petalinux-matchbox

Start matchbox

/etc/init.d/xserver-nodm stop
/etc/init.d/xserver-nodm start

Qt testing



Related Links