Get Rex
You can install Rex with a simple one-liner
$ curl -L get.rexify.org | perl - --sudo -n Rex
BSD and Linux
Rex is also available as a package for many major distributions. Just choose your distribution and follow the steps shown.
For Quantal (12.10)
echo 'deb http://rex.linux-files.org/ubuntu/ quantal rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
For Precise (12.04)
echo 'deb http://rex.linux-files.org/ubuntu/ precise rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
For Oneiric (11.10)
echo 'deb http://rex.linux-files.org/ubuntu/ oneiric rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
For Natty (11.04)
echo 'deb http://rex.linux-files.org/ubuntu/ natty rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
For Lucid (10.04)
echo 'deb http://rex.linux-files.org/ubuntu/ lucid rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
For Wheezy
echo 'deb http://rex.linux-files.org/debian/ wheezy rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
For Squeeze
echo 'deb http://rex.linux-files.org/debian/ squeeze rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
For Lenny
For Lenny we have stopped building new packages since 0.31.
echo 'deb http://rex.linux-files.org/debian/ lenny rex' >> /etc/apt/sources.list
wget -O - http://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex
Installation with emerge
Thanks to Bonsaikitten Rex is now available in the official Gentoo Portage Repository.
emerge -av app-admin/rex
CentOS 6
rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO.CENTOS6
cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=http://rex.linux-files.org/CentOS/\$releasever/rex/\$basearch/
enabled=1
EOF
yum install rex
CentOS 5
rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO.CENTOS5
cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=http://rex.linux-files.org/CentOS/\$releasever/rex/\$basearch/
enabled=1
EOF
yum install rex
For 12.3
rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
zypper addrepo -t rpm-md -f -n rex http://rex.linux-files.org/OpenSuSE/12.3/x86_64/ rex
zypper install rex
For 12.1
rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
zypper addrepo -t rpm-md -f -n rex http://rex.linux-files.org/OpenSuSE/12.1/x86_64/ rex
zypper install rex
For 11.4
rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
zypper addrepo -t rpm-md -f -n rex http://rex.linux-files.org/OpenSuSE/11.4/x86_64/ rex
zypper install rex
Mageia 1
rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
urpmi.addmedia rex http://rex.linux-files.org/Mageia/1/x86_64/
urpmi rex
Fedora 15 - 18
rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=http://rex.linux-files.org/Fedora/Core/\$releasever/rex/\$basearch/
enabled=1
EOF
yum install rex
Installation with ports
Thanks to Sam Cassiba Rex is now available in the official FreeBSD Ports collection.
cd /usr/ports/sysutils/p5-Rex
make install clean
Apple Mac OS X
To install Rex on Mac OSX you have to install libssh2 first. You can do this with MacPorts or with Homebrew.
We recommend using MacPorts. First you need to install XCode. After you've installed it you'll find a package for your system here.
If you're using homebrew we recommend to install a custom perl with Perlbrew.
Installation instructions for MacPorts:
sudo port install libssh2 perl5
curl -L get.rexify.org | perl - --sudo -n Rex
Microsoft Windows
Tested with Windows Vista and Windows 7 (64bit) and Strawberry Perl 5.x
Start a CMD window and type:
cpanm Rex
If you want to use Rex/Boxes you need to add the installation path of VirtualBox to your PATH environment variable. The default installation path is C:\Program Files\Oracle\VirtualBox. If you need instructions how to do that you can read this article on ComputerHope.
Other / From Source
If you want to download the latest sources from Github you can do it this way. The master branch is the current latest stable version. Every development is done in its own version branch.
git clone https://github.com/krimdomu/Rex.git
cd Rex
perl Makefile.PL
make
make test
make install
You can also use the CPAN shell to install Rex. This will download the latest release form CPAN.
perl -MCPAN -eshell
cpan[1]> install Rex
All logos are registered trademarks of their respective companies and are not affiliated with and do not necessarily indicate that they either sponsor or endorse the services of rexify.org (and Rex).