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
495 Views Asked by Lawrence At
1
There are 1 best solutions below
Related Questions in COMPILATION
- gcc static library compilation
- AngularJS directive within ng-if won't run
- How do I compile QScintilla and Eric6 on Linux?
- Troubleshoot slow compilation
- C ignoring incrementation
- Compiling or using RtMidi on Windows 7
- within a project can I compile a module and interactively load the compiled module within ghci?
- C++ / compilation of a program fatal error: QtGui/qwidget.h: No such file or directory
- What do I have to consider when putting all code in the header?
- how do i compile a file with plugin stuff?
- Error when compiling simple LLVM example with Mingw
- Ant debug and ant release failed
- Compilation failure in JNativeHook
- error: C1083: Cannot open include file: 'ui_MainWindow.h': No such file or directory, Qt Creator
- Netbeans not using available memory during compilation
Related Questions in RPM
- Arduino RPM Detection
- RPM spec files with rpmbuild can have errors
- RPM conflicts with itself
- Why is rpmbuild installing package?
- Removing RPM Packages
- RPM to invoke browser post installation
- find rpm name from a executable
- CentOS6 - Backup all RPMs and installed programs
- PEP-Proxy-Steelskin Log configuration
- YUM error: dbiOpen: dbapi 1 not available
- RPM package spec localization
- Generate rpm with redline (java) no .spec file
- Custom use of RPM - how to organize it?
- Creating deb or rpm with setuptools – data_files
- How to sign rpm packages using digital signatures?
Related Questions in RPMBUILD
- RPM spec files with rpmbuild can have errors
- Why is rpmbuild installing package?
- RPM to invoke browser post installation
- nss-3.14.1-3.fc16.src.rpm build fails with error: test suite returned failure(s)
- rpmbuild: brp-java-repack-jars changes jar permissions
- How to use %exclude macro properly in rpmbuild SPEC files?
- Facing issue with jenkins: label name not recognized by sync command
- Creating an RPM package
- I want to remake rpm package without srpm
- Is there any concept of defining global variables that can be used by various files in a project?
- RPM Build - Permission Denied
- How to debug %post with rpmbuild
- rpmbuild: Installed (but unpackaged) file(s) found - Multiple options tried
- Add extra file into the rpm building process
- Error while applying patch for httpd-2.4.7
Related Questions in RPM-SPEC
- RPM spec files with rpmbuild can have errors
- RPM to invoke browser post installation
- nss-3.14.1-3.fc16.src.rpm build fails with error: test suite returned failure(s)
- RPM package spec localization
- Is it safe to verify the RPM that has just been installed from a %posttrans?
- Creating an RPM package
- I want to remake rpm package without srpm
- Marking files as config files in CPack
- Making an RPM which sets POSIX files capabilities
- RPM Build - Permission Denied
- Add extra file into the rpm building process
- Yum does not resolve dependencies after a rpm -ivh installation
- rpmbuild :error: Could not generate output filename for package myApp: unknown tag
- Unable to install kernel driver rpm during %post section kickstart RHEL7
- Different versions of rpmbuild list different dependencies
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 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