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…
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…
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…
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.
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…
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
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…
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.
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…
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?
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?
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"…
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…
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…