How To Install vim-syntax-docker on Ubuntu 20.04

In this tutorial we learn how to install vim-syntax-docker on Ubuntu 20.04. vim-syntax-docker is Docker container engine - Vim highlighting syntax files Docker container engine - Vim highlighting syntax files

Introduction

In this tutorial we learn how to install vim-syntax-docker on Ubuntu 20.04.

What is vim-syntax-docker

vim-syntax-docker is:

This package provides syntax files for the Vim editor for editing Dockerfiles from the Docker container engine.

Package: vim-syntax-docker Architecture: all Version: 19.03.8-0ubuntu1 Priority: optional Section: universe/admin Source: docker.io Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Paul Tagliamonte [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 72 Depends: vim Recommends: vim-addon-manager Suggests: docker.io Filename: pool/universe/d/docker.io/vim-syntax-docker_19.03.8-0ubuntu1_all.deb Size: 13804 MD5sum: 1c45fbb7753956c23294434666c1252d SHA1: 10665bf30cc58938a04b6171f0b41dfff658e77b SHA256: 81f2412281f866d21d5e84d5e9de4d40c2e86af309e6575c6fd91285501c0f1c Homepage: https://www.docker.com/community-edition Description-en: Docker container engine - Vim highlighting syntax files This package provides syntax files for the Vim editor for editing Dockerfiles from the Docker container engine.

There are three methods to install vim-syntax-docker 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 vim-syntax-docker Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install vim-syntax-docker using apt-get by running the following command:

sudo apt-get -y install vim-syntax-docker

Install vim-syntax-docker Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install vim-syntax-docker using apt by running the following command:

sudo apt -y install vim-syntax-docker

Install vim-syntax-docker 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 vim-syntax-docker using aptitude by running the following command:

sudo aptitude -y install vim-syntax-docker

How To Uninstall vim-syntax-docker on Ubuntu 20.04

To uninstall only the vim-syntax-docker package we can use the following command:

sudo apt-get remove vim-syntax-docker

Uninstall vim-syntax-docker And Its Dependencies

To uninstall vim-syntax-docker and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove vim-syntax-docker

Remove vim-syntax-docker Configurations and Data

To remove vim-syntax-docker configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge vim-syntax-docker

Remove vim-syntax-docker configuration, data, and all of its dependencies

We can use the following command to remove vim-syntax-docker configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge vim-syntax-docker

References

Summary

In this tutorial we learn how to install vim-syntax-docker package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.