# Machine sync

**URL:** <https://www.ruby-forum.com/t/machine-sync/65512>\
**Category:** Ruby\
**Created:** [August 18, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/machine-sync/65512 "2006-08-18T20:57:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/67e7ee/32.png) [@hakon](https://www.ruby-forum.com/u/hakon)\
**Post date:** [August 18, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/machine-sync/65512/1 "2006-08-18T20:57:15Z")

</div>

Hi,

I have two machines that I would like to make sure have identical ruby  
environments. Is it sufficient just to sync the /usr/local/lib/ruby  
directories and that will make sure the same gems, etc. are installed on  
each? Are there any other locations where settings, etc. are stored?

Thanks,

Carl

---

<div class="post-metadata">

**Author:** ![hakon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/67e7ee/32.png) [@hakon](https://www.ruby-forum.com/u/hakon)\
**Post date:** [August 20, 2006, 12:11am UTC](https://www.ruby-forum.com/t/machine-sync/65512/2 "2006-08-20T00:11:54Z")

</div>

On 8/18/06, Carl S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I have two machines that I would like to make sure have identical ruby  
> environments. Is it sufficient just to sync the /usr/local/lib/ruby  
> directories and that will make sure the same gems, etc. are installed on  
> each? Are there any other locations where settings, etc. are stored?

I don’t think so - I have quite a lot of stuff in /usr/lib/ruby. What  
OS are you running on?  
If something Debianesque, you might want to:  
dpkg -L ruby  
dpkg -L libruby1.8

- assuming you used apt-get to install it. Then again, since you have  
ruby in /usr/local, I suppose you compiled it. If that is the case,  
you can use something like “checkinstall” to track where all the files  
go when you run “make install”.

Here’s an example:  
[http://www.lesismore.co.za/eclectica/show/CheckInstall](http://www.lesismore.co.za/eclectica/show/CheckInstall)

Checkinstall will create a .deb for easy installation and removal, and  
once so installed you can run dpkg as above to see where everything  
went.

Les
