Questions tagged [rpm]

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

The Red Hat Package Manager, or RPM, is a low-level package manager developed by Red Hat for its Red Hat Enterprise Linux distribution. RPM is primarily used on distributions belonging to the Red Hat family (notable examples being Fedora, RHEL and CentOS) and distributions belonging to the SUSE family (notable examples being OpenSUSE and SUSE Enterprise Linux).

RPM is rarely directly used. Instead, it is generally used with a high-level package manager which provides things like dependency management and automatic fetching of binary packages from the internet. yum is one such high-level package manager - it is typically used with Red Hat-family distributions. zypper is another RPM-based high-level package manager - it is usually used under the distribution family it was developed for: SUSE.

FURTHER READING:

1077 questions
19
votes
2 answers

Why should you always use `rpm -U` and not `rpm -i` to install package?

rpm has a -i (--install) option to install a package rpm has a -U (--upgrade) option that will install or upgrade a package The red hat documentation indicates that rpm -i is perfectly acceptable. However every documentation I've ever seen has…
spuder
  • 18,053
14
votes
4 answers

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 BuildRoot if everything is OK. Now, with all "improved"…
greenoldman
  • 6,176
12
votes
8 answers

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 issues, mainly surrounding rpm (see links below): …
12
votes
2 answers

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 foo.rpm isn't available from any source, from the…
evachristine
  • 2,613
5
votes
1 answer

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 This is making rpmbuild to fail with the error: RPM…
Sayan
  • 223
4
votes
3 answers

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: <> meaning, that for build I require everything that is required for install. So, if I remove or add…
greenoldman
  • 6,176
3
votes
1 answer

How to pass parameters from %prep to %build?

I have the following problem: In the %prep, I run a command that returns a value. I want to be able to use this value in the %build. I was not able to do it with macros, because %global gets its value on init, and %declare is executed when called. I…
Eran Ben-Natan
  • 568
  • 2
  • 7
3
votes
1 answer

Get Install File for Already Installed RPM

I would like to install this custom package, packageA, onto another Linux box. $yum list installed | grep packageA packageA.x86_64 But, I don't have access to the installation file, i.e. packageA only exists on this box. How can I do this?
3
votes
1 answer

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 seem to inherit the name from the master package…
Šimon Tóth
  • 8,238
3
votes
1 answer

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
1 answer

Is it possible to manually add an entry to RPM Database?

Our current AV install package on Linux(CentOS) servers is in the form of tar.gz and the installation is initiated by execution of the default install.sh script. But since install is not via RPM or YUM, package is not added to the RPM DB and thus,…
Abhi
  • 173
3
votes
2 answers

What is the difference between RPM %post% script and executing this script from bash?

I have an RPM which does File copy (say, 123.so ) in %post, runs /etc/init.d/VontuMonitor restart If copy the same files manually (user is root) and launch the same command manually, then everything works. If I create an RPM which does exactly…
2
votes
1 answer

What is the difference between rpmsign --addsign and rpm --addsign

What is the difference between using rpmsign --addsign and rpm --addsign, when trying to sign a rpm package? Which one should be used? I tested the two commands on the same rpm and it seems the behavior is the same: [~]# rpmsign --addsign…
baudsp
  • 143
2
votes
0 answers

Update specific file in RPM, how does --change-files option work?

I'm trying to repack a RPM package with rpmrebuild command, according to the manual I can update files with --change-files option. --change-files="pgm1 a b c" But the manual didn't say much about the parameter above, what does it mean? e.g If I…
daisy
  • 54,555
2
votes
1 answer

Delta rpms and presto with yum

When you use delta rpm's with presto or without even, do they rely on you having the original rpm on hand, or do they download both the original and the difference between the original and then construct it? (specifically with yum) Does presto or…
rubixibuc
  • 1,747
1
2 3 4