For Ubuntu (>= 17.04)
Installing pre-compiled Caffe
Everything including caffe itself is packaged in 17.04 and higher versions. To install pre-compiled Caffe package, just do it by
sudo apt install caffe-cpu
for CPU-only version, or
sudo apt install caffe-cuda
for CUDA version. Note, the cuda version may break if your NVIDIA driver and CUDA toolkit are not installed by APT.
Package status of CPU-only version
Package status of CUDA version
Installing Caffe from sourc...