How to see the Current State of package (Ubuntu)?
Two commands can be used to see the current state of a package. dpkg dpkg-query Let’s assume that the package vim is currently installed. Current state of a package Using dpkg dpkg –list can be used to know the status of a package. $ dpkg –list vim Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ [...]
How to find the package to which a file belongs (Ubuntu)?
If you are working in Ubuntu/Debian, you may want to know the package to which a particular file belongs to. Take for example, you want to find out the package to which the command ‘ls’ is found. For this purpose, you must know the complete path of the command which can be found out easily [...]
How to install KDE in Ubuntu?
Ubuntu by default has the GNOME desktop. But if you want to use KDE, you must Install Kubuntu. There are two ways by which you can do this. Replace Ubuntu with Kubuntu. Install Kubuntu within Ubuntu The second option is the best one because you can experiment with both GNOME and KDE. Let’s explore how [...]
How to install missing curl man pages in Ubuntu?
curl is very useful for the data transfer between the client and the server. Curl is available both as a command line tool as well as for programming purposes. In case of working with curl, you may require man pages and if your curl man pages are missing, you must install the concerned package $ [...]
How to install apache in Ubuntu?
Apache can be installed in Linux using source. It can be easily installed in Ubuntu using the following command $ sudo apt-get install apache2 But after installation, you can verify that in the browser. Enter http://localhost/. If everything is fine, the page can be displayed with no connection errors. To start/restart apache $ sudo /etc/init.d/apache2 [...]
How to install maven in Linux?
Installing maven in Ubuntu is as simple as executing the following command $ sudo apt-get install maven2 Note that you must be connected to the internet to execute the command
XML programming in Linux
For a detailed tutorial on XML programming, check the libxml tutorial. To start XML programming in Ubuntu, you must have the following packages in your system libxml2 libxml2-dev libxml2-doc libxml2-utils To install these packages, $ sudo apt-get install libxml2 libxml2-dev libxml2-doc libxml2-utils Once you install these packages, you must check the path where the libxml2 [...]