Skip to content

Instantly share code, notes, and snippets.

@spuder
Created March 4, 2014 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spuder/9357799 to your computer and use it in GitHub Desktop.
Save spuder/9357799 to your computer and use it in GitHub Desktop.
fpm bug
If you export to .deb then you can not use -p otherwise you get an error
#Fail
fpm -p /tmp -s dir -m sowen@foo.com -C /tmp/installdir -t deb -n redis-6390 -v 2.8.6 bin/ etc/ var/
Process failed: ar failed (exit code 1). Full command was:["ar", "-qc", "/tmp", "debian-binary", "control.tar.gz", "/tmp/package-deb-build20140304-28142-nfr1q3/data.tar.gz"] {:level=>:error}
#Success
fpm -p /tmp -s dir -m sowen@foo.com -C /tmp/installdir -t rpm -n redis-6390 -v 2.8.6 bin/ etc/ var/
no value for epoch is set, defaulting to nil {:level=>:warn}
no value for epoch is set, defaulting to nil {:level=>:warn}
Created rpm {:path=>"/tmp"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment