Questions tagged [rpm]

RPM Package Manager (RPM) is a package management system for unix based operating systems.

RPM Package Manager (RPM) (originally Red Hat Package Manages) is a powerful and mature command-line driven package management system capable of installing, uninstalling, verifying, querying, and updating primarily and nowadays also software packages. Each software package consists of an archive of files along with information about the package in "Binary RPMs" like its version, a description, and the like.

2353 questions
13
votes
6 answers

Create RPM package from ANT script under Windows

I need to create an RPM package from an ANT script that runs on a Windows computer. This package must contain the result classes from the build plus some other, additional resources. I guess there should be some program somewhere that can be…
Mario Ortegón
  • 18,670
  • 17
  • 71
  • 81
13
votes
6 answers

Is there any syntax or trick to be able to create a multiline rpm spec file macro

Background. $ rpmbuild --version RPM version 4.3.3 I am working on a spec file that needs to process a list of files in multiple scriptlets. DRY (don't repeat youself) has me defining the list once as a macro which is expanded into the various…
Chaim Geretz
  • 826
  • 5
  • 23
13
votes
2 answers

Failing an RPM install programmatically in a spec step

I'm making an RPM. This particular RPM has requirements that can't be expressed as RPM prerequisites, lets call them a particular filesystem/disk configuration. Currently the failure happens after install, at runtime, when the requirements aren't…
Paul Rubel
  • 26,632
  • 7
  • 60
  • 80
13
votes
1 answer

Exclude or delete directory path from %files in rpm.spec file

My spec files path looks like below :…
Prem
  • 131
  • 1
  • 1
  • 4
13
votes
3 answers

Submodule not showing up in repo

I am building some custom rpm packages, and am trying to include the source of another project as a submodule to build from. During my first run I added the package and when I looked at the Github page I could see the icon showing the linked…
eignhpants
  • 1,611
  • 4
  • 26
  • 49
13
votes
1 answer

Rpmbuild - setting name of created .rpm

I've been trying to find out what's the easiest way to set a fixed filename during rpm creation. Can it be set somewhere in .spec file or as rpmbuild parameter? The default name depends on version and release number. Name of my rpm has to be always…
sync
  • 131
  • 1
  • 1
  • 4
13
votes
1 answer

Distributing a python package along with module dependencies using RPM

I've got several python applications consisting of scripts/modules that should be packaged and deployed as RPMs. The trickier bit is that each application should be distributed along with all python module dependencies, and these should be used in…
Dave Challis
  • 3,525
  • 2
  • 37
  • 65
13
votes
2 answers

How do you make it so that cpack doesn't add required libraries to an RPM?

I'm trying to convert our build system at work over to cmake and have run into an interesting problem with the RPMs that it generates (via cpack): It automatically adds all of the dependencies that it thinks your RPM has to its list of required…
Jonathan M Davis
  • 37,181
  • 17
  • 72
  • 102
12
votes
1 answer

Why does service stop after RPM is updated

I have a software package for which I created an RPM. I can't paste the entire RPM here for IP reasons, but here is the gist of the problem: %pre /sbin/pidof program if [ "$?" -eq "0" ] then /sbin/service program stop fi %post /sbin/chkconfig…
Sagar
  • 9,456
  • 6
  • 54
  • 96
12
votes
2 answers

How do I find out w/YUM or RPM what files it installed?

I installed Fedora 16 last night and saw it had NoMachine's NX in the repo. I did a yum install nx and it says it installed correctly, but for the life of me I can't find the .service or /etc/init.d file(s) or even the /etc configuration files for…
aimzies
  • 429
  • 2
  • 8
  • 17
12
votes
3 answers

How to install a rpm package and its dependencies offline

I want to install a rpm package, (e.g. python 3), and all of its dependencies in a linux server that does not have internet connection. How can I do that?
Raul Mercado
  • 324
  • 1
  • 4
  • 14
12
votes
6 answers

rpm: /lib64/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib/librpmio.so.3)

I am stuck with this error. Not able to install any RPMs. Please help OS is RHEL6.9 64 bit Thanks in advance.
Sachin Aravind
  • 150
  • 1
  • 2
  • 11
12
votes
1 answer

Difference between noarch rpm and a rpm

Can someone explain difference between noarch rpm and rpm. Is these two are dependents. I have Jenkins rpm and there are some noarch rpm too. what I can do with noarch rpm. Thanks for your help
user7486728
12
votes
4 answers

How to implement auto-update electron app on Linux?

I use electron to create cross-platform application. For Windows and Mac it could be done by electron tools, like autoUpdate, Squirrel, so on. The problem is only with Linux. I have built a .deb package for Ubuntu. But I can't find any…
Gleb
  • 1,312
  • 3
  • 18
  • 36
12
votes
2 answers

how to define a rpm spec macro with empty body?

the problem is quite easy to exhibit: rpm --eval "%define xyz" error: Macro %xyz has empty body i want to get the patch_level and echo_dist may return sles11 or sles11sp1, for sle1s11 i just want the patch_level to be an empty string, but that…
Dyno Fu
  • 8,753
  • 4
  • 39
  • 64