How To Install delve on CentOS 8

delve is A debugger for the Go programming language

Introduction

In this tutorial we learn how to install delve on CentOS 8.

What is delve

Delve is a debugger for the Go programming language. The goal of the project is to provide a simple, full featured debugging tool for Go. Delve should be easy to invoke and easy to use. Chances are if you’re using a debugger, things aren’t going your way. With that in mind, Delve should stay out of your way as much as possible.

We can use yum or dnf to install delve on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install delve.

Install delve on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install delve using dnf by running the following command:

sudo dnf -y install delve

Install delve on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install delve using yum by running the following command:

sudo yum -y install delve

How To Uninstall delve on CentOS 8

To uninstall only the delve package we can use the following command:

sudo dnf remove delve

delve Package Contents on CentOS 8

/usr/bin/dlv
/usr/lib/.build-id
/usr/lib/.build-id/50
/usr/lib/.build-id/50/a72590ef0e0e4ebb1eab98001821883d8df437
/usr/share/doc/delve
/usr/share/doc/delve/CHANGELOG.md
/usr/share/doc/delve/CONTRIBUTING.md
/usr/share/doc/delve/EditorIntegration.md
/usr/share/doc/delve/KnownBugs.md
/usr/share/doc/delve/README.md
/usr/share/doc/delve/api
/usr/share/doc/delve/api/ClientHowto.md
/usr/share/doc/delve/api/README.md
/usr/share/doc/delve/api/json-rpc
/usr/share/doc/delve/api/json-rpc/README.md
/usr/share/doc/delve/cli
/usr/share/doc/delve/cli/README.md
/usr/share/doc/delve/cli/expr.md
/usr/share/doc/delve/cli/getting_started.md
/usr/share/doc/delve/cli/locspec.md
/usr/share/doc/delve/cli/starlark.md
/usr/share/doc/delve/faq.md
/usr/share/doc/delve/installation
/usr/share/doc/delve/installation/README.md
/usr/share/doc/delve/installation/freebsd
/usr/share/doc/delve/installation/freebsd/install.md
/usr/share/doc/delve/installation/linux
/usr/share/doc/delve/installation/linux/install.md
/usr/share/doc/delve/installation/osx
/usr/share/doc/delve/installation/osx/install.md
/usr/share/doc/delve/installation/windows
/usr/share/doc/delve/installation/windows/install.md
/usr/share/doc/delve/internal
/usr/share/doc/delve/internal/README.md
/usr/share/doc/delve/usage
/usr/share/doc/delve/usage/README.md
/usr/share/doc/delve/usage/dlv.md
/usr/share/doc/delve/usage/dlv_attach.md
/usr/share/doc/delve/usage/dlv_backend.md
/usr/share/doc/delve/usage/dlv_connect.md
/usr/share/doc/delve/usage/dlv_core.md
/usr/share/doc/delve/usage/dlv_dap.md
/usr/share/doc/delve/usage/dlv_debug.md
/usr/share/doc/delve/usage/dlv_exec.md
/usr/share/doc/delve/usage/dlv_log.md
/usr/share/doc/delve/usage/dlv_replay.md
/usr/share/doc/delve/usage/dlv_run.md
/usr/share/doc/delve/usage/dlv_test.md
/usr/share/doc/delve/usage/dlv_trace.md
/usr/share/doc/delve/usage/dlv_version.md
/usr/share/licenses/delve
/usr/share/licenses/delve/LICENSE

References

Summary

In this tutorial we learn how to install delve on CentOS 8 using yum and dnf.