How To Install zshdb on Ubuntu 20.04
Introduction
In this tutorial we learn how to install zshdb
on Ubuntu 20.04.
What is zshdb
zshdb is:
A zsh script to which arranges for another zsh script to be debugged. zshdb is a port of bashdb, a similar debugger for bash scripts, to zsh. The command syntax generally follows that of the trepanning debuggers and, more generally, GNU debugger gdb.
There are three methods to install zshdb
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 zshdb Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install zshdb
using apt-get
by running the following command:
sudo apt-get -y install zshdb
Install zshdb Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install zshdb
using apt
by running the following command:
sudo apt -y install zshdb
Install zshdb 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 zshdb
using aptitude
by running the following command:
sudo aptitude -y install zshdb
How To Uninstall zshdb on Ubuntu 20.04
To uninstall only the zshdb
package we can use the following command:
sudo apt-get remove zshdb
Uninstall zshdb And Its Dependencies
To uninstall zshdb
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove zshdb
Remove zshdb Configurations and Data
To remove zshdb
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge zshdb
Remove zshdb configuration, data, and all of its dependencies
We can use the following command to remove zshdb
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge zshdb
References
Summary
In this tutorial we learn how to install zshdb
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.