Skip to content

Instantly share code, notes, and snippets.

@thpham
Forked from glarizza/gist:1841903
Created July 3, 2014 17:59
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 thpham/42317d0f53d613568334 to your computer and use it in GitHub Desktop.
Save thpham/42317d0f53d613568334 to your computer and use it in GitHub Desktop.
RPM and FPM
Install rpm-build via yum (from CentOS Updates and Base)
Install fpm via rubygems (requires json gem)
Creating an RPM from the apache-tomcat-7.0.25 directory and installing to /opt/tomcat/${Packagestuff}
fpm -s dir -t rpm -n tomcat -v 7.0.25 --prefix /opt/tomcat -C apache-tomcat-7.0.25
Creating a Puppet Module
fpm -s dir -t puppet -n tomcat -v 7.0.25 -C apache-tomcat-7.0.25
Listing RPM contents
rpm -qpl tomcat-7.0.25-1.i686.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment