1
1
mirror of https://github.com/goreleaser/nfpm synced 2026-03-05 18:21:58 +01:00
nfpm/www/content/docs/arch-mapping.md
Carlos Alexandro Becker be6fd83eed
feat: map uname -m (#1032)
* feat: map uname -m

closes #917

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore: fmt

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* docs: update

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2026-02-03 09:30:36 -03:00

118 lines
2.7 KiB
Markdown

---
title: Architecture Mapping
weight: 5
---
nFPM was branched out of [GoReleaser](https://goreleaser.com), so some of it
lean towards "the Go way" (whatever that means).
GoReleaser passes a string joining `GOARCH`, `GOARM`, etc as the package
architecture, and nFPM converts to the correct one for each packager.
nFPM also accepts common architecture names from `uname -m` (like `x86_64` and
`aarch64`) and translates them to the correct value for each packager.
Below is a list of the current conversions that are made.
Please, feel free to open an issue if you see anything wrong, or if you know the
correct value of some missing architecture.
Thank you!
---
{{< tabs items="Deb,RPM,APK,Arch Linux,IPK" >}}
{{< tab >}}
| Input | Value |
| :--------: | :--------: |
| `amd64` | `amd64` |
| `x86_64` | `amd64` |
| `386` | `i386` |
| `arm64` | `arm64` |
| `aarch64` | `arm64` |
| `arm5` | `armel` |
| `arm6` | `armhf` |
| `arm7` | `armhf` |
| `mips` | `mips` |
| `mipsle` | `mipsel` |
| `mips64le` | `mips64el` |
| `ppc64le` | `ppc64el` |
| `s390` | `s390x` |
{{< /tab >}}
{{< tab >}}
| Input | Value |
| :--------: | :-----------: |
| `amd64` | `x86_64` |
| `386` | `i386` |
| `arm64` | `aarch64` |
| `arm5` | `armv5tel` |
| `arm6` | `armv6hl` |
| `arm7` | `armv7hl` |
| `mips` | `mips` |
| `mipsle` | `mipsel` |
| `mips64le` | `mips64el` |
| `loong64` | `loongarch64` |
{{< /tab >}}
{{< tab >}}
| Input | Value |
| :-------: | :-----------: |
| `amd64` | `x86_64` |
| `x86_64` | `x86_64` |
| `386` | `x86` |
| `i386` | `x86` |
| `i686` | `x86` |
| `arm64` | `aarch64` |
| `aarch64` | `aarch64` |
| `arm6` | `armhf` |
| `arm7` | `armv7` |
| `ppc64le` | `ppc64le` |
| `s390` | `s390x` |
| `loong64` | `loongarch64` |
{{< /tab >}}
{{< tab >}}
| Input | Value |
| :-------: | :-------: |
| `amd64` | `x86_64` |
| `x86_64` | `x86_64` |
| `386` | `i686` |
| `i386` | `i686` |
| `arm64` | `aarch64` |
| `aarch64` | `aarch64` |
| `arm5` | `arm` |
| `arm6` | `armv6h` |
| `arm7` | `armv7h` |
{{< /tab >}}
{{< tab >}}
| Input | Value |
| :--------: | :--------: |
| `amd64` | `x86_64` |
| `x86_64` | `x86_64` |
| `386` | `i386` |
| `i386` | `i386` |
| `arm64` | `arm64` |
| `aarch64` | `arm64` |
| `arm5` | `armel` |
| `arm6` | `armhf` |
| `arm7` | `armhf` |
| `mipsle` | `mipsel` |
| `mips64le` | `mips64el` |
| `ppc64le` | `ppc64el` |
| `s390` | `s390x` |
{{< /tab >}}
{{< /tabs >}}