ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Building an RPM does not equal installing it unless you're building RPMs the "wrong" way: as root account user. In general that is not necessary. If you mean rebuilding an RPM from source then you just need to diff things and add patchlines to your .spec file. If you mean working with an already installed RPM as source you could try "rpmrebuild" (Sourceforge).
Building an RPM does not equal installing it unless you're building RPMs the "wrong" way: as root account user. In general that is not necessary. If you mean rebuilding an RPM from source then you just need to diff things and add patchlines to your .spec file. If you mean working with an already installed RPM as source you could try "rpmrebuild" (Sourceforge).
Helo thx for replying me.
I have my own rpm packages installed on my system. now,
problem is that some of binaries,scripts and configuartion files need to modfied. I need to replace all these modfied files with the original files only not need to modify all the files.
for that how i unpack my rpm package , replace modified binaries with the original files and repack the rpm package without changing the version info.
I have my own rpm packages installed on my system. now,
problem is that some of binaries,scripts and configuartion files need to modfied. I need to replace all these modfied files with the original files only not need to modify all the files.
for that how i unpack my rpm package , replace modified binaries with the original files and repack the rpm package without changing the version info.
Regrads,
Amit
hi amit
do you wants to develop a new .rpm using your previous rpm files aswellas modified files.
first you need to create a .spec file.
i think you know how to create .spec file..
hi amit
do you wants to develop a new .rpm using your previous rpm files aswellas modified files.
first you need to create a .spec file.
i think you know how to create .spec file..
regards
swift
helo thx for replying me.
now i dont want to develop new rpm.
I want to use my already installed rpm.
first I want to extract number of files from that rpm,
then i need to modyfy some of the files and repack that rpm
for exaple suppose my rpm contains 20 binaries files,5 shell scripts, 10 configuration files.
this rpm is already installed on my system.
now I want to extract files from rpm, need to replace 3 binaries files,
2 shell scripts files with modified binaries files and shell scripts.
and remaining binaries and other files i want to keep as it is.
I have my own rpm packages installed on my system. now, problem is that some of binaries,scripts and configuartion files need to modfied. I need to replace all these modfied files with the original files only not need to modify all the files. for that how i unpack my rpm package , replace modified binaries with the original files
Copy your package to a temporary directory. Run 'rpm2cpio package.rpm|cpio -idm' to extract its contents. Replace versions on disk by hand.
Quote:
Originally Posted by amit_pansuria
and repack the rpm package without changing the version info.
Maybe you read over it but I already pointed you at "rpmrebuild". By the way, what are your reasons for wanting to repack a package that way instead of building the package? Note that the resultant package of using rpmrebuild should *never* be publicly redistributed the way "original" packages are, simply because it isn't.
Copy your package to a temporary directory. Run 'rpm2cpio package.rpm|cpio -idm' to extract its contents. Replace versions on disk by hand.
Maybe you read over it but I already pointed you at "rpmrebuild". By the way, what are your reasons for wanting to repack a package that way instead of building the package? Note that the resultant package of using rpmrebuild should *never* be publicly redistributed the way "original" packages are, simply because it isn't.
Helo thx again for replying me in such a quick way.
I want to unpack and repack my rpm because i dont want to waste my time for testing on already binariies.
I want to save my test cycle on already tested binaries.
I again want to test only those binaries which are modified.
So i unpack rpm and replace only needed binaries and finalyy with already installed binaries and replace binaries i want to use that installed rpm.
OK, cool, but just don't publicly distribute your "repack" OK? When you're done testing, and if you need to distribute things, then doing a proper build will save you a lot of trouble later.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.