Page 1 of 1

Installing VIA Yum

Posted: Wed Feb 06, 2013 11:12 am
by theangryheretic
Does anyone know if there is a way to install Nagios via yum, and have it incorporate the --with-command-group=nagcmd that you would supply if you compiled it from source? Or is installing it from source the only way to get the --with-command-group=nagcmd flag added?

Re: Installing VIA Yum

Posted: Wed Feb 06, 2013 11:30 am
by abrist
The generic way is to download the source RPM and look in the .spec file. Install the yum-utils package, and run yumdownloader --source bind, and then unpack the downloaded source RPM (with either rpm -ivh or rpm2cpio) and look.

Many programs also have an application-specific way of getting compile options. But with most yum packages, you are pretty much stuck looking through and editing the .spec file. My suggestion? Compile from source with hosted source tarball.