Build rpm of monit 5.5

  1. Download https://github.com/pcharlesleddy/misc/blob/master/monit.spec
    1. change "_topdir" to match your local system.
  2. cd into what you set _topdir to
  3. mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
  4. Download monit-5.5.tar.gz file and put it in the SOURCES directory
  5. Put monit.spec in the SPECS directory
  6. rpmbuild -v -bb --clean SPECS/monit.spec
    1. yum -y install rpmdevtools
  7. Output should mention where the rpm ended up
  8. rpm -qlp on the rpm file to see what's in it
Gory details: http://fedoraproject.org/wiki/How_to_create_an_RPM_package

Notes
  1. "%spec -q" means be "quiet" when untarring, not that interesting, but people use it a lot

    Comments

    Popular posts from this blog

    Openvpn and unbound combined break dig command

    Stress Linux system: stress-ng

    Google Nexus 4: permanent back panel glass repair for less than a penny