Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created February 16, 2012 04:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save glarizza/1841903 to your computer and use it in GitHub Desktop.
Save glarizza/1841903 to your computer and use it in GitHub Desktop.
FPM and RPMS
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