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?
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.
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@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@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?
-- Bowie
When 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