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
17
votes
2 answers

what does find-debuginfo.sh in rpmbuild do? how can I get rid of it?

I have two boxes that I'm using to build a source rpm. One of them runs: /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/name-of-package which adds three name.debug files to the RPM_BUID_ROOT. the other build box does not run…
Arthur Ulfeldt
  • 90,827
  • 27
  • 201
  • 284
16
votes
3 answers

RPM - Install time parameters

I have packaged my application into an RPM package, say, myapp.rpm. While installing this application, I would like to receive some inputs from the user (an example for input could be - environment where the app is getting installed - "dev", "qa",…
saravana_pc
  • 2,607
  • 11
  • 42
  • 66
16
votes
1 answer

How to create a rpm for python application

I have a simple application (just one .py file), that is using cherrypy & flask-restful to present a web service. My development environment is Windows. I use Python 3.5.2 and also create and use virtualenv to work on my project. I have a need to…
Sam
  • 323
  • 2
  • 3
  • 8
16
votes
7 answers

Dependency Resolution Fails on Installed Library

I'm trying to install a rpm and get following error: ---> Package geramer-server.x86_64 0:3.6.0.117-1 will be an update --> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: geramer-server-3.6.0.117-1.x86_64 ---> Package…
Andi
  • 650
  • 2
  • 8
  • 22
16
votes
3 answers

What's the root cause of error "Failed dependencies: /bin/sh is needed by xxx" on RHEL?

When I install a rpm package on RHEL using rpm, I got a error message just like "Failed dependencies: /bin/sh is needed by xxx". I checked that /bin/sh is there and it links to /bin/bash and bash works well. I found a solution that to add --nodeps…
Jeff7566
  • 432
  • 1
  • 5
  • 20
16
votes
1 answer

Packaging a single JAR file as an RPM properly

I've create a Java JAR file successfully. I now want to package my JAR file as an RPM (RedHat Package Manager) so that I can make it installable for Linux. What would be the proper way to package a single JAR file as an RPM?
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243
15
votes
4 answers

Packaging symlinks via rpmbuild?

Is it possible to make rpmbuild to preserve symlinks on packaging? The current behavior is to create copies of files, which I would like to avoid.
SyBer
  • 5,407
  • 13
  • 55
  • 64
15
votes
4 answers

rpm installation fails due to depencency /bin/sh not found

i am trying to install a package using rpm, for which i have created a different database using rpmdb --initdb --dbpath $HOME/myrpmdb and specifying that path in the --dbpath while insatlling. The error i am getting is root@jason:su rpm --dbpath…
crystal
  • 363
  • 1
  • 5
  • 14
15
votes
1 answer

What is `%setup -q` in RPM spec?

If you create a .spec file with ViM, the editor will use a skeleton for it. Quite handy! It bugs me however that the generated %setup macro has this -q flag which I could not find anywhere. I didn't find any mention on the max-rpm guide page on…
Dacav
  • 13,590
  • 11
  • 60
  • 87
15
votes
2 answers

Build RPM to just install files

I need to build a RPM, with the sole purpose of installing a few fonts. I have read several tutorials about that, however everyone seems to suggests something different and I haven't been able to find something like a very basic setup to do that. Is…
st-h
  • 2,444
  • 6
  • 37
  • 60
15
votes
1 answer

Where does rpm look for dependencies?

I have an rpm which I have build using rpmbuild. Lets say it is sample.rpm. It builds successfully. The rpm has and executable (let's call it init). When I try to install it using rpm -ivh sample.rpm it shows me failed dependencies. Let's say the…
Deepti Jain
  • 1,901
  • 4
  • 21
  • 29
14
votes
1 answer

CentOS equivalent of dpkg -s

I'm adapting a prepare script for CentOS that was previously written for Ubuntu. In the Ubuntu script, the command dpkg -s {some program} is called frequently. For example, one such command is dpkg -s snmpd to check if the SNMP Daemon is…
Scott Crooks
  • 1,523
  • 4
  • 24
  • 39
14
votes
1 answer

Specifying alternatives in RPM dependencies

I've got a Java app that I am packaging as an RPM. Ideally I would like to specify Java as a dependency. I need to install in both Fedora and RHEL environments. The problem is RHEL Java is called 'java', while Fedora doesn't provide Oracle/Sun's…
Mike
  • 2,417
  • 1
  • 24
  • 33
14
votes
5 answers

how do I display file permissions of rpm internal contents

I want to see what permissions the files within an rpm will "have" after the rpm is installed. But without having to install the rpm.
rogerdpack
  • 62,887
  • 36
  • 269
  • 388
14
votes
2 answers

multiple tar (source files) files in rpm.spec file

I have come up with a a centralized logging server on linux. At this point I am trying to consolidate to make things a little easier to load onto another machine. I want to have one RPM that will install multiple programs in one shot. I am working…
Kolby Kinzer
  • 153
  • 1
  • 1
  • 6