LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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


Hello,

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!
Thomas
 
Old 11-28-2012, 07:30 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
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}


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


Reply


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


All times are GMT -5. The time now is 07:34 PM.

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