1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-29 04:01:33 +02:00
fpm/docs/source/rpm.rst
2016-11-28 22:28:48 +13:00

24 lines
597 B
ReStructuredText

`rpm` - RPM Packages
====================
Synopsis::
fpm -s rpm [other options] path-to-rpm
Using 'rpm' as a source lets you treat an existing package as a source for
building a
new one. This can be useful for converting packages between formats or
for "editing" upstream packages.
Strip out docs under `/usr/share/doc`::
fpm -t rpm -s rpm --exclude /usr/share/doc ruby-2.0.0.x86_64.rpm`
Rename a package and assign different version::
fpm -t rpm -s rpm --name myruby --version $(date +%S) ruby-2.0.0.x86_64.rpm
Convert an rpm in to a deb::
fpm -t deb -s rpm fpm-1.63.x86_64.rpm