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.
We'll cover the following...
We'll cover the following...
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, herenpm. -
With
-t deb, we instructfpmto create a Debian package as the target. -
Finally,
leftpadis ...