Scroll to navigation

DNF5-FORCEARCH(7) dnf5 DNF5-FORCEARCH(7)

NAME

dnf5-forcearch - Forcearch Parameter

DESCRIPTION

The --forcearch=<arch> parameter overrides the system architecture detected by DNF 5. It allows querying repositories for packages not compatible with your host system and installing them. Any architecture can be specified, but using a package with an architecture not supported natively by your CPU will require emulation of some kind, e.g. using qemu-user-static.

--forcearch is supported by the following commands: distro-sync, download, group, info, install, list, makecache, repo, repoquery, search, and swap.

EXAMPLES

Installs the version of my-example-package for the AArch64 architecture, regardless of the architecture of the host system.
Downloads the hello package for the s390x architecture.
Query all packages available for the AArch64 architecture. If your system has a different native architecture, then both --arch and --forcearch are necessary here. --arch will filter for only packages with the aarch64 architecture, and --forcearch sets the "arch" and "basearch" substitution variables to ensure the correct repositories are queried.

AUTHOR

See AUTHORS.md in dnf5 source distribution.

COPYRIGHT

Contributors to the dnf5 project.

September 23, 2024