How To Install html-xml-utils on Ubuntu 18.04
Introduction
In this tutorial we learn how to install html-xml-utils
on Ubuntu 18.04.
What is html-xml-utils
html-xml-utils is:
HTML-XML-utils provides a number of simple utilities for manipulating and converting HTML and XML files in various ways. The suite consists of the following tools:
asc2xml - convert from UTF-8 to &#nnn; entities xml2asc - convert from &#nnn; entities to UTF-8 hxaddid - add IDs to selected elements hxcite - replace bibliographic references by hyperlinks hxcite-mkbib - expand references and create bibliography hxclean - apply heuristics to correct an HTML file hxcopy - copy an HTML file while preserving relative links hxcount - count elements and attributes in HTML or XML files hxextract - extract selected elements hxincl - expand included HTML or XML files hxindex - create an alphabetically sorted index hxmkbib - create bibliography from a template hxmultitoc - create a table of contents for a set of HTML files hxname2id - move some ID= or NAME= from A elements to their parents hxnormalize - pretty-print an HTML file hxnsxml - convert output of hxxmlns back to normal XML hxnum - number section headings in an HTML file hxpipe - convert XML to a format easier to parse with Perl or AWK hxprintlinks - number links & add table of URLs at end of an HTML file hxprune - remove marked elements from an HTML file hxref - generate cross-references hxselect - extract elements that match a (CSS) selector hxtoc - insert a table of contents in an HTML file hxuncdata - replace CDATA sections by character entities hxunent - replace HTML predefined character entities to UTF-8 hxunpipe - convert output of pipe back to XML format hxunxmlns - replace “global names” by XML Namespace prefixes hxwls - list links in an HTML file hxxmlns - replace XML Namespace prefixes by “global names”
There are three methods to install html-xml-utils
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 html-xml-utils Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install html-xml-utils
using apt-get
by running the following command:
sudo apt-get -y install html-xml-utils
Install html-xml-utils Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install html-xml-utils
using apt
by running the following command:
sudo apt -y install html-xml-utils
Install html-xml-utils 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 html-xml-utils
using aptitude
by running the following command:
sudo aptitude -y install html-xml-utils
How To Uninstall html-xml-utils on Ubuntu 18.04
To uninstall only the html-xml-utils
package we can use the following command:
sudo apt-get remove html-xml-utils
Uninstall html-xml-utils And Its Dependencies
To uninstall html-xml-utils
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove html-xml-utils
Remove html-xml-utils Configurations and Data
To remove html-xml-utils
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge html-xml-utils
Remove html-xml-utils configuration, data, and all of its dependencies
We can use the following command to remove html-xml-utils
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge html-xml-utils
References
Summary
In this tutorial we learn how to install html-xml-utils
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.