How To Install ceph on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ceph
on Ubuntu 20.04.
What is ceph
ceph is:
Ceph is a massively scalable, open-source, distributed storage system that runs on commodity hardware and delivers object, block and file system storage.
Package: ceph Architecture: amd64 Version: 15.2.12-0ubuntu0.20.04.1 Priority: optional Section: admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Ceph Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 91 Depends: ceph-mgr (= 15.2.12-0ubuntu0.20.04.1), ceph-mon (= 15.2.12-0ubuntu0.20.04.1), ceph-osd (= 15.2.12-0ubuntu0.20.04.1) Suggests: ceph-mds (= 15.2.12-0ubuntu0.20.04.1) Filename: pool/main/c/ceph/ceph_15.2.12-0ubuntu0.20.04.1_amd64.deb Size: 18376 MD5sum: 1a478b6d2700867fbe81fde92a49af58 SHA1: a0a8d89abcda28ec4c96ed17ad0e6c1a630f68a6 SHA256: 5a4ecd5baa4f05a00c0e7371ab89865af1914694358cb106643b32fa8204cf5e SHA512: 1eff6769b0c7b0c8959bb26dc006a8aacc2bd2216c7043228b8e7441df1a811341b8542c72e0aa4313ef73d023652b14f69424a61882a3c769aed846acfc826b Homepage: http://ceph.com/ Description-en: distributed storage and file system Ceph is a massively scalable, open-source, distributed storage system that runs on commodity hardware and delivers object, block and file system storage.
Package: ceph Architecture: amd64 Version: 15.2.1-0ubuntu1 Priority: optional Section: admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Ceph Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 90 Depends: ceph-mgr (= 15.2.1-0ubuntu1), ceph-mon (= 15.2.1-0ubuntu1), ceph-osd (= 15.2.1-0ubuntu1) Suggests: ceph-mds (= 15.2.1-0ubuntu1) Filename: pool/main/c/ceph/ceph_15.2.1-0ubuntu1_amd64.deb Size: 18364 MD5sum: 34b03cc81d15137a72cfde1d91821584 SHA1: b4ff7471f340af5f2f44a99085e3c3022ba88731 SHA256: 5a2b916214ab706d8df716f710335ef1a6033109e3ad49b44769f61681391709 Homepage: http://ceph.com/ Description-en: distributed storage and file system Ceph is a massively scalable, open-source, distributed storage system that runs on commodity hardware and delivers object, block and file system storage.
There are three methods to install ceph
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install ceph Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ceph
using apt-get
by running the following command:
sudo apt-get -y install ceph
Install ceph Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ceph
using apt
by running the following command:
sudo apt -y install ceph
Install ceph Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install ceph
using aptitude
by running the following command:
sudo aptitude -y install ceph
How To Uninstall ceph on Ubuntu 20.04
To uninstall only the ceph
package we can use the following command:
sudo apt-get remove ceph
Uninstall ceph And Its Dependencies
To uninstall ceph
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ceph
Remove ceph Configurations and Data
To remove ceph
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ceph
Remove ceph configuration, data, and all of its dependencies
We can use the following command to remove ceph
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ceph
References
Summary
In this tutorial we learn how to install ceph
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.