Mar 9, 2013

The Way to Use apt Command in Linux Mint and Ubuntu

APT (usually written using the lowercase)  is acronym of Advanced Package Tool. It is a common tool which used to manage the software using the command line in terminal. Actually it's implemented on Debian based operating system, such as Ubuntu and Linux Mint. This command helps you to manually control some packages on your operating system.

There are several forms of "apt" use. It's depending on the specific action that the users are willing to operate on the operating system. For the advanced users, apt is well known but for those newbies it is important to learn this command prompt. The previous one as well has described you the basic Linux command.

This tutorial will show you various kind of apt based Linux command on Debian based Linux.

1. apt-get update
This command is used to update the list of the software packages on the repository. It will automatically list the packages on /etc/apt/source.list file. You can see the list of the repository on this files using text editor. Try to type command "sudo gedit /etc/apt/source.list" on terminal. It will reveal the active of active package on repository.

Example:apt-get install package-namehe 

2. apt-get install
This command actually is used to install some applications or package using terminal. You can automatically install the application --including it's dependencies-- using this command. You need only to type this command followed by the name of package.

Example:
apt-get install package-name

3. apt-get remove
This command actually is composite of apt-get install. Once you need to remove or uninstall a software, you can use this command. As you need to type the package name after the command on installation process, you need to do the same way on this command.
Example:apt-get remove package-name

4. apt-get remove --purge
This command actually run the same function with apt-get remove. But, this command will uninstall the application including it's configuration.
example:
apt-get remove --purge calibre

5. apt-get -f install 
This command actually is used to repair the broken software package. It solve dependencies problem which makes the apt command doesn't work on the terminal. Once you have the broken software package problem,you can use this command. On the previous tutorial we have writer on how to repair the broken software packages.

6. apt-get autoclean   
This command actually is used to clean the cache on the hardisk or core system.  it helps you to clean the previous packages version those are storaged on your system.

7.  apt-get autoremove
This command helps you to clean the packages which have no dependencies on the system.

8. apt-cache showpkg
This command show you the dependencies files those are needed to be installed for an application. You can use this command followed by the name of application to reveal its dependencies.
Example:apt-cache showpkg calibre
9. apt-dist upgrade
This command is used to upgrade the application to the newest version stored on the repository. When you have the dynamic repository synchronization  you will have some update on the repository. To upgrade you software to the newest version, run this command.

Hope the explanation on this post helps you to know apt based Linux Command.