How To Install python-jabberbot on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-jabberbot
on Ubuntu 18.04.
What is python-jabberbot
python-jabberbot is:
Python-jabberbot is a Jabber bot framework for Python that enables you to easily write simple Jabber bots.
This Jabber bot is partly inspired by the xmpppy example bot.py, but designed to be re-usable and to make it easy to write small Jabber bots that do one thing and do it well.
There are three methods to install python-jabberbot
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 python-jabberbot Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-jabberbot
using apt-get
by running the following command:
sudo apt-get -y install python-jabberbot
Install python-jabberbot Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-jabberbot
using apt
by running the following command:
sudo apt -y install python-jabberbot
Install python-jabberbot 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 python-jabberbot
using aptitude
by running the following command:
sudo aptitude -y install python-jabberbot
How To Uninstall python-jabberbot on Ubuntu 18.04
To uninstall only the python-jabberbot
package we can use the following command:
sudo apt-get remove python-jabberbot
Uninstall python-jabberbot And Its Dependencies
To uninstall python-jabberbot
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-jabberbot
Remove python-jabberbot Configurations and Data
To remove python-jabberbot
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-jabberbot
Remove python-jabberbot configuration, data, and all of its dependencies
We can use the following command to remove python-jabberbot
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-jabberbot
References
Summary
In this tutorial we learn how to install python-jabberbot
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.