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

learn more… | top users | synonyms

3
votes
2answers
2k 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
47 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
392 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
1answer
75 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
329 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
2answers
2k views

How to unpack, modify, rebuild and install a SRPM

I would like to modify a Fedora 15 package (gnome-shell-extensions-alternative-status-menu). It's a small modification (reverting this commit). Using yumdownloader I'm able to download a SRPM ...
3
votes
4answers
4k views

How to check available package versions in rpm systems?

If I want to check available versions of a package in Debian, I run apt-cache policy pkgname which in the case of wajig gives: wajig: Installed: 2.01 Candidate: 2.01 Version table: *** 2.01 0 ...
3
votes
1answer
2k views

Meaning of the yum error “Package tuple (…) could not be found in rpmdb”

I just want to install two packages in my Fedora 15 but I am getting some weird error. Command: yum install @development-tools Error: Loaded plugins: langpacks, presto, refresh-packagekit ...
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
1answer
52 views

How to verify the RPM database?

I need to verify that the RPM database (not an RPM, the database in /var/lib/rpm) is not corrupt or inconsistent, in a manner suitable for scripting (i.e. will return exit code 0 if good and something ...
3
votes
2answers
185 views

How to build an RPM package from the installed files?

There are two machines, identical version/arch of SLES. On machine #A there is a "foo" software installed that we can see using rpm -qa. On machine #B the "foo" software needs to be installed. The ...
3
votes
3answers
3k views

List all RPM packages installed from repo “X”

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?
3
votes
1answer
48 views

Common subroutines in RPM

I have some common code that I would like to execute in the %pre and %post section of my rpm spec file. When I place a subroutine in the %pre section, I need to add the same subroutine to the %post ...
3
votes
3answers
214 views

Centos rpm -qa vs yum list installed

I want to have server b to have exactly the same setup as server a. My plan is to have a list of all installed things on server a and install it by using the list on server b something like : yum ...
3
votes
1answer
111 views

rpm macros on CentOS 6.5

Trying to create a spec file for a CentOS 6.5 system. The rpm should check release to add specific Requires: lines based on the OS version....and it doesn't work at all: Spec file snippet: %if ...
3
votes
2answers
62 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 ...
3
votes
2answers
992 views

Replacing libpng-devel (1.5.3) with libpng12-devel RPMs on CentOS

I have a CentOS 6.4 box with a lot of other RPMs. I want to replace libpng-devel with libpng12.devel. If I do an rpm -e libpng-devel I get the following: error: Failed dependencies: ...
3
votes
2answers
523 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
1answer
27 views

How to merge config files interactively after “yum update”

After system packages are updated with "yum update", config files which could not be overwritten are not replaced, but we can find *.rpmnew files near by. By design system administrator must merge ...
3
votes
1answer
3k views

why can't I install packages with rpm? I get “transaction lock”

I'm having problems with yum and I am trying to re-install it. I've download yum.3.2.0-40-el6.centos.noarch.rpm. When I try: $ rpm -ivh yum.3.2.0-40-el6.centos.noarch.rpm I get: error: can't ...
3
votes
1answer
88 views

Removing information such as soft links from an RPM package on Linux

I provide an RPM package that contains both 32-bit and 64-bit applications, and can be installed in either mode, i.e. on both 32-bit and 64-bit platforms. As the package contains both applications, ...
3
votes
3answers
569 views

How to force rpm to check dependencies during upgrade?

We have a current version of our software that has a dependency on MySQL 5.1 and this is specified in the RPM requires. For our new version, we now require MySQL 5.5 and specify this in the RPM ...
3
votes
6answers
6k views

Python 2.7 on CentOS 5

Are there any half-official repositories for CentOS 5 with Python 2.7? EPEL provides only Python 2.6
3
votes
1answer
154 views

unresolved dependencies of bz* files for rpm make from source

I am trying to do a build of rpm from source. I got through the ./configure and ran through a good chunk of make. Unfortunately I keeping getting stopped up on undefined references to bzerror, ...
3
votes
1answer
461 views

TexLive and RHEL 6 — can I install 2011 *in addition* to 2007?

Our environment is Red Hat Enterprise Linux 6. By default, RHEL 6 comes with a version of TexLive from 2007. A user would like one of the extensions to TexLive ("PDFTex") to be updated. From ...
3
votes
2answers
245 views

reposync exclude subdirs from mirror

Is there a way to make the reposync command ignore a subdir of a public repo when mirroring it ? It seems to only want to sync on the url that has the /repodata/ & /repoview/ dirs, but i'm ...
3
votes
1answer
7k views

/proc/sys/kernel/hung_task_timeout_secs error

I am building a CentOS 6.2 webserver on a Hyper-V Cluster and have hit a major issue. The current setup is this: Operating System: CentOS 6.2. Minimal Server Install Installed software includes: ...
3
votes
1answer
269 views

RPM package naming convention

I'm a little confused with RPM package naming. When I do: vickey@tb:/usr/include$ rpm -qf event.h libevent-devel-2.0.10-2.fc15.i686 And: vickey@tb:/usr/include$ repoquery --list ...
3
votes
1answer
1k views

Unpacking kernel-source rpm off-system (OpenSuse)?

I'm using OpenSuse 11.2 from a LiveUSB USB flash/stick, which arguably has not much place on it. I need to get the Linux sources for this version of OpenSuse, as they are needed to build a driver for ...
3
votes
2answers
1k views

Using YUM or installing APT on CentOS

I am having trouble with a centOS machine I am using. I need some packages, including john the ripper, but yum cannot find the packages. When I type sudo yum install john, I get back the nothing to ...
3
votes
1answer
193 views

Make RPM Satisfy Dependency Requirements of Other Installed Packages

So, I am installing a java app that I wrote which uses jnetpcap. This requires libpcap of at least v1.0.0. My CentOS 5.8 only has libpcap 0.9.4, which is required by other installed packages. I've ...
3
votes
1answer
358 views

How to override anaconda/kickstart package ordering?

I am building a bootable ISO to be used to install a Linux image (Oracle Linux, 5.8). This is using anaconda with a kickstart file to select the packages to be loaded. Some of these packages are ...
3
votes
0answers
605 views

recommended procedure to create a user/group during RPM install

after trying hard to search for RPM best practices guides and finding virtually none, to my surprise, I resort to the community - I need to ensure that some users and groups exist after the ...
3
votes
1answer
1k views

How can I downgrade a glibc version?

I upgraded glibc for a reason that isn't arround anymore so i want to downgrade it again. The stupid thing is a lot of programms rely on glibc at the moment. I still have the 2.4 version on the system ...
2
votes
4answers
293 views

Any way to register source-built software with rpm/yum database?

When I install a software from its binary package using rpm or yum, I can later query for meta-information (rpm -qi PACKAGE, rpm -ql PACKAGE, ...) and can uninstall it (rpm -e PACKAGE). But with the ...
2
votes
2answers
491 views

How to list RPM packages installed in order of installation date

I'd like to see a list of software installed in the order of the date they were installed. The order doesn't matter (newest to oldest & vice-versa) as long as they're arranged by date. I'm mainly ...
2
votes
1answer
157 views

rpmbuild: How can I 'Require' one package *or* another

So, I'm trying to fix a spec file right now for rpmbuild. On Suse, it looks like the X11 library development package is named "xorg-x11-libX11-devel" while on CentOS it seems to be named ...
2
votes
2answers
465 views

Turn a bash and php script into a distributable rpm

I'm semi unix knowledgeable and I want to be able to call down an rpm from my server, run it with something like rpm -i , and have access to the script anywhere. The script is a combination awk and ...
2
votes
3answers
55 views

listing package dependents

I stupidly did "yum remove python" which also ended up removing all the packages that required python as well. Luckily, I have access to another Linux machine that is a near clone of this machine, ...
2
votes
3answers
1k views

How to link Requires to BuildRequires in rpm spec?

Let's say I have such Requires entries: Requires: a Requires: b Requires: c and now I would like to state, that: BuildRequires: <<Requires>> meaning, that for build I require ...
2
votes
1answer
292 views

yum: RPM dependency tree

I'm going to install an RPM package and I can see that some of dependencies requires X server libraries to be installed as well. I'm absolutely sure that the package I need is a server software and ...
2
votes
3answers
92 views

How do I find out which RPM was used to install PHP?

I have PHP installed on a server and I'd like to know which RPM it was build off of (webtatic or remi). How do I find this out. Also, how would I find out if and when that changed?
2
votes
3answers
1k views

Requires: perl(Compress::Raw::Zlib) = 2.052

Im trying to run a yum update but getting stopped by dependencies. I have installed rpmforge el6 which i need for other packages. Error: Package: perl-IO-Compress-2.052-1.el6.rfx.noarch ...
2
votes
2answers
3k views

How should I search for packages to install on CentOS 5.5?

Backstory: Recently, it was explained to me that to upgrade any package via terminal on a linux machine, I will need to use the distributions package management system to install or upgrade the ...
2
votes
2answers
989 views

check if latest openssh patch provided by RHEL is installed

We have encountered a security threat in one of our RHEL servers which says the SSH server is configured to use Cipher Block Chaining. As far as I know, the RHEL systems provide security updates ...
2
votes
2answers
537 views

How can a version of a package conflict with itself?

I want to install fillup and get: rpm -i fillup-1.42-268.1.x86_64.rpm file /usr/bin/fillup conflicts between attempted installs of \ fillup-1.42-268.1.x86_64 and fillup-1.42-268.1.x86_64 ...
2
votes
1answer
118 views

What is the corresponding freebsd command of these rpm commands?

I know about rpm, but I am newbie about freebsd packaging system. I learnt about how to create package and know I want learn how to get some information about packages or files. Can somebody give me ...
2
votes
2answers
2k views

How to automatically add new path to $PATH variable after RPM packet installation?

I want to automatically add a new path to the $PATH variable each time when my RPM package is installed. I tried to use a post installation script in the my RPM. Here is the part of RPM spec file ...
2
votes
1answer
692 views

How do you add a package (or a mirror?) if the .rpm you're looking for isn't available in your VM build of CentOS?

I have yum and rpm, and I really only know how to install packages using these commands. When I tried to yum install figlet on a new CentOS6 virtual machine it couldn't find it in the mirrors list. I ...
2
votes
1answer
880 views

How to convert binary installer into rpm?

There are times when all you have is binary installer. I hate them because once installed it is quite difficult to uninstall such software, and since my distro (openSUSE 11.4) is rpm-based it is hard ...