[ale] how to slurp the rpm juice

Jim Kinney jim.kinney at gmail.com
Fri May 31 10:22:51 EDT 2013


You are correct. Deps in rpms will call warning on parent removal.
Child package that modifies parent config is trickier. It can modify iff
parent config pristine. Otherwise no. Child removal must respect that
config.rpmold and config.rpmnew files. Also a y package removal that finds
a non-pristine file can't remove that file. So a manually placed binary
can't be removed with rpm -e unless checksum matches.
On May 31, 2013 10:06 AM, "Narahari 'n' Savitha" <savithari at gmail.com>
wrote:

> Thank You James Kenny:
>
> What about the case where
>
> I build the Tomcat version 7.0.40 vanilla version from the binary versions
> on Apache website and make an rpm from that called myspecial-tomcat7040.rpm
>
> I then create the delta list of files and then make a tar from that.  I
> create a rpm from that tar and then call it my special-tomcat-addons.rpm
> with dep on my special-tomcat7040.rpm
>
> The question is some of my files overlay the files that the vanilla
> version provides.  So is it my resp then to backup, say catalina.sh from
> vanilla and restore it upon uninstall of my rpm ?
>
> What about if some one decides to uninstall my special-tomcat7040.rpm aka
>  the parent rpm, will it uninstall the child rpm automatically or will tell
> user to first uninstall child rpm and then the parent rpm ?
>
> -Narahari
>
>
> On Fri, May 31, 2013 at 12:44 AM, Jim Kinney <jim.kinney at gmail.com> wrote:
>
>> Having created rpms from scratch a few times, what you are wanting to do
>> is feasible but will bite you later.
>>
>> Better course of action is to either use the tomcat rpm from your distro
>> then create a tarball of the extra stuff. If you absolutely must use a
>> version of tomcat newer than what is available from any rpm for your
>> distro, use the tomcat tarball from the apache source directly and be sure
>> to bothe remove any rpm version of tomcat and block tomcat from rpm install
>> or update in the configuration file of zypper. I don't know how to block it
>> in SuSE but in RHEL it's done in the /etc/yum.conf file for global repos or
>> blocked specifically by repo in the /etc/yum.repos.d/foo.repo file by
>> adding a line
>>
>> exclude=tomcat
>>
>> If you absolutely MUST use an rpm, get the src.rpm for the most recent
>> version of tomcat, replace the included tomcat with your source files, hack
>> the spec file to include your post-new-tomcat tarball and change the name
>> of the package to something like special-tomcat-7.0 so you will no longer
>> get a naming conflict. Again, block tomcat as above.
>>
>> Welcome to the world of cutting-edge sysadmin :-)  I have found that most
>> times, a little bit of saying "NO!" to using an totally new, unpackaged
>> binary generally results in the requester giving an honest evaluation of
>> what they think they need in terms of capability so the sysadmin can show
>> them the distro package provides enough of their wants to work. Being
>> forced to jump far ahead of the distro in application version also is a
>> good reason to evaluate using a different distro. RHEL is often far off the
>> bleeding edge of some major packages (mainly those with many dense,
>> overlapping dependencies - tomcat, java and apache are prime examples).
>> When I've needed bleeding edge versions, I use a Fedora distro and have
>> pulled in rawhide packages with the understanding that rawhide is not as
>> fully tested/matured as release packages.
>>
>>
>>
>>
>> On Thu, May 30, 2013 at 11:29 PM, Narahari 'n' Savitha <
>> savithari at gmail.com> wrote:
>>
>>> Chuck:
>>>
>>> Thank You for those answers.
>>>
>>> Now SLES is at Tomcat 6.  However there are rpm's and NOT zypper
>>> packages for Tomcat 7 from 3rd party sites, is that right ?
>>>
>>> rpm's can cause rpm hell but zypper packages are not available for
>>> downloads then ?
>>>
>>> can u not tell SLES, here the rpm for tomcat 7 which needs java so go
>>> fetch that rpm and install that as well ?  yum -i shud do that right ?
>>>
>>> -Narahari
>>>
>>>
>>> On Thu, May 30, 2013 at 10:55 PM, Chuck Payne <terrorpup at gmail.com>wrote:
>>>
>>>> Narahari,
>>>>
>>>>
>>>> With SuSE it is best to use Zypper to install to install the app. Yast
>>>> is good too, but zypper is best.  The only time I won't use Zypper
>>>> when you are installing something that in  one of the repos, such as
>>>> Skype or Google Earth.
>>>>
>>>> Example of how to use yast to install rpm
>>>>
>>>> http://opensuse.terrorpup.net/?p=290
>>>>
>>>>
>>>> Tomcat for SLE is at 6, like RHEL. If you are wanting to use Tomcat 7,
>>>> you will have to down load and install yourself, but keep in mind,
>>>> it's not support, because it not in the repo, but there are a enough
>>>> website on how to install.
>>>>
>>>> One to keep in mind. Once you step out the repo and go your own, you
>>>> might in dependencies hell. Worse that being in Limbo.
>>>>
>>>> http://www.rosehosting.com/blog/how-to-install-tomcat-7-jdk-7/
>>>>
>>>> On Thu, May 30, 2013 at 10:32 PM, Scott McBrien <smcbrien at gmail.com>
>>>> wrote:
>>>> > There is such a thing as a drpm or Delta RPM, but don't do it.  Just
>>>> repackage the vanilla plus your changes into a full rpm.  I would urge you,
>>>> however, to go with the SLES tomcat and add an additional rpm with your
>>>> changes.  That way you can continue to get updates and the like from SUSE
>>>> and only have to maintain your extra bits.
>>>> >
>>>> > -Scott
>>>> >
>>>> > On May 30, 2013, at 10:20 PM, "Narahari 'n' Savitha" <
>>>> savithari at gmail.com> wrote:
>>>> >
>>>> >> Friends:
>>>> >>
>>>> >> On SLES software is installed using rpm.  But then you can install
>>>> the rpm with
>>>> >> rpm -iv or yast -i or even zypper (I am not that smart, answer is
>>>> courtesy Allen)
>>>> >>
>>>> >> My requirement is this
>>>> >>
>>>> >> There is the base tomcat rpm provided on the web which is vanilla
>>>> version.
>>>> >>
>>>> >> We have gone ahead and customized the tomcat with
>>>> >>
>>>> >> more jars in the  lib folder in addition to the existing jars from
>>>> vanilla version
>>>> >> added thirdLibs folder under TOMCAT_HOME (/opt/apache-tomcat-7.0.37)
>>>> >> added axisLib under TOMCAT_HOME
>>>> >> added wsLib under TOMCAT_HOME
>>>> >> modified the .sh file under the bin folder
>>>> >> modified the props and xml files under the conf folder
>>>> >>
>>>> >> I am to build an rpm only of the DELTAS.
>>>> >>
>>>> >> Determining the DELTAS is itself a task-at-hand which I will have to
>>>> resolve some how.
>>>> >>
>>>> >> Once I determine that I plan to .tar.gz that and create an rpm from
>>>> it.
>>>> >>
>>>> >> creating rpm's is a diff question which I am already working on.
>>>> >>
>>>> >> Is there a higher level packaging than rpm  or that rpm is it ?
>>>> >>
>>>> >>
>>>> >> Thank you for your time and attention.
>>>> >>
>>>> >> -N
>>>> >> _______________________________________________
>>>> >> Ale mailing list
>>>> >> Ale at ale.org
>>>> >> http://mail.ale.org/mailman/listinfo/ale
>>>> >> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>> >> http://mail.ale.org/mailman/listinfo
>>>> >
>>>> > _______________________________________________
>>>> > Ale mailing list
>>>> > Ale at ale.org
>>>> > http://mail.ale.org/mailman/listinfo/ale
>>>> > See JOBS, ANNOUNCE and SCHOOLS lists at
>>>> > http://mail.ale.org/mailman/listinfo
>>>>
>>>>
>>>>
>>>> --
>>>> Terror PUP a.k.a
>>>> Chuck "PUP" Payne
>>>>
>>>> (678) 636-9678
>>>> -----------------------------------------
>>>> Discover it! Enjoy it! Share it! openSUSE Linux.
>>>> -----------------------------------------
>>>> openSUSE -- en.opensuse.org/User:Terrorpup
>>>> openSUSE Ambassador/openSUSE Member
>>>> Community Manager -- Southeast Linux Foundation (SELF)
>>>> skype,twiiter,identica,friendfeed -- terrorpup
>>>> freenode(irc) --terrorpup/lupinstein
>>>> Register Linux Userid: 155363
>>>>
>>>> Have you tried SUSE Studio? Need to create a Live CD,  an app you want
>>>> to package and distribute , or create your own linux distro. Give SUSE
>>>> Studio a try. www.susestudio.com.
>>>> See you at Southeast Linux Fest, June 7-9, 2013 in Charlotte, NC.
>>>> www.southeastlinuxfest.org
>>>>
>>>> _______________________________________________
>>>> Ale mailing list
>>>> Ale at ale.org
>>>> http://mail.ale.org/mailman/listinfo/ale
>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>> http://mail.ale.org/mailman/listinfo
>>>>
>>>
>>>
>>> _______________________________________________
>>> Ale mailing list
>>> Ale at ale.org
>>> http://mail.ale.org/mailman/listinfo/ale
>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> http://mail.ale.org/mailman/listinfo
>>>
>>>
>>
>>
>> --
>> --
>> James P. Kinney III
>> *
>> Every time you stop a school, you will have to build a jail. What you
>> gain at one end you lose at the other. It's like feeding a dog on his own
>> tail. It won't fatten the dog.
>> - Speech 11/23/1900 Mark Twain
>>
>> http://electjimkinney.org
>> http://heretothereideas.blogspot.com/
>>  *
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130531/88442726/attachment-0001.html>


More information about the Ale mailing list