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.
Due to licensing restrictions, the packaged releases use OpenJDK instead of Sun JDK. After you install a packaged release, DataStax recommends installing the most recently released version of the Sun JVM. Versions earlier than 1.6.0_19 are specifically not recommended.
It is also recommended to install JNA, as described in the Getting Started Tutorial.
A YUM RPM repository with packaged cassandra releases is available at http://rpm.datastax.com.
The following will add the Riptano repository to your repository list:
wget http://rpm.datastax.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 apache-cassandra
The cassandra package creates a cassandra user and places an init script in /etc/init.d/cassandra. 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 repository, 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