Goal
I have a rpm package, but I want to substitute several files in the rpm, and make a new rpm.
Backgroud
I couldn't find srpm of a certain software. What I could download is the rpm package.
Operations
a. I got the spec file from the rpm by
rpmrebuild --package --notest-install -sxxx.spec xxx.rpmb. I got all the files in the rpm by
rpm2cpio pkgname | cpio -ivdc. I copied the files from above into ~/rpmbuild/SOURCE, and copied the xxx.spec to ~/rpmbuild/SPECS
d. I did
rpmbuild -bb xxx.specbut I foundFile not found:for every file.Question
I don't know how to solve this problem. Should I make a tarball of the files from
rpm2cpio pkgname | cpio -ivdand then go to modify the spec file?Or I must install the rpm first and then try to run
rpmrebuildto create a new rpm?I want to know the traditional way to solve this problem, thanks very much.
I want to remake rpm package without srpm
496 Views Asked by Lawrence At
1
There are 1 best solutions below
Related Questions in COMPILATION
- I am trying to run java application in Eclipse, When I try to do Run > Run as > Java Application it starts to show little processing but nothing happe
- Unable to run get .exe file from assembly NASM
- Javascript to Java
- How to compile only the changed files in Verilator?
- Why does the .exe file become locked after compiling?
- Installing the C compiler for LC3
- compile syzkaller fuzzer failed without any error or warning
- Solved: Create standalone executable for MacOS with OpenCV and libmagic
- How to work around the "collect2: error: ld returned 1 exit status" error when running simple fortran files with the gfortran command?
- how to add a compiler type supported for sccache?
- Vulkan ‘VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR’ was not declared in this scope
- Rust newbie compile error (for (key: String, value: String) in | ^ expected one of `)`, `,`, `@`, or `|`)
- latest version of redshift with crazy compile times
- Problem compiling out-dated Typescript code
- What is appropriate substitution for configurations.compile in newer gradle e.g. version 8.7?
Related Questions in RPM
- RPM package signature verification in Ubuntu
- CentOS/RHEL download dependencies
- JFrog Xray SBOM: Why are there rpm packages with multiple versions that doesn't show up on my docker container?
- Stopping Jenkins from Incrementing Job Numbers When Restarting from a Stage
- building ruby 3.3.0 rpm on amazonlinux2023 is linking to hard coded directories
- RPM fails to install because of a directory conflict even though permissions are the same
- RPM Specfile wrong dependancy version resolved during dnf install
- Generated RPM has requirement on files it contains but doesn't provide them
- Testing installation and deployment of RPM
- RPM Require installs wrong dependency
- How does one tell yum to ignore a repo file with a parsing error?
- Install Multiple Tomcat9 Instance using RHEL RPM Package
- How to use "zypper info" with a specific version of a package
- How to add custom metadata using fpm for rpm/deb pacakges
- rpmbuild -bs fails for Illegal character
Related Questions in RPMBUILD
- RPM Specfile wrong dependancy version resolved during dnf install
- Generated RPM has requirement on files it contains but doesn't provide them
- RPM Require installs wrong dependency
- MariaDB 10.9.* for Fedora 39 - CPack Error
- rpmbuild -bs fails for Illegal character
- Issue with rpmbuild --target from a rocky 8 to a pcc64 architecture
- rpmbuild debugsourcefiles.list is empty
- How do I disable `rpmbuild` Duplicate build-ids errors?
- Multiple python3 versions inside RPM package with .spec file
- Build 32 bit Apache httpd RPM
- Build Apache httpd RPM from source fails
- rpmbuild error: Arch dependent binaries in noarch package
- How to package an RPM with an old autoconf/automake project
- RPM package after generate a jar file with the same pom.xml
- Editing spec file for build to pick up online html doc package in new location
Related Questions in RPM-SPEC
- RPM Specfile wrong dependancy version resolved during dnf install
- Generated RPM has requirement on files it contains but doesn't provide them
- rpmbuild -bs fails for Illegal character
- YUM Dependency resolving with multiple RPMs that have the same Provides Claim
- Multiple python3 versions inside RPM package with .spec file
- How to preset service instances in RPM spec
- Editing spec file for build to pick up online html doc package in new location
- how to satisfy rpm user and group dependencies that already exist?
- rpm2cpio doesn't show every file included in the RPM package
- RPMbuild force dependency to specific RPM in built RPM
- how to solve the problem "New unsatisfied dependencies found:/usr/bin/bustle-dbus-monitor" using the %filter_from_requires macro in specfile
- how to invalidate obsoletes dependency during update
- Dynamic Requires section in RPM based on installation environment
- How do I add informations about bugfixes or security fixes to rpm spec files?
- Build a RedHat RPM from a tar file
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You relly need to open up that spec and adapt it to the files it expects. The spec file itself holds the answer to most of your questions:
The
Sourcetag(s) will tell you the source files that are needed and their names.The
%filessection will tell you what files are expected to be in the in the rpm after building it.I advise you to open another question and post the spec file and a list of the files you extracted wit
rpm2cpio