Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-28-2012, 05:02 AM   #1
LQ Newbie
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
Update RPM package with changed Names from old to new Package


We've built our own tomcat RPM Packages. During the build time, the name of the package has changed:

Old: tomcat6_a-6.0.35-1.6.x86_64.rpm
New: tomcat6_b-6.0.35-1.7.x86_64.rpm

Is it possible to tell the new RPM Package tomcat6_b, that it is an update for Package tomcat6_a?

I'd like to use:
Installed: tomcat6_a-6.0.35-1.6.x86_64.rpm
Update: rpm -Uhv tomcat6_b-6.0.35-1.7.x86_64.rpm
after this:
installed tomcat6_b-6.0.35-1.7.x86_64.rpm
not installed: tomcat6_a-6.0.35-1.6.x86_64.rpm

Can this be done with Provides or any othe line in spec file?
Or ist ist only possible to do this with

save config Files
rpm -e tomcat6_a-6.0.35-1.6.x86_64.rpm
rpm -ihv tomcat6_b-6.0.35-1.7.x86_64.rpm
copy saved config files

Thanks for your help!
Old 11-28-2012, 07:30 AM   #2
Registered: May 2001
Posts: 29,359
Blog Entries: 55

Rep: Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546
Originally Posted by bonsei View Post
Can this be done with Provides or any othe line in spec file?
Please do not force RPM to mask basic RPM misunderstanding, SNAFUs or bad choices. As you notice fscking around with %{name} leads to nothing useful or necessary. If you want to distinguish between official, trusted packages and local mods use some %{release} tag that doesn't mess with %{name} or ${version}

Originally Posted by bonsei View Post
save config Files
Check the RPM documentation for "config,noreplace".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File conflict with the old installed rpm package while installing new package sr164w Linux - Newbie 3 12-15-2011 11:43 AM
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 12:51 PM
Device changed names after Kernel Update itz2000 Linux - Newbie 1 12-29-2006 02:12 PM
Removing an RPM package from within another RPM package jimwelc Linux - Software 7 05-12-2006 02:13 PM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration