Setting up your Apt Repository
Add repository. Create a new file /etc/apt/sources.list.d/cloudera.list with the following contents, taking care to replace DISTRO with the name of your distribution (find out by running lsb_release -c)
deb http://archive.cloudera.com/debian DISTRO-stable contrib deb-src http://archive.cloudera.com/debian DISTRO-stable contrib
deb http://archive.cloudera.com/debian DISTRO-testing contrib deb-src http://archive.cloudera.com/debian DISTRO-testing contrib
Add repository key. (optional) Add the Cloudera Public GPG Key to your repository by executing the following command:
curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -
This allows you to verify that you are downloading genuine packages.
Update APT package index. Simply run:
sudo apt-get update
Find and install packages. You may now find and install packages from the Cloudera repository using your favorite APT package manager (e.g apt-get, aptitude, or dselect). For example:
apt-cache search hadoop sudo apt-get install hadoop
Setting up Yum access
Add the Yum repository of your choice. Download the cloudera-stable.repo or cloudera-testing.repo file and drop it ito your /etc/yum.repos.d/ directory.
Update the Yum package index. Simple run:
sudo yum update yum
Find and install packages. For example:
yum search hadoop yum install hadoop-0.20