What actually is $RPM_BUILD_ROOT?

$RPM_BUILD_ROOT (or the equivalent %{buildroot} SPEC file macro) always holds the directory under which RPM will look for any files to package. The RPM scripts (e.g. the script that compresses the manual pages) will also use that value to know where to look for the files that were just installed. Normally, this value will be … Read more

Check RPM dependencies

In fact that’s not a one but four different questions :). *) First you can quickly list a downloaded package’s dependencies/requirements by using the following commands: $ rpm -qp mypackage.rpm –provides $ rpm -qp mypackage.rpm –requires *) Second, you can use yum utility in order to satisfy these (somewhat cryptic) dependencies automatically (assuming that all … Read more

How to ignore conflicts in rpm installs

The –force option will reinstall already installed packages or overwrite already installed files from other packages. You don’t want this normally. If you tell rpm to install all RPMs from some directory, then it does exactly this. rpm will not ignore RPMs listed for installation. You must manually remove the unneeded RPMs from the list … Read more

How to install packages in Linux (CentOS) without root user with automatic dependency handling?

It is possible to use yum and rpm to install any package in the repository of the distribution. Here is the recipe: Find the package name Use yum search. Download Download the package and all of its dependencies using yumdownloader (which is available on CentOS by default). You’ll need to pass it –resolve to get … Read more

Rails + New Relic: What does RPM mean?

The product name “RPM” stands for “Rails Performance Management” – which is an anachronism, now that we support Ruby, Java, PHP and .NET (stay tuned for other languages). The suffix “rpm” stands for “Requests per Minute”. Typically used to measure throughput, either for the whole application, or a specific Web Transaction (Controller Action in Rails). … Read more