Introduction
In this tutorial we learn how to install libanyevent-xmpp-perl
on Ubuntu 20.04.
What is libanyevent-xmpp-perl
libanyevent-xmpp-perl is:
AnyEvent::XMPP is an implementation of XMPP in Perl,
formerly known under the name Net::XMPP2,
it allows you to easily write Clients and Components.
In comparison to Net::XMPP it offers a event based API
and is independent of an event loop with AnyEvent.
The following XEPs are implemented:
- XEP-0004 – Data Forms
- XEP-0030 – Service Discovery
- XEP-0054 – vcard-temp (XMPP vCards)
- XEP-0066 – Out of Band Data
- XEP-0077 – In-Band Registration
- XEP-0078 – Non-SASL Authentication
- XEP-0082 – XMPP Date and Time Profiles
- XEP-0086 – Error Condition Mappings
- XEP-0091 – Delayed Delivery (legacy)
- XEP-0092 – Software Version
- XEP-0114 – Jabber Component Protocol
- XEP-0153 – vCard-Based Avatars
- XEP-0184 – Message Receipts
- XEP-0199 – XMPP Ping
- XEP-0203 – Delayed Delivery (new)
AnyEvent is a framework to do event-based programming,
implemented as a thin abstraction layer on top of other event loops.
There are three methods to install libanyevent-xmpp-perl
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 libanyevent-xmpp-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libanyevent-xmpp-perl
using apt-get
by running the following command:
sudo apt-get -y install libanyevent-xmpp-perl
Install libanyevent-xmpp-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libanyevent-xmpp-perl
using apt
by running the following command:
sudo apt -y install libanyevent-xmpp-perl
Install libanyevent-xmpp-perl 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 libanyevent-xmpp-perl
using aptitude
by running the following command:
sudo aptitude -y install libanyevent-xmpp-perl
How To Uninstall libanyevent-xmpp-perl on Ubuntu 20.04
To uninstall only the libanyevent-xmpp-perl
package we can use the following command:
sudo apt-get remove libanyevent-xmpp-perl
Uninstall libanyevent-xmpp-perl And Its Dependencies
To uninstall libanyevent-xmpp-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libanyevent-xmpp-perl
Remove libanyevent-xmpp-perl Configurations and Data
To remove libanyevent-xmpp-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libanyevent-xmpp-perl
Remove libanyevent-xmpp-perl configuration, data, and all of its dependencies
We can use the following command to remove libanyevent-xmpp-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libanyevent-xmpp-perl
References
Summary
In this tutorial we learn how to install libanyevent-xmpp-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.