in

LinuxLinux

Doctl Ubuntu- How to Install DigitalOcean Command Line Tool on Ubuntu 18.04 LTS/ 19.04

Install Doctl on Linux Ubuntu & other Linux Distributions and control server and cloud service through command line

Doctl Ubuntu
Reading Time: 5 minutes

D

octl Ubuntu: In this article, we will check out the methods involved in the process of installing Doctl on Linux Ubuntu 18.04 LTS(Bionic Beaver), Ubuntu 19.04(Disco Dingo) and other Linux Distros such as Fedora, Arch, CentOS, OpenSUSE, and more. Doctl is a command-line tool available to manage DigitalOcean services. DigitalOcean shortly termed as DO includes a number of server and cloud-based services and data centers worldwide. Few of the services from DigitalOcean is Shared Web hosting, Managed Kubernetes, managed databases, cloud firewall, Load Balancers, Floating IPs, API & CLI developer tools, and a lot more.

Jump to:

Install Doctl tool on Linux Ubuntu 18.04 LTS/ 19.04:

Note: Snap is pre-installed on Ubuntu 16.04 and Higher versions. However, it can be installed on Ubuntu using the command sudo apt install snapd.

We will use Snappy Package manager to install Doctl on Linux Ubuntu, and other Ubuntu-based distros such as Linux Mint and more and also on Debian. Kindly follow the below steps.

  • Open Terminal on Ubuntu using the shortcut CTRL + ALT + T.
  • Execute the following command to install Doctl on Ubuntu.
$sudo snap install doctl
Install Doctl Ubuntu
Install Doctl Ubuntu
  • Enter your system password when prompted to authenticate the installation process.
  • Kindly wait till the installation completes.
Check this too  How to Install & Use Docker on Ubuntu 18.04 LTS Bionic Beaver

How to Install Doctl on Linux Ubuntu 18.04 LTS- Using GUI:

This is an alternate method available for installing Doctl on Ubuntu 18.04 LTS, and Ubuntu 19.04. We will use Ubuntu Software which is the store for Ubuntu apps and install this app using the Graphical user interface.

  1. Click on All Applications(Show Applications on Disco Dingo).
  2. Locate Ubuntu Software and open it.
    Wavebox Ubuntu
    Ubuntu Software
  3. Click on the Search symbol available on the Ubuntu Software.
  4. A search bar will dropdown. Search for Doctl.
    Search for Doctl
    Search for Doctl
  5. Once found, click on that and select the Install option.
    Install
    Install
  6. Kindly wait till the installation finishes.
    Doctl Installing
    Doctl Installing

Getting Help from Doctl:

To get the Help menu from Doctl, Kindly use the following command on the terminal.

doctl --help
Doctl Help Menu
Doctl Help Menu

How to Remove/Uninstall Doctl from Linux Ubuntu & Ubuntu-based Distros:

The following is the command to be used to uninstall or remove Doctl tool from Linux Ubuntu 18.04 LTS, 19.04, and more.

$sudo snap remove doctl

Application Details:

License Free to Use
App Version v1.29.1[Stable]
App Size 8 MB(Appx)
OS Requirement Ubuntu 16.04 & Later Versions

How to Install Doctl on Linux Fedora, Arch, CentOS, and OpenSUSE:

Kindly use the following commands to install Doctl on Linux Fedora, Arch, CentOS, and OpenSUSE.

Doctl for Fedora:

$sudo dnf install snapd
$sudo ln -s /var/lib/snapd/snap /snap
$sudo snap install doctl

Doctl for Arch Linux:

$git clone https://aur.archlinux.org/snapd.git
cd snapd
makepkg -si
$sudo systemctl enable --now snapd.socket
$sudo ln -s /var/lib/snapd/snap /snap
$sudo snap install doctl

Doctl for CentOS:

$sudo yum install epel-release
$sudo yum install snapd
$sudo systemctl enable --now snapd.socket
$sudo ln -s /var/lib/snapd/snap /snap
$sudo snap install doctl

Doctl for OpenSUSE:

$sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.0 snappy
$sudo zypper --gpg-auto-import-keys refresh
$sudo zypper dup --from snappy
$sudo zypper install snapd
$sudo systemctl enable snapd
sudo systemctl start snapd
$sudo systemctl enable snapd.apparmor
sudo systemctl start snapd.apparmor
$sudo snap install doctl

Get in Touch with Us:

The following article provides detailed information on Doctl Tool which is a command line tool for controlling digitalocean cloud and servers. With the above article, install Doctl on Linux Ubuntu 18.04 LTS, Ubuntu 19.04, Linux Mint, and other ubuntu-based distros, Fedora, Arch, CentOS, Debian, and OpenSUSE. Kindly Comment Us if you have any Query with the above article and we will get back to you with a solution ASAP. For instant solutions, visit our Forum!!

Check this too  Vim Linux- Best Text Editor for Linux Ubuntu Unity 18.04.1 LTS & More
  • Article Quality
  • Content Depth
  • Explanation
  • Efficiency of the Article
  • Author Rating
4.5

Summary

For more interesting articles, Kindly visit our Home Page

Leave a Reply

Your email address will not be published. Required fields are marked *

Written by Mike

Seeker of nature. For me, everything is about nature. Loves to gaze through different scapes, weather and admire the colors of nature. Contact me through the Contact Us adding "@Mike" on the Subject box.

Feature

Vectr Ubuntu- How To Install Vectr on Ubuntu 18.04 LTS & 19.04

Brave Web Browser

Brave Linux- Install Brave Browser on Linux Ubuntu 18.04 LTS/ 19.04, Fedora, RHEL & More