Skip to content

Commit 7ad1342

Browse files
authored
Merge pull request BVLC#5753 from CDLuminate/docs-update-deb-ub
[docs] update apt installation guide for Debian and Ubuntu
2 parents 516c135 + eedf7c1 commit 7ad1342

File tree

2 files changed

+46
-16
lines changed

2 files changed

+46
-16
lines changed

docs/install_apt.md

+32
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,38 @@ title: "Installation: Ubuntu"
44

55
# Ubuntu Installation
66

7+
### For Ubuntu (>= 17.04)
8+
9+
**Installing pre-compiled Caffe**
10+
11+
Everything including caffe itself is packaged in 17.04 and higher versions.
12+
To install pre-compiled Caffe package, just do it by
13+
14+
sudo apt install caffe-cpu
15+
16+
for CPU-only version, or
17+
18+
sudo apt install caffe-cuda
19+
20+
for CUDA version. Note, the cuda version may break if your NVIDIA driver
21+
and CUDA toolkit are not installed by APT.
22+
23+
[Package status of CPU-only version](https://launchpad.net/ubuntu/+source/caffe)
24+
25+
[Package status of CUDA version](https://launchpad.net/ubuntu/+source/caffe-contrib)
26+
27+
**Installing Caffe from source**
28+
29+
We may install the dependencies by merely one line
30+
31+
sudo apt build-dep caffe-cpu # dependencies for CPU-only version
32+
sudo apt build-dep caffe-cuda # dependencies for CUDA version
33+
34+
It requires a `deb-src` line in your `sources.list`.
35+
Continue with [compilation](installation.html#compilation).
36+
37+
### For Ubuntu (\< 17.04)
38+
739
**General dependencies**
840

941
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler

docs/install_apt_debian.md

+14-16
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,28 @@ Caffe packages are available for several Debian versions, as shown in the
88
following chart:
99

1010
```
11-
Your Distro | CPU_ONLY | CUDA | Alias
11+
Your Distro | CPU_ONLY | CUDA | Codename
1212
----------------+------------+--------+-------------------
13-
Debian/stable | ✘ | ✘ | Debian Jessie
14-
Debian/testing | ✔ | ✔ | Debian Stretch/Sid
15-
Debian/unstable | ✔ | ✔ | Debian Sid
13+
Debian/oldstable| ✘ | ✘ | Jessie (8.0)
14+
Debian/stable | ✔ | ✔ | Stretch (9.0)
15+
Debian/testing | ✔ | ✔ | Buster
16+
Debian/unstable | ✔ | ✔ | Buster
1617
```
1718

1819
* `` You should take a look at [Ubuntu installation instruction](install_apt.html).
1920

2021
* `` You can install caffe with a single command line following this guide.
2122

22-
Last update: 2017-02-01
23+
* [Package status of CPU-only version](https://tracker.debian.org/pkg/caffe)
24+
25+
* [Package status of CUDA version](https://tracker.debian.org/pkg/caffe-contrib)
26+
27+
Last update: 2017-07-08
2328

2429
## Binary installation with APT
2530

26-
Apart from the installation methods based on source, Debian/unstable
27-
and Debian/testing users can install pre-compiled Caffe packages from
28-
the official archive.
31+
Apart from the installation methods based on source, Debian users can install
32+
pre-compiled Caffe packages from the official archive with APT.
2933

3034
Make sure that your `/etc/apt/sources.list` contains `contrib` and `non-free`
3135
sections if you want to install the CUDA version, for instance:
@@ -44,7 +48,8 @@ $ caffe # command line interface wo
4448
$ python3 -c 'import caffe; print(caffe.__path__)' # python3 interface working
4549
```
4650

47-
These Caffe packages should work for you out of box.
51+
These Caffe packages should work for you out of box. However, the CUDA version
52+
may break if your NVIDIA driver and CUDA toolkit are not installed with APT.
4853

4954
#### Customizing caffe packages
5055

@@ -156,10 +161,3 @@ and hack the packaging scripts, then build your customized package.
156161
$ sudo apt install caffe-doc
157162
$ dpkg -L caffe-doc
158163
```
159-
160-
* Where can I find the Debian package status?
161-
162-
```
163-
https://tracker.debian.org/pkg/caffe (for the CPU_ONLY version)
164-
https://tracker.debian.org/pkg/caffe-contrib (for the CUDA version)
165-
```

0 commit comments

Comments
 (0)