Introduction
In this tutorial, we'll go over the steps required to install omnibus-ruby on Elementary OS. omnibus-ruby is a packaged Ruby environment designed to create self-contained, omnibus Ruby packages. We'll be installing omnibus-ruby from the source code available on https://github.com/chef/omnibus.
Prerequisites
- A system running Elementary OS
- Git installed on your system
- Ruby installed on your system
- Basic knowledge of command-line tools
Installing omnibus-ruby
Open the terminal by pressing
Ctrl + Alt + t.Clone the
omnibus-rubyrepository:git clone https://github.com/chef/omnibus.gitChange directory to the cloned repository:
cd omnibusInstall bundler:
gem install bundlerInstall the required Ruby Gems:
bundle installBuild the omnibus installer:
bundle exec omnibus build omnibus-rubyWait for the build to complete. Once the build is done, the package will be available in the
pkgdirectory.Install the
omnibus-rubypackage:sudo dpkg -i pkg/omnibus-ruby*.debVerify the installation by checking the version of
omnibus-ruby:omnibus-ruby --versionThis should output the version of
omnibus-rubyyou just installed.
Congratulations, you have successfully installed omnibus-ruby on Elementary OS! You can now use it to create self-contained, omnibus Ruby packages.