<div class="gmail_quote">On Tue, Jul 28, 2009 at 10:42 PM, devzero2000 <span dir="ltr">&lt;<a href="mailto:pinto.elia@gmail.com">pinto.elia@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Tue, Jul 28, 2009 at 8:05 PM, Vinay Kalkoti <span dir="ltr">&lt;<a href="mailto:kalkoti.vinay@gmail.com" target="_blank">kalkoti.vinay@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
<br>
I have a tar file which I need to untar and run a script which is<br>
inside that. Is is possible to create an RPM package which will copy<br>
this tar file to a location, untar it and run the script when I<br>
install the RPM ?<br>
</blockquote></div><div><br>Sure, open the tar in %install where do you  want and in %post execute your script. But if you want to this why use a </div></div></blockquote><div>if you want to do this. sorry <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div>package manager in first place ? What do you do in the script and with the tar file are hidden to the rpm, the content are no listed in %files section, so you have no value added from using it (RPM). Perhaps I have not very understood well what you want to do, but at me seems similar to what someone want to do to packaging some proprietary sw : in the spec  they install the original software somewhere, and list it in %files, and in %post install
call the installation script, that probably install the sw in other place. Result: rpm  cannot know which files
you have installed, if they are of configuration or not, the dependencies
probably. In synthesis this a rpm that it is not a rpm, because a package manager is different from a tar : it contain metadata,Hints : what happens if you want remove a package built in this way ?<br><br>hth<br></div><div class="im">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks,<br>
Vinay<br>
_______________________________________________<br>
Rpm-list mailing list<br>
<a href="mailto:Rpm-list@lists.rpm.org" target="_blank">Rpm-list@lists.rpm.org</a><br>
<a href="http://lists.rpm.org/mailman/listinfo/rpm-list" target="_blank">http://lists.rpm.org/mailman/listinfo/rpm-list</a><br>
</blockquote></div></div><br>
</blockquote></div><br>