I have some rpm packages that I built locally. After installing and configuring them, I found a problem that required a source patch. I have rebuilt the rpms, but since they have the same version number as the original, I can't use "yum localupdate" to install them. Is there a clean way to do this with yum, or do I just need to remove the old packages and then install the new ones? -- Bowie
On Thu, 13 Apr 2006, Bowie Bailey wrote:> I have some rpm packages that I built locally. After installing and > configuring them, I found a problem that required a source patch. > I have rebuilt the rpms, but since they have the same version number > as the original, I can't use "yum localupdate" to install them. Is > there a clean way to do this with yum, or do I just need to remove > the old packages and then install the new ones?Is there a reason you didn't bump the Release: header in the .spec file? That's the typical mechanism for declaring one binary rpm newer than another. -- Paul Heinlein <> heinlein at madboa.com <> www.madboa.com
On Thu, 13 Apr 2006, Bowie Bailey wrote:> I have some rpm packages that I built locally. After installing and > configuring them, I found a problem that required a source patch. I > have rebuilt the rpms, but since they have the same version number as > the original, I can't use "yum localupdate" to install them. Is there > a clean way to do this with yum, or do I just need to remove the old > packages and then install the new ones?Remove and reinstall. Or rebuild the packages with an updated release field. ------------------------------------------------------------------------ Jim Wildman, CISSP, RHCE jim at rossberry.com http://www.rossberry.com "Society in every state is a blessing, but Government, even in its best state, is a necessary evil; in its worst state, an intolerable one." Thomas Paine
--- Bowie Bailey <Bowie_Bailey at BUC.com> wrote:> I have some rpm packages that I built locally. > After installing and > configuring them, I found a problem that required a > source patch. I > have rebuilt the rpms, but since they have the same > version number as > the original, I can't use "yum localupdate" to > install them. Is there > a clean way to do this with yum, or do I just need > to remove the old > packages and then install the new ones? > > -- > BowieWhen building your own custom rpms it is best to do them "properly". 6 months down the road you may have made forgotten what you did. For example the SRPM for Fedora for samba from samba.org :- $ rpm -q --changelog samba the changes are in cvs Pretty useful that is when you are trying to discover the patches/bugs that were fixed? You get the drift. Or for example reading about the sendmail exploit and wanting to see if you are covered :- $ rpm -q --changelog sendmail | grep CVE zilch __________________________________________________ Improve the mailing list by performing a simple search before posting and reading the FAQ/etiquette. Protect the integrity of your installation with the yum plugins. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Paul Heinlein wrote:> On Thu, 13 Apr 2006, Bowie Bailey wrote: > > > I have some rpm packages that I built locally. After installing and > > configuring them, I found a problem that required a source patch. > > I have rebuilt the rpms, but since they have the same version number > > as the original, I can't use "yum localupdate" to install them. Is > > there a clean way to do this with yum, or do I just need to remove > > the old packages and then install the new ones? > > Is there a reason you didn't bump the Release: header in the .spec > file? That's the typical mechanism for declaring one binary rpm newer > than another.Because I don't know anything about building packages beyond running "rpmbuild". All I did was download the tarfile, extract it, patch it, retar it, and run rpmbuild. Is the Release: header the only thing I need to change? I looked into that briefly, but I wasn't sure if there was anything else that would need to be updated. -- Bowie