yum reinstall using non-identical packages with same EVR

Michael Schwendt mschwendt at gmail.com
Sun Feb 27 14:39:59 UTC 2011


On Sun, 27 Feb 2011 13:02:11 +0000 (UTC), Andre wrote:

> > The dist tag is part of the R in EVR, however, so whenever you rpmbuild
> > something in order to _rebuild_ it, you need to bump the R to turn the build
> > into a valid update. For dist-specific rebuilds, you would append your own
> > least-significant release value at the right side of the dist tag.
> 
> In the rpmbuild man page, I didn't see any obvious way to do this (but am not
> familiar with rpmbuild so might have missed something). The default behavior,
> which replaces the source rpm's disttag with "fc14", gives the same EVR as the
> original F14 rpms.

rpmbuild cannot do it on-the-fly for a given src.rpm, but there are tools that
can be used to automate such builds:

  $ rpm -ql rpmdevtools|grep bump
  /usr/bin/rpmdev-bumpspec
  /usr/share/man/man1/rpmdev-bumpspec.1.gz

Notice option -r in the manual.


More information about the test mailing list