Tag Archives: rpm

Puppet – RPM Package ensure => installed failure

In Puppet, the source attribute in package type allow us to install a .rpm package by providing the file path located in the agent machine. But in that case, the package name should be the same as the .rpm filename. Otherwise, you will get following error.

package oracle-instantclient11.2-basic- is already installed


Here is an example of the Puppet manifest.

#package { "oracle-instantclient": <-- this will cause error in every daemon run
package { "oracle-instantclient11.2-basic-":
  ensure   => installed,
  provider => 'rpm',
  source   => '/tmp/oracle-instantclient11.2-basic-',
  require  => File["/tmp/oracle-instantclient11.2-basic-"],


Done =)

Reference: Ensure package installed fails if it is installed


Linux – Re-sign an rpm package

Working on the Puppet manifest to install the newrelic-sysmond package to all the nodes. I want to host the newrelic-sysmond.rpm on the company repository server but in that case the i have to re-sign the rpm.

What i need to do is to download the rpm from the New Relic repository, move it to the RPM build server and run the following command.

  • rpm --resign newrelic-sysmond-


You will be prompted to enter the passphrase and that’s it.

Done =)

Reference: Maximum RPM – Signing Packages