Debian Codegraph @

upstream/debian-unstable/man7/dnf5-forcearch.7

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "DNF5-FORCEARCH" "7" "May 09, 2026" "" "dnf5"
32 .SH NAME
33 dnf5-forcearch \- Forcearch Parameter
34 .SH DESCRIPTION
35 .sp
36 The \fB\-\-forcearch=<arch>\fP 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.
37 .sp
38 \fB\-\-forcearch\fP is supported by the following commands: \fBdistro\-sync\fP, \fBdownload\fP, \fBgroup\fP, \fBinfo\fP, \fBinstall\fP, \fBlist\fP, \fBmakecache\fP, \fBrepo\fP, \fBrepoquery\fP, \fBsearch\fP, and \fBswap\fP\&.
39 .SH EXAMPLES
40 .INDENT 0.0
41 .TP
42 .B \fBdnf5 install \-\-forcearch=aarch64 my\-example\-package\fP
43 Installs the version of \fBmy\-example\-package\fP for the AArch64 architecture, regardless of the architecture of the host system.
44 .TP
45 .B \fBdnf5 download \-\-forcearch=s390x hello\fP
46 Downloads the \fBhello\fP package for the s390x architecture.
47 .TP
48 .B \fBdnf5 repoquery \-\-forcearch=aarch64 \-\-arch=aarch64\fP
49 Query all packages available for the AArch64 architecture. If your system has a different native architecture, then both \fB\-\-arch\fP and \fB\-\-forcearch\fP are necessary here. \fB\-\-arch\fP will filter for only packages with the \fBaarch64\fP architecture, and \fB\-\-forcearch\fP sets the \(dqarch\(dq and \(dqbasearch\(dq substitution variables to ensure the correct repositories are queried.
50 .UNINDENT
51 .SH SEE ALSO
52 .INDENT 0.0
53 .INDENT 3.5
54 .nf
55 Tutorial to override the system architecture for C++ API users \%<#\:tutorial-session-force-arch-label>
56 Tutorial to override the system architecture for Python API users \%<#\:tutorial-bindings-python3-session-force-arch-label>
57 .fi
58 .sp
59 .UNINDENT
60 .UNINDENT
61 .SH Author
62 See AUTHORS.md in dnf5 source distribution.
63 .SH Copyright
64 Contributors to the dnf5 project.
65 .\" End of generated man page.