<p>You can indeed build RPMs on Debian. You need the <code>rpm</code> and <code>rpmbuild8</code> packages:</p>

<p>I tried it with a docker container:</p>

<pre><code>docker run --rm -it debian bash -c 'apt-get update &amp;&amp; \
apt-get -y install rpm librpmbuild8 &amp;&amp; which rpmbuild'
</code></pre>

<hr>

<p>More info on packages:</p>

<pre><code>The following additional packages will be installed:
  dbus debugedit libapparmor1 libarchive13 libdbus-1-3 libdw1 libexpat1 libgdbm-compat4 libgdbm6 libicu63 liblua5.2-0 libmagic-mgc libmagic1 libnspr4
  libnss3 libperl5.28 libpopt0 librpm8 librpmio8 librpmsign8 libsqlite3-0 libxml2 netbase perl perl-modules-5.28 rpm-common rpm2cpio
Suggested packages:
  default-dbus-session-bus | dbus-session-bus rpm-i18n lrzip gdbm-l10n file sensible-utils perl-doc libterm-readline-gnu-perl
  | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl alien python elfutils rpmlint rpm2html
</code></pre>

CC BY-SA 4.0
2019-09-07T06:59:55.037Z
2019-09-08T09:31:19.790Z
2019-09-08T09:31:19.790Z
Bruce Becker
<p>I have a Docker-based Debian Sid build environment for Go. The build script of an is configured to build both .deb and .rpm.</p>

<p>The rpm build process of a component I  wish to build requires though the tool <code>rpmbuild</code>.</p>

<p>Is it possible to install rpmbuild on Debian or should I better try another Linux distro?</p>

<docker><build-pipeline>
Is it possible to install RPM build on Debian?
Ta Mu
# Is it possible to install RPM build on Debian?

(Asked by: username_0 on 2019-09-07)

I have a Docker-based Debian Sid build environment for Go. The build script of an is configured to build both .deb and .rpm.

The rpm build process of a component I wish to build requires though the tool `rpmbuild`.

Is it possible to install rpmbuild on Debian or should I better try another Linux distro?

**Tags:** docker, build-pipeline


---

## 1 answers

### Answer by username_1 on 2019-09-07. Score: 2 | Accepted answer

You can indeed build RPMs on Debian. You need the rpm and rpmbuild8 packages:
I tried it with a docker container:
docker run --rm -it debian bash -c 'apt-get update && \
apt-get -y install rpm librpmbuild8 && which rpmbuild'


More info on packages:
The following additional packages will be installed:
  dbus debugedit libapparmor1 libarchive13 libdbus-1-3 libdw1 libexpat1 libgdbm-compat4 libgdbm6 libicu63 liblua5.2-0 libmagic-mgc libmagic1 libnspr4
  libnss3 libperl5.28 libpopt0 librpm8 librpmio8 librpmsign8 libsqlite3-0 libxml2 netbase perl perl-modules-5.28 rpm-common rpm2cpio
Suggested packages:
  default-dbus-session-bus | dbus-session-bus rpm-i18n lrzip gdbm-l10n file sensible-utils perl-doc libterm-readline-gnu-perl
  | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl alien python elfutils rpmlint rpm2html


---

