1DNF5-FORCEARCH(7) dnf5 DNF5-FORCEARCH(7)
2
3
4
6 dnf5-forcearch - Forcearch Parameter
7
9 The --forcearch=<arch> parameter overrides the system architecture de‐
10 tected by DNF 5. It allows querying repositories for packages not com‐
11 patible with your host system and installing them. Any architecture can
12 be specified, but using a package with an architecture not supported
13 natively by your CPU will require emulation of some kind, e.g. using
14 qemu-user-static.
15
16 --forcearch is supported by the following commands: distro-sync, down‐
17 load, group, info, install, list, makecache, repo, repoquery, search,
18 and swap.
19
21 dnf5 install --forcearch=aarch64 my-example-package
22 Installs the version of my-example-package for the AArch64 ar‐
23 chitecture, regardless of the architecture of the host system.
24
25 dnf5 download --forcearch=s390x hello
26 Downloads the hello package for the s390x architecture.
27
28 dnf5 repoquery --forcearch=aarch64 --arch=aarch64
29 Query all packages available for the AArch64 architecture. If
30 your system has a different native architecture, then both
31 --arch and --forcearch are necessary here. --arch will filter
32 for only packages with the aarch64 architecture, and --forcearch
33 sets the "arch" and "basearch" substitution variables to ensure
34 the correct repositories are queried.
35
37 See AUTHORS.md in dnf5 source distribution.
38
40 Contributors to the dnf5 project.
41
42
43
44
45 Nov 24, 2023 DNF5-FORCEARCH(7)