How to install fpm package builder on Ubuntu/Debian

Problem:

You want to build a package using the fpm command, but you see the following error message:

example.txt
fpm: command not found

Solution

First, install rubygems:

example.sh
sudo apt -y install rubygems

and now install fpm using rubygems:

example.sh
sudo gem install fpm

 


Check out similar posts by category: Linux