How To Install po4a on Debian 9
Introduction
In this tutorial we learn how to install po4a
on Debian 9.
What is po4a
po4a is:
The po4a (PO for anything) project goal is to ease translations (and more interestingly, the maintenance of translations) using gettext tools on areas where they were not expected like documentation.
This package contains the main libraries of po4a, and the following sub-modules:
- Dia: uncompressed Dia diagrams.
- INI: the INI format
- KernelHelp: Help messages of each kernel compilation option.
- LaTeX: generic TeX or LaTeX format.
- Man: either roff or mdoc format.
- POD: Perl documentation format.
- SGML: either DebianDoc or DocBook DTD.
- Texinfo: the info page format.
- XML: very configurable (preconfigured for DocBook, XHTML, Guide, WML).
There are three methods to install po4a
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install po4a Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install po4a
using apt-get
by running the following command:
sudo apt-get -y install po4a
Install po4a Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install po4a
using apt
by running the following command:
sudo apt -y install po4a
Install po4a 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install po4a
using aptitude
by running the following command:
sudo aptitude -y install po4a
How To Uninstall po4a on Debian 9
To uninstall only the po4a
package we can use the following command:
sudo apt-get remove po4a
Uninstall po4a And Its Dependencies
To uninstall po4a
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove po4a
Remove po4a Configurations and Data
To remove po4a
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge po4a
Remove po4a configuration, data, and all of its dependencies
We can use the following command to remove po4a
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge po4a
Dependencies
po4a have the following dependencies:
References
Summary
In this tutorial we learn how to install po4a
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.