How To Install pychecker on Ubuntu 18.04
Introduction
In this tutorial we learn how to install pychecker
on Ubuntu 18.04.
What is pychecker
pychecker is:
PyChecker is a tool for finding common bugs in Python source code. It finds problems that are typically caught by a compiler for less dynamic languages, like C and C++. Because of the dynamic nature of Python, some warnings may be incorrect; however, spurious warnings should be fairly infrequent.
There are three methods to install pychecker
on Ubuntu 18.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 pychecker Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install pychecker
using apt-get
by running the following command:
sudo apt-get -y install pychecker
Install pychecker Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install pychecker
using apt
by running the following command:
sudo apt -y install pychecker
Install pychecker 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 pychecker
using aptitude
by running the following command:
sudo aptitude -y install pychecker
How To Uninstall pychecker on Ubuntu 18.04
To uninstall only the pychecker
package we can use the following command:
sudo apt-get remove pychecker
Uninstall pychecker And Its Dependencies
To uninstall pychecker
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove pychecker
Remove pychecker Configurations and Data
To remove pychecker
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge pychecker
Remove pychecker configuration, data, and all of its dependencies
We can use the following command to remove pychecker
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pychecker
References
Summary
In this tutorial we learn how to install pychecker
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.