Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

βŒˆβŒ‹ βŽ‡ branch:  cross package maker

Add crude Python bdist_wheel generation method. Only tested with singular packages. Hack to relocate single module scripts into pkgname subdir + stub Otherwise relies on -s src or -s di
mario authored 781 days ago last checkin d275f1986
πŸ“‚ .batcave 'dk add ruby fpm' β€Ήβ€Ί 1942 days ago
πŸ“‚ bin - Folks gettin' angry about an abandoned prototype they mistook for β€Ήβ€Ί 1596 days ago
πŸ“‚ examples Update gem-to-rpm.rbβ€Ήβ€Ί 1524 days ago
πŸ“‚ experimental - moved to lib/rpm/... β€Ήβ€Ί 2233 days ago
πŸ“‚ lib Merge remote-tracking branch 'upstream/master' β€Ήβ€Ί 1262 days ago
πŸ“‚ misc Merge branch 'master' of β€Ήβ€Ί 2178 days ago
πŸ“‚ spec Pass other scripts through β€Ήβ€Ί 1009 days ago
πŸ“‚ templates - purge swap file β€Ήβ€Ί 2364 days ago
πŸ“‚ test - start major refactoring. Design first, this time. With tests. β€Ήβ€Ί 1948 days ago
πŸ“‚ tools - make fpm-npm a toplevel tool β€Ήβ€Ί 2363 days ago
πŸ“„ .travis.yml Pass other scripts through β€Ήβ€Ί 1009 days ago
πŸ“„ .travis.yml.disabled - try enabling travis again β€Ήβ€Ί 1489 days ago
πŸ“„ CHANGELIST Sufficient amount of commits for a minor bugfix release.β€Ήβ€Ί 802 days ago
πŸ“„ Add a Code of Conduct from β€Ήβ€Ί 946 days ago
πŸ“„ CONTRIBUTORS Merge pull request #772 from djhaskin987/feature/661 Feature/661β€Ήβ€Ί 982 days ago
πŸ“„ Gemfile Merge pull request #432 from mmb/gemsource Fix gem source warning meβ€Ήβ€Ί 1501 days ago
πŸ“„ Gemfile.lock Get rid of this bundler nightmare. β€Ήβ€Ί 1671 days ago
πŸ“„ Guardfile - I don't use this. β€Ήβ€Ί 1934 days ago
πŸ“„ LICENSE - update copyright years β€Ήβ€Ί 1438 days ago
πŸ“„ Makefile Merge remote-tracking branch 'upstream/master' β€Ήβ€Ί 1262 days ago
πŸ“„ Merge branch 'master' of β€Ήβ€Ί 2178 days ago
πŸ“„ README move to markdown β€Ήβ€Ί 2363 days ago
πŸ“„ Add note about Code of Conduct Huge thanks to everyone involved in cβ€Ήβ€Ί 946 days ago
πŸ“„ Rakefile - purge unused Rakefile β€Ήβ€Ί 1481 days ago
πŸ“„ TODO - ok, I really use github issues for a todo list. β€Ήβ€Ί 1923 days ago
πŸ“„ Vagrantfile Pass other scripts through β€Ήβ€Ί 1009 days ago
πŸ“„ a remove test file β€Ήβ€Ί 1814 days ago
πŸ“„ 'dk add ruby fpm' β€Ήβ€Ί 1942 days ago
πŸ“„ pkg.rb - finish move β€Ήβ€Ί 2364 days ago
πŸ“„ xpm.gemspec Release xpm branch as v1.3.3.3; rename binary and gem.β€Ήβ€Ί 915 days ago

cross package maker

fpm greatly simplifies distribution package generation.
xpm is a feature-oriented branch of fpm.

xpm It creates or converts between

  • Debian deb
  • RedHat rpm
  • Node npm
  • OSX pkg
  • Ruby gem
  • Solaris packages, plain zip or tar archives, and a few more..

See the β†’ Howto on common fpm usage examples.

xpm target/source plugins

This variant (precautiosly renamed for parallel installation) adds a few more source/target modules:

  • -t exe assembles Windows SFX "installers"

  • -s src consumes per-file relative pack: specifiers from meta comment fields for source-based apps

  • -t phar bundles PHP scripts into .phar/zip/tars with meta fields

  • -t ipk creates a static Listaller (.IPK) or Limba archive (which is a cross-distro packaging format)

  • -s composer fetches PHP bundles per composer, allows to pack them as phars or system packages (or matroska phar in deb/rpm)

  • -t arch builds a binary Arch Linux package.

A few more are currently pondered..

new features

This fpm branch already provides a few extensions:

  • Multi-target creation in one swoop.

    xpm -t deb,rpm,exe

    Avoids having to call fpm multiple times for creating distinct system packages. Usually package-specific flags --deb-… and --rpm-… can be mixed in one invocation - when they're non-overlapping.

  • Simple post-processing with update filters:

    xpm -u man,appdata

    Update filters are run between input file collection and target package building. They're intended for quick tasks or semi-build functionality. Existing filters:

    • man - compresses man pages
    • appdata - creates pkg.appdata.xml for distro managers
    • desktop - add stub fpm:pkg.desktop file
    • composer - update/generate composer.json for phar target
    • fixperms - limit file permissions (umask 755 / 644)
    • strip - strip debugging symbols from binaries
    • deps - resolve cross-distro library names per whohas/distromatch
    • unprefix - workaround for converting system packages back to local paths
    • lcase - lowercase filenames prior packaging
    • packfile - runs any Packfile within the /tmp/staging dir on assembled files
  • Debian package signing with --deb-sign KEYNAME integrated.

  • Additional --attr option to add custom control header fields (practically an alias for --deb-field, but also works for phar packages, based on attrs{}, so src plugin implicitly populates extra fields).

possible extensions

It's planned or at least considered to add:

  • -t inst β†’ a GUI/Python-based BSD/Linux cross-distro installer (reusing zip, deb, alien, pkcon, xdg-tools)

  • -t msi - for proper Windows packages

  • depending on further research, one of the AppImage-formats (utilizing their actual tools) might make sense

See Research on existing and inactive cross-distro packagers, schemes and initiatives.

build and installation

Meanwhile xpm installs as xpm, to keep any mainline fpm accessible. It's installed per rubygems easily. Either download a prebuilt gem from or assemble it yourself:

  1. Download the xpm.tgz tarball, extract somewhere
  2. gem build ./xpm.gemspec
  3. gem install ./xpm-

Take note that this fetches a few other dependencies, even compiles ffi; so may take a few more seconds. But basically that's it.

fossil β†’ git

I just don't fancy git. That is all. But this fossil repo will be synced back to once in a while.

Or you can just sync it directly from here. Download or install the single fossil binary, then:

  1. fossil clone xpm.fsl
  2. fossil open xpm.fsl
  3. fossil ui

From there you could also just fossil export --git and pipe that into git fast-import.

Alternatively just use the new direct remote export:

  1. wget //

It should be noted that Git is occasionally flaky with its own export format though.