Tuesday 5 March 2013

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

    No comments:

    Post a Comment

    Note: only a member of this blog may post a comment.

    Interview questions: 2020-12

    Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...