Why convert FLATPAK to RPM?
People want .flatpak as .rpm to manage the app with dnf/zypper rather than Flatpak. The formats are opposites: a Flatpak is isolated and self-contained, an RPM shares system libraries and follows distro packaging rules, so the software must be rebuilt, not converted.
How to convert FLATPAK to RPM
Build an .rpm from source OPEN-SOURCE
Get the upstream source, write a .spec file, and build with rpmbuild -ba package.spec to produce a native RPM.
Keep the app as a Flatpak EASIEST
If you just want it installed on Fedora/openSUSE, run flatpak install flathub <app-id> instead of chasing an .rpm.
Look for an official .rpm FREE
Check the project's releases or a dnf repo; apps that ship a Flatpak often also publish an .rpm you can install with sudo dnf install ./package.rpm.
About these formats
A .flatpak file is a Flatpak single-file bundle: one Linux application or runtime packaged into a standalone file for direct download, sharing on removable media, or sending by email. Open…
Open .FLATPAK details →An .rpm file is a software package for RPM-based Linux distributions such as Fedora, RHEL, CentOS, and openSUSE. Install it with sudo dnf install ./file.rpm (Fedora/RHEL) or sudo zypper…
Open .RPM details →Quality & what to watch
- Files pulled out of a Flatpak expect the runtime and
/applayout, so an RPM built from them will not run on the host. - A source-built RPM links against system libraries, so versions and behavior can differ from the sandboxed Flatpak.
alienconverts between.deband.rpmbut does not accept Flatpak bundles, so there is no shortcut.
Frequently asked questions
Can I use alien to make an rpm from a flatpak?
alien only handles .deb, .rpm, .tgz and .slp, not Flatpak bundles.Why can't the flatpak's files just be repackaged?
What is the supported way to get an RPM?
.spec file and rpmbuild, or use a vendor-provided .rpm.