How To Install psgml on Kali Linux
Introduction
In this tutorial we learn how to install psgml
on Kali Linux.
What is psgml
psgml is:
PSGML is a major mode for the editor Emacs used for editing SGML documents. It contains a simple SGML parser and can work with any DTD. (The most popular nowadays are the HTML DTDs. This package turns your emacs into the one of most powerful HTML editors and will be ultimately flexible as well, since you could upgrade your editor by just installing new DTDs). Functions provided includes menus and commands for inserting tags with only the contextually valid tags, identification of structural errors, editing of attribute values in a separate window with information about types and defaults, and structure based editing.
Since psgml parses the DTD to allow you to edit SGML documents, you do need to have the DTDs installed in order to use psgml. Since psgml installs itself as an HTML mode in Emacs, it depends on sgml-data. Some other packages which also provide SGML DTDs are suggested, like debiandoc-sgml and linuxdoc-sgml.
SGML, a language for encoding the structure of a document, is an ISO standard: ISO 8879:1986 “Information processing - Text and office systems - Standard Generalized Markup Language (SGML)”.
Psgml is a standard package for XEmacs, and thus this package does not install itself for XEmacsen.
The official home page has not been updated since 2005. The latest version of this package was built from an unofficial version at URL:http://www.fsavigny.de/gpled-software/psgml-1.4.0.tar.gz
There are three methods to install psgml
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install psgml Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install psgml
using apt-get
by running the following command:
sudo apt-get -y install psgml
Install psgml Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install psgml
using apt
by running the following command:
sudo apt -y install psgml
Install psgml Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install psgml
using aptitude
by running the following command:
sudo aptitude -y install psgml
How To Uninstall psgml on Kali Linux
To uninstall only the psgml
package we can use the following command:
sudo apt-get remove psgml
Uninstall psgml And Its Dependencies
To uninstall psgml
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove psgml
Remove psgml Configurations and Data
To remove psgml
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge psgml
Remove psgml configuration, data, and all of its dependencies
We can use the following command to remove psgml
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge psgml
Dependencies
psgml have the following dependencies:
References
Summary
In this tutorial we learn how to install psgml
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.