Questions tagged [rpm]

RPM Package Manager is a package management system used primarily for GNU/Linux operating systems. It used the .rpm file format.

RPM Package Manager is a package management system. "RPM" refers to the .rpm file format, files in this format, software packaged in such files, and the package manager itself. RPM was intended primarily for GNU/Linux distributions. The file format is the baseline package format of the Linux Standard Base.

716 questions
52
votes
2 answers

How do I downgrade an RPM on a machine without 'yum'?

On a machine without yum, I have version 3.2 of a package installed and I have downloaded version 2.4 manually, how do I install the older version?
Harley
  • 2,227
37
votes
5 answers

Can one require "this OR that" package in an RPM spec file?

Does anyone know how to (or whether one can) specify an alternate requirement or set of requirements in a spec file, as opposed to a single requirement? For example, say there are two packages available, conveniently named foo-bar and bar-foo. My…
22
votes
10 answers

Parse an RPM name into its components

Is there a name-parsing tool that is part of the official RPM tool package? I have a list of filenames. Each is the filename of an RPM package. I don't have the actual packages, just the filenames. For each I need to extract the package name and…
TomOnTime
  • 8,131
19
votes
2 answers

RPM: Set Required: somepackage >= 0.5.0 AND somepackage < 0.6.0

Is it possible to set dependecy version requirements like this: Required: somepackage >= 0.5.0 AND somepackage < 0.6.0 So only somepackage 0.5.x will be automaticly installed.
coxx
  • 291
18
votes
3 answers

Build RPM using source directory, not tarball

In my organization, we deploy all our software to our production machines using RPM. Our build process (which is automated) involves checking out the source from version control, tarring that source directory up, then running rpmbuild using that…
Eddie
  • 323
13
votes
2 answers

Creating symlink in /usr/bin when creating an RPM

I'm creating an RPM for an application that doesn't already have one. I've got it building and installing fine in the /opt directory using $RPM_BUILD_ROOT, but I would also like to create a couple symlinks in /usr/bin so that the application is…
13
votes
1 answer

How can I find what options an rpm was compiled with

I need to find the compile options for exim, as packaged by fedora 11. More generally, is there an easy way to find what options a particular rpm was compiled with?
Cian
  • 5,858
13
votes
10 answers

rpm without root

Is is possible to use rpm without root access?
David Nehme
  • 2,166
11
votes
1 answer

Getting diffs for file changes detected by rpm -V

I have an installation that has been tampered with, and I want to find out what exactly has been changed. I can run rpm -V MY_PACKAGES which gives me a list of modified files. Now I am looking for a convenient way to see the diffs (assuming that…
10
votes
2 answers

Can't uninstall RPM package

I was trying to install and uninstall postgres 9.3. After performing a variety of steps, I found that I have deleted something manually and now I am not been able to proceed further. What I am trying to achieve here is to remove all the traces of…
6
votes
2 answers

Building an rpm file with a unique qualifier appended

I'm building RPMs in a continuous integration environment, and I need to distinguish between successive builds, but obviously the spec file does not get modified on each checkin. The spec file header contains something like Version: …
5
votes
4 answers

How to create an rpm without a build step

I'm trying to create an rpm of some code which doesn't need to be built. It will just need to run a script when it's installed on the destination system (i.e. I just need the %install portion of the spec file). I've left both %build and %configure…
4
votes
1 answer

How do I warn people that a repo has been hacked?

The GetPageSpeed repo has been hacked. Anyone with the repo installed will have malicious code installed on their box by yum update, including the file /etc/cron.d/sysstat2. I've notified GetPageSpeed, but it is 1am their time. How do I warn…
Pascal
  • 503
4
votes
1 answer

.rpmnew file not created on package upgrade?

I'm currently testing installing a RPM with a config file using the config(noreplace) directive. As per using config(noreplace) my spec file marks a single file as a config file: %config(noreplace) /opt/lm/dest/conf/db.xml I did an on disk…
4
votes
2 answers

rpm -ivh, failed dependency already installed

I'm having trouble installing a set of custom build rpms. The spec file produces 7 binary rpms. I installed 5 of them using rpm -ivh and then decided that I also needed the remaining two. When I try to install those, rpm complains: # sudo rpm…
1
2 3 4