Software Package Management in PetaLinux rootfs - 2023.2 English

Vitis Unified Software Platform Documentation: Application Acceleration Development (UG1393)

Document ID
Release Date
2023.2 English

All PetaLinux rootfs software packages are hosted on You can install these software packages to rootfs when running Linux on the target board as long as the board has Internet access.

To use this feature, you must enable package manager DNF in rootfs. The rootfs in AMD-provided pre-built Linux components provides the DNF package management features by default.

To set up a package feed URL:

  1. Visit the package feed repo directory
  2. Download the repo file that matches your SoC device to target board.
    # Example: ZCU102 uses ZU9EG devices
    # Example: ZCU104 uses ZU7EV devices
  3. Copy the downloaded repo file to /etc/yum.repos.d/.
  4. Clean the cache.
    dnf clean all

To manage packages, use the DNF package manager:

Listing available packages
Use the command dnf repoquery.
Installing packages from an AMD repository
Use the command dnf install <pkg name>.
Installing packages from a local package file
Use the command dnf install <pkg file name>.
Installing packages to sysroot

When packages are installed on the rootfs of a running board, target has the latest binaries and libraries. When cross compiling on host is needed, these libraries must be added to host side sysroot.

A sysroot_overlay script is provided in XRT to extract RPM and update sysroot. This script will extract RPM libraries and include a file update in sysroot.

Besides XRT, this script supports all RPMs for various software packages.

Getting the
Use the command wget
The sysroot command description is:
./ --sysroot --rpms-file


  • --sysroot is the sysroot to be overlaid.
  • --rpms-file is the RPMs file that contains the RPM file paths to be overlaid.


The following example is a command to install updated XRT to the common sysroot:

./ -s sysroots/aarch64-xilinx-linux/ -r $PWD/rpm.txt

This example shows the contents of an rpm.txt file:

Note: This script works only for the local RPMs. You must download RPMs to your host machine to install them to the common sysroot.