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

learn more… | top users | synonyms

2
votes
1answer
634 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 ...
1
vote
3answers
933 views

How to make a src.rpm unpack the source to whatever directory I want?

I'm trying to make an rpm that will unpack the source to a custom directory, such as /asdf. When I run it, it always errors out saying "cannot create %sourcedir /usr/src/redhat/SOURCES". Is there ...
2
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 ...
4
votes
1answer
1k 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 ...
1
vote
1answer
3k views

“Linux kernel source code directory” requested in Cisco VPN client install

I'm trying to install Cisco's vpn client, and it requests that I provide the directory containing linux kernel source code. Specifically, it reads: In order to build the VPN kernel module, you ...
1
vote
2answers
1k views

rpm --upgrade not upgrading?

Can someone please help me understand the rpm command. From the rpm man pages: rpm {-U|--upgrade} [install-options] PACKAGE_FILE ... This upgrades or installs the package currently installed to a ...
5
votes
2answers
4k 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 ...
0
votes
1answer
229 views

Offline documentation of an RPM spec file or how to retrieve an example

I am taking a Red Hat exam that is offline. I am having issues remembering the syntax for an RPM SPEC file. Can anyone suggest how to retrieve an example or some documentation that should already be ...
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")?
2
votes
1answer
336 views

Generic RPM that can install on any os - error: RPM is for a different operating system

How can I make a rpm from a spec file that can be installed on any host? Currently I have a spec file but when installing the rpm on other hosts I get this: package my_software-1.0-1dist is for a ...
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 ...
4
votes
2answers
2k 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
373 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 ...
2
votes
1answer
832 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 ...
5
votes
2answers
5k 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
1answer
316 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 ...
2
votes
1answer
206 views

rpm content compress

My default kernel rpm has 12mb size, for some reasons I compile a custom kernel and make rpm from that(make rpm command). However, my custom kernel rpm size is 96mb. I look inside default rpm, in ...
1
vote
1answer
361 views

RPMs and patching

I have 3 files (from here)that I have been given to install in an attempt to upgrade the compiler: binutils-2.13.2.1-1.mipsel.rpm binutils-2.13.2.1-1.src.rpm binutils-2.13.2.1-r5900-7.diff.gz ...
5
votes
3answers
1k 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 ...
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 ...
6
votes
1answer
817 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.
8
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 ...
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
2answers
18k views

How do I get UUENCODE to work?

I have a server that I have inherited that has an older version of Redhat installed due to software requirements and now there is a need to use UUENCODE to allow email attachments. The uuencode and ...
2
votes
2answers
2k 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 ...
4
votes
3answers
7k 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 ...
3
votes
1answer
152 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, ...
2
votes
1answer
661 views

Can rpm handle an install of another OS into another Logical Volume?

I am trying to install fedora as a domU under a CentOS dom0 using the method outlined in The Book of Xen. I have asked another question regarding a consistent error message of cpio: Bad magic when I ...
2
votes
1answer
5k views

Getting “cpio: Bad magic” when trying to rpm install into a mounted Logical Volume

I need some help with this. I am trying to follow the Xen guide to provision a domU using package installation of the Fedora 15 release (the dom0 is CentOS 5.6). Ive run the rpm install command with ...
2
votes
2answers
5k views

How does rpm resolve library dependencies?

I try to make a package of a program which is linked to such library (output from ldd): libwx_baseu-2.8.so.0 => /usr/lib64/wx-2.8-wxcontainer/libwx_baseu-2.8.so.0 Pretty straightforward, ...
1
vote
2answers
2k views

Python library conflict with lower version

I am trying to reinstall yum in CentOS. Because I made some mistake by removing python. so I got error as follows There was a problem importing one of the Python modules required to run yum. The ...
3
votes
3answers
209 views

Which Red Hat Enterprise Linux packages for CentOS?

I want to use a Red Hat Enterprise Linux RPM software package on CentOS 5.6, but I don't know which version of RHEL works with CentOS 5.6. RHEL 4 = CentOS 4? RHEL 5 = CentOS 5? ...
1
vote
2answers
108 views

Where do I download an RPM from?

Where do I download a source RPM from?
0
votes
1answer
818 views

RHEL/CentOS: Installing a new version of Java, why not just change the path?

I am installing a new version of Java on a CentOS/RHEL Linux distro for a single developer to develop java. The way I want to install on this development system is to just put the new java version ...
0
votes
1answer
406 views

Fedora 12 No wireless networks detected

I have just bought a Dell Inspiron 1510 and loaded Fedora 12 along with Windows. I cannot detect any wireless networks through my network applet on the tool bar. $:lscpi 12:00.0 Network controller: ...
3
votes
2answers
509 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
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 ...
1
vote
3answers
874 views

Backup installed RPM

Last night I did rm -Rf /tmp as root. I wasn't drunk. But I definitely feel I was dumb to do so. Now X doesn't work. I read few days back that after doing rm, one can't recover the lost data. I ...
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 ...
4
votes
1answer
980 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 ...
0
votes
1answer
1k views

RPM Build error : D: May free Score board((nil))

I have a problem building , it fails with the error: D: May free Score board((nil)) What does this mean ? I do not see any other errors appearing in the build before this so i am fairly stumped by ...
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?
1
vote
1answer
202 views

Repackaging RPMs

We're using HP DataProtector for our backup environment. The installation method leaves something to be desired, and we're attempting to automate it in such a way that it makes our Unix admins cringe ...
13
votes
4answers
6k 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 ...
4
votes
2answers
2k 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: ...
2
votes
4answers
3k 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 ...
5
votes
2answers
552 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 ...
6
votes
1answer
461 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 ...
17
votes
3answers
13k 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 ...
7
votes
2answers
142 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 ...