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:

fpm_error.txt
fpm: command not found

Solution

First, install rubygems:

install_rubygems.sh
sudo apt -y install rubygems

and now install fpm using rubygems:

install_fpm.sh
sudo gem install fpm

 


Check out similar posts by category: Linux