Skip to content

Instantly share code, notes, and snippets.

@perfectfoolish
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save perfectfoolish/306d8e82bb66359abfcd to your computer and use it in GitHub Desktop.

Select an option

Save perfectfoolish/306d8e82bb66359abfcd to your computer and use it in GitHub Desktop.
Build the source code to RPM, # rpm -ivh zabbix .centos.src.rpm, # rpmbuild -ba rpmbuild/SPECS/zabbix_server.spec
#! /usr/bin/env bash
yum install -y rpm-build
yum install -y tree
mkdir -p rpmbuild/BUILD rpmbuild/BUILDROOT rpmbuild/RPMS rpmbuild/SOURCES rpmbuild/SPECS rpmbuild/SRPMS
echo "######"
tree rpmbuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment