How to Install FPM on Windows 11

FPM is a packaging tool that helps package software into various formats, such as RPM, DEB, and more. It is a useful tool for developers and system administrators who need to package their software and distribute it to others. In this tutorial, we will show you how to install FPM on Windows 11.

Prerequisites

Steps to Install FPM

  1. Open the Command Prompt on your Windows 11 operating system. You can do this by pressing "Windows + R" and then typing "cmd" in the Run dialog box.
  2. In the Command Prompt, type the following command to install Ruby:
choco install ruby -y
  1. Once Ruby is installed, type the following command to install the bundler:
gem install bundler
  1. Next, clone the FPM repository from Github. Run the following command to clone the repo:
git clone https://github.com/jordansissel/fpm.git
  1. Change the directory to the FPM repository by running the following command:
cd fpm
  1. Now, run the following command to install the dependencies:
bundle install
  1. Once the dependencies are installed, you can use the FPM tool. To use FPM, run the following command:
bin/fpm

Bonus Tip: How to Add FPM to the System Path

If you want to add FPM to the system path so that you can use it from any directory, follow these steps:

  1. Right-click on the Windows button and select "System".
  2. Click on the "Advanced system settings" link.
  3. Click on the "Environment Variables" button.
  4. Scroll down to the "System Variables" section and select "Path".
  5. Click on the "Edit" button.
  6. Click on the "New" button and enter the path to the FPM tool directory (e.g. "C:\Users[user]\fpm\bin").
  7. Click on "OK" to save the changes.
  8. Open a new Command Prompt to use FPM from any directory.

Conclusion

FPM is a handy packaging tool that makes it easy to package software in various formats. With this tutorial, you have learned how to install FPM on your Windows 11 operating system. With FPM, you can quickly package and distribute your software to others.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!