Questions tagged [rpmbuild]

rpmbuild command used to build rpms from rpm SPEC files

rpmbuild is the command used to build rpms from a rpm SPEC file.

854 questions
-1
votes
1 answer

Spec file: File is packed by rpm, but not getting installed in right destination

Rpm -ql is listing the file but the file is not getting installed in the right location of target machine.
qwerty
  • 85
  • 2
  • 6
-1
votes
1 answer

How to ship/include a generated file with ISO?

I am trying to build an ISO where I have some prebuilt RPMS. I have another file which is dynamically generated and I want the ISO to include it and when that same ISO is installed, it should be placed in /usr/bin folder. I know one way is to make a…
Goutam Bose
  • 35
  • 1
  • 13
-1
votes
1 answer

How to install rpm in opt directory

I have created rpm for one of the package. I want to install that rpm in opt directory but by default it gets installed in root directory. I have tried using Prefix in spec file but it's not working. I have tried rpm -ivh --prefix=/opt as well but…
Chaitali
  • 87
  • 13
-1
votes
1 answer

Compressing all files inside linux kernel rpm package

My current linux system has kernel-3.10.0-693.21.1.el7.x86_64 installed and now am trying to upgrade it to kernel-5.5.7 which is the latest stable release. Post compiling the tarball for kernel-5.7.7 obtained from https://www.kernel.org/ I obtained…
Vicky
  • 61
  • 10
-1
votes
1 answer

Signing Contents of RPM

I have some SPEC files to build my rpms with rpmbuild. As i understand, during rpmbuild, the source code is fetched, binaries are compiled, installed to buildroot and packaged as RPM. Is there a way to sign the binaries during this process.
-1
votes
1 answer

Spec file for building .tar.gz as .rpm

I'd like to improve the distribution and versioning of a program I've inherited, which is currently distributed as a .tar.gz file, by building a .rpm for RHEL7 that just extracts the contents to /usr/bin/. The tarball is not small, consisting in…
Armaggedon
  • 399
  • 4
  • 14
-1
votes
1 answer

RPM package download to use a specific provider

I want to install package A which has a dependency of Package B, and Package B has 2 providers, When I install package A, can we specify in the spec file which provider to be used to download package B when it’s being installed as a dependency
Connor
  • 33
  • 1
  • 6
-1
votes
1 answer

rpmbuild | specfile | %post | to execute a command or script as part of rpm install

How to execute some commands or scripts immediately after rpm installed and has to be run as part rpm install command. I wrote a spec file to take back up of some files within directory and tar them. When I install rpm tar would be copied on file…
Vaseem W
  • 69
  • 1
  • 7
-1
votes
1 answer

Specify command in spec to uninstall RPM package

I have built an RPM package and to install the package I run rpm -Uvh --force rpm_package_name.rpm Is there any command that I can define in spec during rpm build so that it uninstalls the package in single go, just like install works.
abhishek
  • 163
  • 1
  • 1
  • 7
-1
votes
1 answer

Adding Qt Dependencies to spec file in rpmbuild

I'm using Ubuntu 14.04 and I am updating the rpmbuild spec file of an application that now uses Qt. The packages that I need are the following: sudo apt-get build-essential sudo apt-get install mesa-common-dev -y sudo apt-get install…
Ankur Shah
  • 125
  • 12
-1
votes
1 answer

RPM directory that shouldn't get erased on upgrade

I am trying to build a rpm package for my application. And I would like to not remove a owned directory but keep adding files to it on upgrade. I will also like to remove the directory and all it files on uninstall. How do I achieve this?
-1
votes
1 answer

prefix and reloctable rpm package according to an other rpm prefix

I have install sample.rpm in /opt. I want samplw2.rpm find the relocation path of sample.rpm ad install itself in same place. is there any command or macro in spec file which check it befor installation or not?
-1
votes
1 answer

How to write a spec file to build an rpm package?

How can I write a spec file for building an rpm package, if I have only 4 tasks? Place my_file in /usr/local/mydir Place the configuration file in the rsyslog.d Place the logrotate file in logrptate.d Echo "something"…
mr. mistix
  • 11
  • 2
-1
votes
1 answer

rpm: how to allow w/o touching the old package seamless switch between the old and new packages w/ different name

In short, I want to implement seamless switch between the old and new packages with different name. However, I want to achieve this without touching the old package's spec file. Seamless switch includes that the other packages dependent on either…
Stephen
  • 609
  • 6
  • 12
-1
votes
1 answer

RPMBUILD //SOURCES

I'm trying to build a RPM for barnyard2-1.9, but when I attempt it I receive this error. These are the last few lines of the rpmbuild output: + /usr/bin/install -d -p…
Gary
  • 83
  • 2
  • 8
1 2 3
56
57