Learn To Manage Packages Using APT-GET & APT-CACHE Commands In Debian/Ubuntu. Part-I

APT abbreviated as Advanced Packaging Tool, is the package management tool used in Debian based distributions to install new applications from repository, removing installed applications, upgrading the system, updating the repository and bunch full of other useful tasks, all that from terminal itself.

APT

APT

1) Installing Application In Ubuntu/Debian Using APT-GET

Command Syntax :

Example :

Where gimp is the package name which is to be installed.

 

2) Updating The System Repository Using APT-GET

This command will update the Debian/Ubuntu repository with the newer latest version that’s available.

Command :

 

3) Upgrading The Software Packages Using APT-GET

It is usually used to upgrade the installed packages in the system. For example, if new updated package are available in the repository, then this command will upgrade the installed package with the latest one that is available in repository.

Command :

 

4) Upgrading Specific Desired Packages Using APT-GET

Using this command you can upgrade stacks of desired packages you want. The command is very much similar to that of installing packages.

Command Syntax :

Example :

 

 5) Installing Packages Without Upgrading Using APT-GET

The following command will install the desired package, but won’t upgrade even if the upgrade is available.

Command Syntax :

Example :

 

6) Installing Multiple Packages All At Once In One Command Using APT-GET

This command is used to install as many packages/application you want using one single command. Quite a productive command it is!

Command Syntax :

Example :

 

 7) Install Only Desired Version Package Using APT-GET

Inserting ‘=‘ after the package name and appending desired version, you can install specific version of the package

Command Syntax :

Example :

 

8) Download Only Source Code Of The Desired Package Using APT-GET

You can download source code of the desired package from the repository using following syntax.

Command Syntax :

Example :

 

9) Downloading The .deb Package Without Installing It Using APT-GET

You can download the .deb package of the desired application using following command. The downloaded .deb package is usually stored in /var/cache/apt/archive directory.

Command Syntax :

Example :

 

10) Download The Source Code, Decompress It & Then Compile It Using APT-GET

You can download source code of the application you want to use, then decompress it & compile it using one single command.

Command Syntax :

Example :

 

 

Dozens of other commands will be covered in next part of the tutorial. Stay tuned.

Edit : You can read Part-2 Of The Tutorial From HERE

Leave a Reply

Your email address will not be published. Required fields are marked *