# Install/Update scripts in ruby gems

**URL:** <https://www.ruby-forum.com/t/install-update-scripts-in-ruby-gems/182395>\
**Category:** Ruby\
**Created:** [January 27, 2010, 2:27pm UTC](https://www.ruby-forum.com/t/install-update-scripts-in-ruby-gems/182395 "2010-01-27T14:27:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatnack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b77776/32.png) [@fatnack](https://www.ruby-forum.com/u/fatnack)\
**Post date:** [January 27, 2010, 2:27pm UTC](https://www.ruby-forum.com/t/install-update-scripts-in-ruby-gems/182395/1 "2010-01-27T14:27:48Z")

</div>

Hello There

I’d like to create a ruby gem package (currently using newgem) which  
works as a linux tool. It’s configuration should be located in /etc/ and  
so on. So I need to include a setup-script into the gem, which generates  
initial configuration files and stuff. And, of course, update scripts  
which migrate config files from a specific version to another.

Do you know any approach how this can be done in a simple way? I’d like  
to have something like rails migrations where i can specify an update  
task from 0.0.1-\>0.0.2 (for example) which will be executed when using  
‘gem install’.

Thank’s in advance  
fatnack
