Install php-xml-parser on Ubuntu: sudo apt-get install php-xml-parser
Learn how to install php-xml-parser with the command sudo apt-get install php-xml-parser on Ubuntus.
Quick installation of php-xml-parser:
Step 1: Update system:
sudo apt-get update
Step 2: Install: php-xml-parser
Ater updaing the OS run following command to install the packae:
sudo apt-get install php-xml-parser
Package Details | |
Package: | php-xml-parser |
Version: | 1.3.2-4 |
Maintainer: | Ubuntu Developers |
Home page: | http://pear.php.net/package/XML_Parser |
Description: | PHP PEAR module for parsing XML This is an XML parser based on PHPs built-in xml extension. It supports two basic modes of operation: 'func' and 'event'. In 'func' mode, it will look for a function named after each element (xmltag_ELEMENT for start tags and xmltag_ELEMENT_ for end tags), and in 'event' mode it uses a set of generic callbacks. . Since version 1.2.0 there's a new XML_Parser_Simple class that makes parsing of most XML documents easier, by automatically providing a stack for the elements. Furthermore its now possible to split the parser from the handler object, so you do not have to extend XML_Parser anymore in order to parse a document with it. Homepage: http://pear.php.net/package/XML_Parser |
Distro: | Ubuntu 12.04 LTS |
Release: | |
Repo/Section: | universe/web |
How to install php-xml-parser on Ubuntu 12.04 LTS?
First of all update your system with the command:
sudo apt-get update
Above command will download the package lists for Ubuntu 12.04 LTS on your system. This will update the list of newest versions of packages and its dependencies on your system.
After downloading the latest package list with the help of above you can run the installation process.
If php-xml-parser is not installed on your compter then the command 'dpkg -L php-xml-parser' will give followin error.
deepak@deepak-VirtualBox:~$ dpkg -L php-xml-parser Package `php-xml-parser' is not installed. Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. deepak@deepak-VirtualBox:~$
Installing php-xml-parser:
After system update use the following command to install php-xml-parser:
sudo apt-get install php-xml-parser
Above command will confirm before installing the package on your Ubuntu 12.04 LTS Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.
How to uninstall/remove php-xml-parser from Ubuntu 12.04 LTS?
Now we will see the commands for uninstalling the php-xml-parser from Ubuntu 12.04 LTS. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.
To remove the php-xml-parser following command is used:
sudo apt-get remove php-xml-parser
Following command is used to remove the php-xml-parser package along with its dependencies:
sudo apt-get remove --auto-remove php-xml-parser
This will remove php-xml-parser and all its dependent packages which is no longer needed in the system.
Completely removing php-xml-parser with all configuration files:
Following command should be used with care as it deletes all the configuration files and data:
sudo apt-get purge php-xml-parser
or you can use following command also:
sudo apt-get purge --auto-remove php-xml-parser
Above command will remove all the configuration files and data associated with php-xml-parser package. You can can't recover the delete data, so, use this command with care.