# How to install plugin from \*.tar.gz or \*.zip?

**URL:** <https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870>\
**Category:** Rails\
**Created:** [July 12, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870 "2008-07-12T12:46:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![makoto\_kuwata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Post date:** [July 12, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870/1 "2008-07-12T12:46:41Z")

</div>

Hi,  
I have a question about Rails plugin distribution.

Is it possible to install plugin from .tar.gz. or .zip file?  
For example:

ruby script/plugin install [http://example.com/public/foobar.tar.gz](http://example.com/public/foobar.tar.gz)

Is it possible?

# Installation from Subversion or Git repository is not what I want

# because I want to _release_ my plugin.

–  
makoto kuwata

---

<div class="post-metadata">

**Author:** ![makoto\_kuwata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Post date:** [July 12, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870/2 "2008-07-12T13:32:02Z")

</div>

makoto kuwata wrote:

> Hi,  
> I have a question about Rails plugin distribution.
> 
> Is it possible to install plugin from .tar.gz. or .zip file?  
> For example:
> 
> ruby script/plugin install [http://example.com/public/foobar.tar.gz](http://example.com/public/foobar.tar.gz)
> 
> Is it possible?
> 
> # Installation from Subversion or Git repository is not what I want
> 
> # because I want to _release_ my plugin.
> 
> –  
> makoto kuwata

I don’t quite understand what you mean by “release”.  
But, I do really like the,  
ruby script/plugin install git://github.com/matthewrudy/rudeq.git

otherwise, I looked at the code recently,  
and it seemed to assume it was an svn url, unless it matches /git/  
so, I don’t think there’s a tar.gz solution at the moment…

I imagine you could write one.

But I dont get the reason not to put it on github  
(or somewhere equivalent)  
unless you want to keep control of the source,  
but you say you want to “release” it…

---

<div class="post-metadata">

**Author:** ![makoto\_kuwata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Post date:** [July 12, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870/3 "2008-07-12T14:38:59Z")

</div>

Matthew R. Jacobs [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I don’t quite understand what you mean by “release”.  
> But, I do really like the,  
> ruby script/plugin install git://github.com/matthewrudy/rudeq.git

Yes, I know it,  
but repository is always opened and everyone must install my plugin  
from current repository which is not always stable because it is  
under development.

I want to specify stable version by release.

–  
regards,  
makoto kuwata

---

<div class="post-metadata">

**Author:** ![makoto\_kuwata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Post date:** [July 12, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870/4 "2008-07-12T22:05:28Z")

</div>

On 12 Jul 2008, at 13:38, makoto kuwata wrote:

> but repository is always opened and everyone must install my plugin  
> from current repository which is not always stable because it is  
> under development.

Well you can always give people the url to the stable version.  
that said script/plugin install doesn’t really do anything other than  
copy the plugin into vendor/plugins and run install.rb if it exists. A  
lot of plugins have no install .rb so ‘installing’ the plugin just  
means unzipping it in the right place.

Fred

---

<div class="post-metadata">

**Author:** ![makoto\_kuwata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Post date:** [July 14, 2008, 1:28pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870/5 "2008-07-14T13:28:16Z")

</div>

makoto kuwata wrote:

> Matthew R. Jacobs [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > I don’t quite understand what you mean by “release”.  
> > But, I do really like the,  
> > ï¿½ ruby script/plugin install git://github.com/matthewrudy/rudeq.git
> 
> Yes, I know it,  
> but repository is always opened and everyone must install my plugin  
> from current repository which is not always stable because it is  
> under development.
> 
> I want to specify stable version by release.
> 
> –  
> regards,  
> makoto kuwata

looks like this is in trunk as of today

[http://rails.lighthouseapp.com/projects/8994/tickets/257-add-branch-option-for-script-plugin-install-with-git#ticket-257-11](http://rails.lighthouseapp.com/projects/8994/tickets/257-add-branch-option-for-script-plugin-install-with-git#ticket-257-11)

ruby script/plugin install --revision ‘tag 1.1.4’  
git://github.com/dchelimsky/rspec.git

---

<div class="post-metadata">

**Author:** ![makoto\_kuwata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Post date:** [July 14, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870/6 "2008-07-14T13:39:04Z")

</div>

Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Well you can always give people the url to the stable version.  
> that said script/plugininstalldoesn’t really do anything other than  
> copy theplugininto vendor/plugins and runinstall.rb if it exists. A  
> lot of plugins have noinstall.rb so ‘installing’ thepluginjust  
> means unzipping it in the right place.
> 
> Fred

OK, I’ll prepare the url of stable version.  
Thank you very much.

–  
regards,  
makoto kuwata

---

<div class="post-metadata">

**Author:** ![makoto\_kuwata](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Post date:** [July 14, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/how-to-install-plugin-from-tar-gz-or-zip/142870/7 "2008-07-14T14:26:20Z")

</div>

makoto kuwata wrote:

> Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Well you can always give people the url to the stable version.  
> > that said script/plugininstalldoesn’t really do anything other than ï¿½  
> > copy theplugininto vendor/plugins and runinstall.rb if it exists. A ï¿½  
> > lot of plugins have noinstall.rb so ‘installing’ thepluginjust ï¿½  
> > means unzipping it in the right place.
> > 
> > Fred
> 
> OK, I’ll prepare the url of stable version.  
> Thank you very much.
> 
> –  
> regards,  
> makoto kuwata

think you’ll have to wait for Rails 2.2, though  
🙂
