Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleThen update and upgrade Ubuntu:
sudo apt-get update
sudo apt upgrade
Code Block
languagetext
titleWhen updates complete, install XML Twig:
sudo apt-get install xml-twig-tools

When XML Twig install completes, you now have the xml_split tool.

Code Block
languagetext
themeFadeToGrey
titleSteps as seen in the Ubuntu 18.04 terminal:
collapsetrue
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: changtb
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

changtb@hostname:~$ sudo apt-get update
[sudo] password for changtb:
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [65.5 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [61.8 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [22.7 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [15.1 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [7616 B]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [1164 B]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [632 B]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1019 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [80.9 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [29.7 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [32.4 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [17.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [1728 B]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [1236 B]
Fetched 16.1 MB in 7s (2418 kB/s)
Reading package lists... Done
changtb@hostname:~$ sudo apt-get install xml-twig-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libauthen-sasl-perl libdata-dump-perl libencode-locale-perl libfile-listing-perl libfont-afm-perl libhtml-form-perl
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl libwww-perl
  libwww-robotrules-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl perl-openssl-defaults
Suggested packages:
  libdigest-hmac-perl libgssapi-perl libcrypt-ssleay-perl libauthen-ntlm-perl libunicode-map8-perl
  libunicode-string-perl
The following NEW packages will be installed:
  libauthen-sasl-perl libdata-dump-perl libencode-locale-perl libfile-listing-perl libfont-afm-perl libhtml-form-perl
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl libwww-perl
  libwww-robotrules-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl perl-openssl-defaults
  xml-twig-tools
0 upgraded, 34 newly installed, 0 to remove and 10 not upgraded.
Need to get 1924 kB of archives.
After this operation, 6364 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdata-dump-perl all 1.23-1 [27.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libencode-locale-perl all 1.05-1 [12.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtimedate-perl all 2.3000-2 [37.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhttp-date-perl all 6.02-1 [10.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfile-listing-perl all 6.04-1 [9774 B]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfont-afm-perl all 1.20-2 [13.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-tagset-perl all 3.20-3 [12.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 liburi-perl all 1.73-1 [77.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-parser-perl amd64 3.72-3build1 [85.9 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libio-html-perl all 1.001-1 [14.9 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblwp-mediatypes-perl all 6.02-1 [21.7 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhttp-message-perl all 6.14-1 [72.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-form-perl all 6.03-1 [23.5 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-tree-perl all 5.07-1 [200 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhtml-format-perl all 2.12-1 [41.3 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhttp-cookies-perl all 6.04-1 [17.2 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhttp-daemon-perl all 6.01-1 [17.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhttp-negotiate-perl all 6.00-2 [13.4 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 perl-openssl-defaults amd64 3build1 [7012 B]
Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnet-ssleay-perl amd64 1.84-1build1 [282 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 libio-socket-ssl-perl all 2.056-1 [172 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnet-http-perl all 6.17-1 [22.7 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtry-tiny-perl all 0.30-1 [20.5 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwww-robotrules-perl all 6.01-1 [14.1 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwww-perl all 6.31-1 [137 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblwp-protocol-https-perl all 6.07-2 [8284 B]
Get:27 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnet-smtp-ssl-perl all 1.04-1 [5948 B]
Get:28 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmailtools-perl all 2.18-1 [74.0 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtie-ixhash-perl all 1.23-2 [11.2 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxml-parser-perl amd64 2.44-2build3 [199 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxml-twig-perl all 1:3.50-1 [156 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxml-xpathengine-perl all 0.14-1 [31.8 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic/universe amd64 xml-twig-tools all 1:3.50-1 [28.2 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic/main amd64 libauthen-sasl-perl all 2.1600-1 [48.7 kB]
Fetched 1924 kB in 7s (265 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libdata-dump-perl.
(Reading database ... 28477 files and directories currently installed.)
Preparing to unpack .../00-libdata-dump-perl_1.23-1_all.deb ...
Unpacking libdata-dump-perl (1.23-1) ...
Selecting previously unselected package libencode-locale-perl.
Preparing to unpack .../01-libencode-locale-perl_1.05-1_all.deb ...
Unpacking libencode-locale-perl (1.05-1) ...
Selecting previously unselected package libtimedate-perl.
Preparing to unpack .../02-libtimedate-perl_2.3000-2_all.deb ...
Unpacking libtimedate-perl (2.3000-2) ...
Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../03-libhttp-date-perl_6.02-1_all.deb ...
Unpacking libhttp-date-perl (6.02-1) ...
Selecting previously unselected package libfile-listing-perl.
Preparing to unpack .../04-libfile-listing-perl_6.04-1_all.deb ...
Unpacking libfile-listing-perl (6.04-1) ...
Selecting previously unselected package libfont-afm-perl.
Preparing to unpack .../05-libfont-afm-perl_1.20-2_all.deb ...
Unpacking libfont-afm-perl (1.20-2) ...
Selecting previously unselected package libhtml-tagset-perl.
Preparing to unpack .../06-libhtml-tagset-perl_3.20-3_all.deb ...
Unpacking libhtml-tagset-perl (3.20-3) ...
Selecting previously unselected package liburi-perl.
Preparing to unpack .../07-liburi-perl_1.73-1_all.deb ...
Unpacking liburi-perl (1.73-1) ...
Selecting previously unselected package libhtml-parser-perl.
Preparing to unpack .../08-libhtml-parser-perl_3.72-3build1_amd64.deb ...
Unpacking libhtml-parser-perl (3.72-3build1) ...
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../09-libio-html-perl_1.001-1_all.deb ...
Unpacking libio-html-perl (1.001-1) ...
Selecting previously unselected package liblwp-mediatypes-perl.
Preparing to unpack .../10-liblwp-mediatypes-perl_6.02-1_all.deb ...
Unpacking liblwp-mediatypes-perl (6.02-1) ...
Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../11-libhttp-message-perl_6.14-1_all.deb ...
Unpacking libhttp-message-perl (6.14-1) ...
Selecting previously unselected package libhtml-form-perl.
Preparing to unpack .../12-libhtml-form-perl_6.03-1_all.deb ...
Unpacking libhtml-form-perl (6.03-1) ...
Selecting previously unselected package libhtml-tree-perl.
Preparing to unpack .../13-libhtml-tree-perl_5.07-1_all.deb ...
Unpacking libhtml-tree-perl (5.07-1) ...
Selecting previously unselected package libhtml-format-perl.
Preparing to unpack .../14-libhtml-format-perl_2.12-1_all.deb ...
Unpacking libhtml-format-perl (2.12-1) ...
Selecting previously unselected package libhttp-cookies-perl.
Preparing to unpack .../15-libhttp-cookies-perl_6.04-1_all.deb ...
Unpacking libhttp-cookies-perl (6.04-1) ...
Selecting previously unselected package libhttp-daemon-perl.
Preparing to unpack .../16-libhttp-daemon-perl_6.01-1_all.deb ...
Unpacking libhttp-daemon-perl (6.01-1) ...
Selecting previously unselected package libhttp-negotiate-perl.
Preparing to unpack .../17-libhttp-negotiate-perl_6.00-2_all.deb ...
Unpacking libhttp-negotiate-perl (6.00-2) ...
Selecting previously unselected package perl-openssl-defaults:amd64.
Preparing to unpack .../18-perl-openssl-defaults_3build1_amd64.deb ...
Unpacking perl-openssl-defaults:amd64 (3build1) ...
Selecting previously unselected package libnet-ssleay-perl.
Preparing to unpack .../19-libnet-ssleay-perl_1.84-1build1_amd64.deb ...
Unpacking libnet-ssleay-perl (1.84-1build1) ...
Selecting previously unselected package libio-socket-ssl-perl.
Preparing to unpack .../20-libio-socket-ssl-perl_2.056-1_all.deb ...
Unpacking libio-socket-ssl-perl (2.056-1) ...
Selecting previously unselected package libnet-http-perl.
Preparing to unpack .../21-libnet-http-perl_6.17-1_all.deb ...
Unpacking libnet-http-perl (6.17-1) ...
Selecting previously unselected package libtry-tiny-perl.
Preparing to unpack .../22-libtry-tiny-perl_0.30-1_all.deb ...
Unpacking libtry-tiny-perl (0.30-1) ...
Selecting previously unselected package libwww-robotrules-perl.
Preparing to unpack .../23-libwww-robotrules-perl_6.01-1_all.deb ...
Unpacking libwww-robotrules-perl (6.01-1) ...
Selecting previously unselected package libwww-perl.
Preparing to unpack .../24-libwww-perl_6.31-1_all.deb ...
Unpacking libwww-perl (6.31-1) ...
Selecting previously unselected package liblwp-protocol-https-perl.
Preparing to unpack .../25-liblwp-protocol-https-perl_6.07-2_all.deb ...
Unpacking liblwp-protocol-https-perl (6.07-2) ...
Selecting previously unselected package libnet-smtp-ssl-perl.
Preparing to unpack .../26-libnet-smtp-ssl-perl_1.04-1_all.deb ...
Unpacking libnet-smtp-ssl-perl (1.04-1) ...
Selecting previously unselected package libmailtools-perl.
Preparing to unpack .../27-libmailtools-perl_2.18-1_all.deb ...
Unpacking libmailtools-perl (2.18-1) ...
Selecting previously unselected package libtie-ixhash-perl.
Preparing to unpack .../28-libtie-ixhash-perl_1.23-2_all.deb ...
Unpacking libtie-ixhash-perl (1.23-2) ...
Selecting previously unselected package libxml-parser-perl.
Preparing to unpack .../29-libxml-parser-perl_2.44-2build3_amd64.deb ...
Unpacking libxml-parser-perl (2.44-2build3) ...
Selecting previously unselected package libxml-twig-perl.
Preparing to unpack .../30-libxml-twig-perl_1%3a3.50-1_all.deb ...
Unpacking libxml-twig-perl (1:3.50-1) ...
Selecting previously unselected package libxml-xpathengine-perl.
Preparing to unpack .../31-libxml-xpathengine-perl_0.14-1_all.deb ...
Unpacking libxml-xpathengine-perl (0.14-1) ...
Selecting previously unselected package xml-twig-tools.
Preparing to unpack .../32-xml-twig-tools_1%3a3.50-1_all.deb ...
Unpacking xml-twig-tools (1:3.50-1) ...
Selecting previously unselected package libauthen-sasl-perl.
Preparing to unpack .../33-libauthen-sasl-perl_2.1600-1_all.deb ...
Unpacking libauthen-sasl-perl (2.1600-1) ...
Setting up libhtml-tagset-perl (3.20-3) ...
Setting up libtry-tiny-perl (0.30-1) ...
Setting up libfont-afm-perl (1.20-2) ...
Setting up libencode-locale-perl (1.05-1) ...
Setting up libtimedate-perl (2.3000-2) ...
Setting up perl-openssl-defaults:amd64 (3build1) ...
Setting up libio-html-perl (1.001-1) ...
Setting up libtie-ixhash-perl (1.23-2) ...
Setting up liblwp-mediatypes-perl (6.02-1) ...
Setting up liburi-perl (1.73-1) ...
Setting up libdata-dump-perl (1.23-1) ...
Setting up libhtml-parser-perl (3.72-3build1) ...
Setting up libxml-xpathengine-perl (0.14-1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libnet-http-perl (6.17-1) ...
Setting up libwww-robotrules-perl (6.01-1) ...
Setting up libauthen-sasl-perl (2.1600-1) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libnet-ssleay-perl (1.84-1build1) ...
Setting up libio-socket-ssl-perl (2.056-1) ...
Setting up libhtml-tree-perl (5.07-1) ...
Setting up libfile-listing-perl (6.04-1) ...
Setting up libhttp-message-perl (6.14-1) ...
Setting up libhttp-negotiate-perl (6.00-2) ...
Setting up libnet-smtp-ssl-perl (1.04-1) ...
Setting up libhtml-format-perl (2.12-1) ...
Setting up libhttp-cookies-perl (6.04-1) ...
Setting up libhttp-daemon-perl (6.01-1) ...
Setting up libhtml-form-perl (6.03-1) ...
Setting up libmailtools-perl (2.18-1) ...
Setting up libwww-perl (6.31-1) ...
Setting up liblwp-protocol-https-perl (6.07-2) ...
Setting up libxml-parser-perl (2.44-2build3) ...
Setting up libxml-twig-perl (1:3.50-1) ...
Setting up xml-twig-tools (1:3.50-1) ...
changtb@hostname:~$