Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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

Browse other questions tagged or ask your own question.