Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there's a way or a tool that can modify the HEADER and the NAME-VERSION-RELEASE for an existing rpm without installing/rebuilding it?

share|improve this question
    
Generally, this is not recommended practice. I use scripts based on rpmrebuild for manual tweaks to custom-built packages. What problem are you actually trying to solve? –  Deer Hunter Dec 27 '12 at 8:25
    
I have some rpms and it's automatically created by our hudson machine but I wanted to edit the HEADER and the NAME-VERSION-RELEASE to insert the details of what number of rebuild the rpms is. can you include the details how you edit those info without needing the rebuilding the rpm? –  user29318 Dec 27 '12 at 9:07
    
I only know how to rebuild with editing in one's favorite editor (export EDITOR=emacs): rpmrebuild -e -n -d . PACKAGE_NAME. You can always install the RPM afterwards if editing was successful: yum install PACKAGE.rpm. –  Deer Hunter Dec 27 '12 at 10:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.