1. Install Ceph Packages
1.1. Install cephadm
$ sudo apt install cephadm
This one is too old to have a working version command. Use a new one in ceph’s own repository.
Add ceph repository:
$ sudo cephadm add-repo --release squid
Installing repo GPG key from https://download.ceph.com/keys/release.gpg...
Installing repo file at /etc/apt/sources.list.d/ceph.list...
Updating package list...
Completed adding repo.
Tip
The repo can be removed by:
$ sudo cephadm rm-repo
Removing repo GPG key /etc/apt/trusted.gpg.d/ceph.release.gpg...
Removing repo at /etc/apt/sources.list.d/ceph.list...
Then update cephadm itself:
$ sudo cephadm install
Installing packages ['cephadm']...
Now show the version:
$ cephadm version
cephadm version 19.2.3 (c92aebb279828e9c3c1f5d24613efca272649e62) squid (stable)
1.2. Install ceph client
$ sudo cephadm install ceph-common
Installing packages ['ceph-common']...
Show ceph client version:
$ ceph --version
ceph version 19.2.3 (c92aebb279828e9c3c1f5d24613efca272649e62) squid (stable)
You can also use the package manager to install it from the repository for your platform:
$ sudo apt install ceph-common
Show ceph client version:
$ ceph --version
ceph version 17.2.9 (69bf48f20731a4b0d742613f6c6335ccb54dd217) quincy (stable)