how to install software in Kali Linux by apt-get

MODULE 3:- Basics of Kali Linux

  1. Install Kali Linux on Hard drive with Full disk Encryption
  2. How to create Kali Linux bootable USB live in windows 10
  3. 20 basics about how to use Kali Linux
  4. 6 steps to change Kali Linux IP address (Easy)
  5. How to Add Kali Linux repository – With pictures
  6. How to update and upgrade Kali Linux to 2017.1
  7. apt-get package handling utility in Kali Linux
  8. How to use Linux debian package manager “dpkg”
  9. How to use Kali Linux SSH Server and client
  10. Start Restart Apache2 Web Server In Kali Linux

How to install software in Kali Linux by apt-get

Kali Linux has 400 software pre-installed, but if we talk about repository then it consist more than 2000 tools. and some time we need to install software in Kali Linux. so question is this “how to install software in kali linux?”

In this tutorial I am going tell you about apt-get utility, which is used for managing software. In the sense of managing => install new software, remove installed software, update software, purge software etc.

The APT package handling utility known as “apt-get” is powerful command line tool for managing software package. It is used for installing and removing packages in Linux. It is installed packages along with their dependencies. Dependencies are the additional packages required for other software. For example: The best friend of pentester is Metasploit is written in Ruby programming language. Without Ruby installed in your system Metasploit could not work launch. So Ruby is dependency of Metasploit.APT Package Handeling utility

How to install software in Kali Linux? : apt-get install 

Installing extra software packages by apt-get command is simple and straightforward.

Syntax :

sudo apt-get install {package_name}
For example if you want to install gimp package
#apt-get install gimp

Update: apt-get update

Before installing any packages on the system, it is recommended that update first.  The syntax for performing updates follows:

 

sudo apt-get update

Upgrade: apt-get upgrade

The upgrade function is used for download and install all newer version of installed software package in Kali Linux. Use following commands for upgrading Kali Linux:

 

sudo apt-get upgrade

Distribution Upgrade: apt-get dist-upgrade

Distribution upgrade function work similar as upgrade function, however, this function upgrade the version of distribution. When this command is used kali will be raised from version 1.0 to 1.n or 2.n and so on. Syntax

 

sudo apt-get dist-upgrade

How to Remove/Uninstall software in Kali Linux: apt-get remove

Apt-get can work as remove packages, if packages are not useful anymore then it can be remove by using following Syntax

 

sudo apt-get remove {package_name}

Just for example try to removing “leafpad” and install again
#apt-get remove leafpad

#apt-get install leafpad

Auto Remove: apt-get autoremove

At the time of upgrading distribution the Operating System’s software packages are replaced by new and improved version. The auto remove function will remove old version package no longer needed for functionality of system. Syntax

 

sudo apt-get autoremove
It should be perform after upgrade or distribution upgrade.

 Purge (Erase packages): apt-get purge 

This function will erase software packages completely with related configuration files in one fell swoop. It is dangerous when used incorrectly or by mistakes. So use remove for uninstalling software packages. Purge can be used by the following syntax:

 

sudo apt-get purge {package_name}

Clean downloaded packages : apt-get clean 

Packages are downloaded from the source in the system, unpackaged, then installed on system. Package will reside on the system, which are no longer necessary after installation of package. These packages consume the memory and need to be cleaned away. Use following command and launch clean function :

sudo apt-get clean

apt-get autoclean

Auto-cleaning additionally cleans the framework in a comparable manner as the clean unction; notwithstanding, it ought to be pursued update and dispersion moves up to the framework, as the autoclean capacity will uproot old bundles that have been supplanted with new ones. Syntax:

$sudo apt-get autoclean

Putting two or more function together :

Syntax:

#apt-get update && apt-get upgrade && apt-get dist-upgrade

#apt-get autoremove && apt-get autoclean

If you have any question related how to install software in kali linux comment below in comment box. You can join our forum Ethical Hacking Forum for more discussion. It is free for you!

Cheers!

 

Vijay Kumar

Ethical Hacking & Penetration Testing Trainer, For more detail view My Profile

Latest posts by Vijay Kumar (see all)

4 thoughts on “how to install software in Kali Linux by apt-get

Leave a Reply

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