Installing FPM on OpenSUSE
Introduction
FPM (Effing Package Management) is a command-line tool for creating packages in multiple formats (RPM, DEB, etc.) from various source formats (gem, tar, etc.) for multiple platforms using simple metadata. In this tutorial, we will show you how to install FPM on OpenSUSE.
Prerequisites
To complete this tutorial, you will need:
- A computer running OpenSUSE
- A user account with sudo or root privileges
Steps
Install prerequisites:
Before installing FPM, make sure your system is up to date by running:
sudo zypper updateInstall the following packages required for installation of FPM:
sudo zypper install build-essential ruby ruby-devel rubygems rpm-build zlib-develInstall FPM:
You can install FPM either via
gem(Ruby's packaging manager) or viarpmpackage. Here, we will show you both methods.a. Via gem:
To install FPM via
gem, run:sudo gem install fpmThis will install FPM and its dependencies.
b. Via rpm package:
To install FPM via
rpmpackage, download the appropriate version of FPM for your system from the FPM releases page. For example:wget https://github.com/jordansissel/fpm/releases/download/v1.13.1/fpm-1.13.1-0.1.x86_64.rpmInstall the
rpmpackage withzypperpackage manager by running:sudo zypper install fpm-1.13.1-0.1.x86_64.rpmThis will install FPM and its dependencies as an
rpmpackage.
Conclusion
You now have FPM installed on OpenSUSE. You can create packages in multiple formats and for multiple platforms using simple metadata. For more information about FPM and its usage, please refer to the official documentation.