RPM is a package management system intended primarily for Linux distributions.

learn more… | top users | synonyms

93
votes
12answers
31k views

What are the pros/cons of deb vs. rpm?

For whatever reasons, I've always used RPM based distros (Fedora, Centos and currently openSUSE). I have often heard it stated that deb is better than rpm, but when asked why, have never been able to ...
16
votes
6answers
910 views

What's .deb and .rpm and how is it different from .msi?

What are these file formats and how do they differ from the .msi format in Windows? Also what are the pros and cons of these package management schemes?
16
votes
3answers
11k views

Open a RPM on a Mac?

I am on a MacBook Pro running Apple Leopard (Mac OS X 10.5.8). I would like to unpackage a RPM and view the files contained within the wget-1.11.4-2.el5_4.1.src.rpm . I don't need to install the ...
12
votes
4answers
5k views

Is there is a PPA-service equivalent in the Fedora world?

For Ubuntu there is this convenient PPA service available where you can get your own package repository. You can put there source packages which are under an open source license, e.g. development ...
10
votes
4answers
473 views

Why using rpm if there's yum?

As we know yum is a package management system which was built on top of rpm. It's also a command line utility which is a(rudely speaking) broader version of rpm, it resolves many problems(the main is ...
9
votes
1answer
142 views

What happens to RPM transaction when it is interrupted in the middle?

Let's imagine that I'm installing with RPM packages A, B and C. They are installed in the same order. And suddenly in the middle of installing B there is a power cut. 1) regarding state after turning ...
8
votes
3answers
13k views

Remove unused packages - Fedora

I have installed some rpm package on my fedora 17. Some packages had a lot of dependencies. I have removed some packages but I forgot remove unused dependencies with yum remove. How can I do that ...
8
votes
2answers
4k views

CentOS: List the installed RPMs by date of installation/update?

I'm on a CentOS 4 machine. I updated and installed some packages a few weeks back, but I don't remember the name of every package or the names of every dependency. I used yum. Can I list the packages ...
7
votes
2answers
135 views

Are RPMs valid across platforms?

I'm a little confused about RPM's in Red Hat and/or Fedora (and/or other distros?). I can certainly accept that 64-bit RPM's are needed for 64-bit OS'es and 32-bit for 32-bit OS'es but... If I have ...
7
votes
1answer
1k views

What is the proper way to set SELinux context in an RPM .spec?

I am trying to build an RPM that targets RHEL4 and 5. Right now I call chcon from %post but multiple Google entries say "that's not how you are supposed to do it" with very limited help on the right ...
7
votes
1answer
521 views

How do I emulate the “Replaces:” function of a Debian package in an RPM?

I need to use NSCD, the Name Service Caching Daemon, to decrease load on our LDAP server, on my SLES10 systems. In my experience, the default nscd, supplied as part of GNU LibC, is garbage, and will ...
7
votes
3answers
779 views

Download ALL rpms for a product

I have two CentOS machines, one 6.3 box (A), and another CentOS 6.1. (B) 6.3 box is with internet connection, 6.1 box is without internet connection. I want to download ALL dependencies of a product ...
6
votes
4answers
755 views

Is there a pbuilder-like environment for RedHat?

I would like to know if is there any utility like Debian's pbuilder, to build RPM packages on RedHat using a clean environment (chroot). I've found mach which has support for something like this but ...
6
votes
2answers
612 views

Installing a package locally to a user - best practices?

I want to install Git locally to a user on a RHEL server (I don't have root access) What would be your cleanest/ most organized way of installing software to a local user account? Installing ...
6
votes
1answer
725 views

How to create a list of all applications which were manually installed?

I use Fedora and I'd like to have all the package names in a list, but only the ones I installed myself, not the default ones.
6
votes
1answer
433 views

Why does `man -k cron` say `vixie-cron (rpm)` for some results, and how do I read those pages?

I'm trying to find out some details regarding cron and /etc/cron.d/ on a RedHat system. Ironically, my answer is viewable within the vixie-cron-*.src.rpm for this package, but the the man pages for ...
5
votes
3answers
2k views

How to keep the content of the BuildRoot?

The good old rpm while building package in steps simply kept the content of the BuildRoot -- it was very useful for me, because if some piece of software was difficult to create, I could check ...
5
votes
2answers
3k views

Is it stable to use epel and rpmforge in the same time?

So after a fresh Scientific Linux 6.3 Desktop install, I: yum install rpmforge-release && yum update and yum install epel-release.noarch then: yum install wine gparted cups-pdf ...
5
votes
2answers
471 views

How to get started with CentOS?

I've been working with Debian GNU/Linux for a long time and am very proficient with it. However for a new project I've got to got familiar with CentOS ASAP. So my Question is: How do I get started ...
5
votes
1answer
1k views

GUI for adding Fedora software source

Is there a GUI for adding additional software sources in Fedora (FC 13). I have a software repository that works fine when added manually (as a .repo file in /etc/yum.repos.d/), but I'd like to have ...
4
votes
3answers
2k views

When importing a key during a yum installation, where is that key stored?

I'm installing a piece of software for which I had to use a third-party repository. After adding the repository with rpm -Uvh http://[site], I installed with yum install [package]. One of the ...
4
votes
2answers
101 views

Where can I find updated TAR.rpm for Oracle VM Server?

I'm using tar for my incremental backup script on Oracle VM Server 3.2.2 and it comes with tar 1.15.1 I need this command: tar -cf drive-C.full.tar --no-check-device \ ...
4
votes
1answer
266 views

RPM dependencies with localinstall

I need to install an rpm package on a system which has no internet access. So, let's say I already have needed dependencies. How do I install them only by running the main rpm package? Do they need to ...
4
votes
3answers
760 views

How do I tell which GPG key an RPM package was signed with?

The cryptographic signature of an RPM can be verified with the rpm -K command. This returns a string containing gpg (or pgp) and ending in OK if the signature is in RPM's database and is valid. If ...
4
votes
2answers
65 views

How do you separate /bin and /sbin when making an RPM?

I'm trying to make a redis RPM using fpm When I run the following commands, all binaries are installed to /tmp/installdir/usr/local/bin cd /tmp/redis2-8 PREFIX=/tmp/installdir/usr/local/ make ...
4
votes
2answers
3k views

yum install in user home for non-admins

I am a non-admin user on a large computer system. I need some up to date packages that are not installed on the system. I want to use yum to install them. As a user without sudo, admin, or root ...
4
votes
1answer
302 views

How to make an rpm package that installs a Java environment if needed

I'm very new to RPM packaging and I'm curious if, during the installation of one RPM it is possible to conditionally install another RPM if needed. In a nutshell. My RPM requires a particular JRE. ...
4
votes
2answers
4k views

How does createrepo work. How does yum understand parse its files. A conceptual explanation

I am not looking for a how-to on creating a repo (createrepo) or using yum. I want to understand how they work together. I want to know what files yum looks at and why, what those files contain. I ...
4
votes
3answers
5k views

getting error “Can't create transaction lock” with rpm

I am slowly making progress on installing Fedora into a Logical Volume for a DomU using Package Management. I have (with the help of the wonderful people at Unix & Linux) resolved a number of ...
4
votes
1answer
396 views

How can I build a rpm for i386 target on a x86-64 machine?

I am building an rpm using rpmbuild command as: rpmbuild -bb --root <DIRECTORY> --target i386 --define "_topdir <DIRECTORY>" <specfile>.spec When I use my SLED 10 SP3 x86 machine, ...
4
votes
1answer
849 views

How can I specify OS-conditional build requirements in an RPM spec file?

I am trying to work my way around with the BuildPrereq flag in the spec files. I want a few pre-requisites to be included if the OS is of a particular version. something like if os == fedora 4 ...
4
votes
1answer
145 views

RPM fails to uninstall using sudo rpm -e

I have encountered a strange and annoying problem when trying to uninstall certain in-house generated rpm packages using sudo. When I do the following: sudo rpm -e mypackage rpm -qa | grep ...
4
votes
3answers
1k views

How to programmatically determine the highest version kernel RPM installed?

What I want to script is something along the lines of: if [ uname -r is not == highest version of kernel RPM installed ] then echo "You need to reboot to use the latest kernel" fi The problem is, ...
4
votes
2answers
6k views

CentOS yum repository bad Header V4 RSA/SHA1 signature

I was coping with many problems to get stuck with this one. I have installed yum repository on server (CentOS 5.6) with: createrepo -v -s sha yumrepo/ sha is used due to solution to my earlier ...
4
votes
2answers
3k views

How to install packages to a custom location in centos6

I have a shared location, let me call it /tp I want to install all my libraries and packages in this location just like the default install. Reason to do this is: I want all the users in the network ...
4
votes
1answer
829 views

rpmbuild error: Symlink points to BuildRoot

In the package that I'm building, there are symbolic links within the Buildroot directory. For instance this: /home/sg/impkg/buildroot/dir1/bin/w_be -> /home/sg/impkg/buildroot/dir2/targ/be ...
4
votes
1answer
284 views

Prelink warning in output of rpm -Va

I have run the following as root on a RHEL 4 box to get a list of the modified files: rpm -Va The output includes lines such as: prelink: /tmp/#prelink#.60m2Jq: Recorded 2 dependencies, now seeing ...
3
votes
2answers
488 views

Where do installed RPMs go?

I download and install packages on my Red Hat Enterprise Linux Server 6 machine using YUM package manager in command-line mode. When I install apk files on my Android phone, they go to /data/app ...
3
votes
1answer
42 views

RPM subpackage name

Is it possible to make a subpackage without the inherited prefix from the master package? I have a project that has a single install and need to split this into multiple packages, but the subpackages ...
3
votes
3answers
344 views

How to “rpm -i” a package only when an older version does not exist?

I wish to install some RPM packages from a shell script. I want to ensure that each package is indeed installed, but I do not want to update a package that would already have an older version ...
3
votes
2answers
198 views

Which RedHat packages for CentOS?

I want to use a RedHat rpm Software Package for CentOS 5.6, but I dont know which version of RedHat works with CentOS 5.6. RedHat 4 = CentOS 4? RedHat 5 = CentOS 5? ...
3
votes
1answer
48 views

RedHat RPM file collision

Let's assume I have two RPM packages named 1.rpm and 2.rpm. Both of them want to put a file test into /usr/bin, but both of them use a different version of test. Of course I would like to have both ...
3
votes
2answers
1k views

How can I verify that a PGP key is imported into RPM?

One can import a key with: rpm --import /path/to/key But how can you tell later if you have already imported this key? Trying to reimport it will fail with an error and I am trying to avoid this ...
3
votes
3answers
2k views

What RPMs do I need for timeconfig?

I've got setuptools set up and have read through the list of what's in /etc/setuptools.d I'm interested in installing timeconfig as well, but I only need the TUI version (no GUI). Which RPMs do I ...
3
votes
2answers
154 views

rpmbuild: Is there a way to specify recommended packages

So, search as I might, I can't find anything about specifying recommended packages in a spec file. I wouldn't even consider it possible if I hadn't seen it in the spec file for Mono 2.10.9. It reads ...
3
votes
1answer
2k views

What packages are required to install vim on Fedora?

What RPM packages are required to install vim on a recent version of Fedora?
3
votes
2answers
1k views

SPEC %files attribute and Shell variables

I have a spec file which unpacks a library which is deployed at location which is exported in the shell. ie %file ${AXIS2_C}/bin/services/services.xml This fails with : error: File not found: ...
3
votes
1answer
901 views

open of .rpm failed: Permission denied

Whenever I try to install some .rpm I've downloaded, I'm getting: > sudo rpm -i something.rpm error: open of something.rpm failed: Permission denied It seems that the choice of rpm doesn't ...
3
votes
2answers
456 views

How to build a cross-distro binary RPM package?

I'm trying to build a cross-distro binary RPM package that works under Fedora and openSUSE. I'm using a Require: tag to set the dependencies package names. The problem is that the package names are ...
3
votes
2answers
25 views

Why is “dir-or-file-in-usr-local” an error rather than a warning?

I'm building some rpm packages and checking for standards and style conformance using rpmlint. The packages are specific to systems at my place of work and they won't get pushed upstream. Our ...