Search⌘ K
AI Features

Package Construction Using fpm

Explore how to construct Debian packages from npm modules using the fpm tool. Understand essential commands to build, install, and examine package metadata, and learn how to customize packages with dependencies and scripts. This lesson equips you to quickly create functional Debian packages with practical command-line techniques.

Example package creation

Let’s say we want to create a Debian package for the npm module leftpad. We’d run the following commands:

$ sudo apt install npm
$ fpm -s npm -t deb leftpad
  • With -s, we specify the source, here npm.

  • With -t deb, we instruct fpm to create a Debian package as the target.

  • Finally, leftpad is ...