Blender 2.8 is currently in beta stage shipping with many new features, like Eevee real-time render engine, refreshed interface and here is how to source compile it on any Linux based operating system.
First, create a directory, where we will store the cloned source code and compile it.
Get Git and Development Tools
sudo apt-get install git build-essential
sudo dnf install git
sudo dnf -y groupinstall "Development Toos"
sudo yum install git
sudo yum -y groupinstall "Development Toos"
blender-git as current directory
Cloning blender2.8 branch to the set directory from git.blender.org
git clone https://git.blender.org/blender.git -b blender2.8
git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master
Install all the required dependencies to compile Blender.
After all dependencies are installed you can compile it
This should take some time, the process speed depends on your hardware specification.
Exiting blender and going to the parent directory
Launching Blender executable
Re-compiling new version
make update && make