Packaged releases of Cassandra are available for each stable release. Both rpm and dpkg packages are currently supported through the yum and apt package management tools.
A YUM RPM repository with packaged cassandra releases is available at http://rpm.riptano.com.
The following will add the Riptano repository to your repository list:
wget http://rpm.riptano.com/EL/6/x86_64/riptano-release-5-1.el6.noarch.rpm rpm -i riptano-release-5-1.el6.noarch.rpm
You can then install Cassandra:
yum install cassandra
The cassandra package creates a cassandra user and places an init script in /etc/init.d/cassandra. Note: run levels are not set by the package.
Packages to install on Debian or Debian derivatives (such as Ubuntu) are made available by the Apache Software Foundation.
To add the Cassandra package directories to your list of sources, add the following lines to /etc/apt/sources.list:
deb http://www.apache.org/dist/cassandra/debian unstable main deb-src http://www.apache.org/dist/cassandra/debian unstable main
Before you can use the reposity, you need to add the key to your list of keys:
wget http://www.apache.org/dist/cassandra/KEYS -O- | sudo apt-key add -
sudo apt-get update
Once imported, you can install Cassandra as you would any other package:
sudo apt-get install cassandra