How to install any software in Kali Linux
Kali Linux has 400 software pre-installed, but if we talk about repository then it consist of more than 2000 tools. and sometimes we need to install the software in Kali Linux. so the question is this “how to install any software in Kali Linux using package manager apt-get?”
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 is a Kali package manager is used for handling package utility is known as “apt-get”. It is a 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 a dependency on Metasploit.
Install the software in Kali Linux using apt-get install command
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 the 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 similarly to upgrade function, however, this function upgrades the version of the 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 for more discussion. It is free for you!
Cheers!
MODULE 3:- Basics of Kali Linux
- Install Kali Linux on Hard drive with Full disk Encryption
- How to create Kali Linux bootable USB live in windows 10
- 20 basics about how to use Kali Linux
- 6 steps to change Kali Linux IP address (Easy)
- How to Add Kali Linux repository – With pictures
- How to update and upgrade Kali Linux to 2017.1
- apt-get package handling utility in Kali Linux
- How to use Linux debian package manager “dpkg”
- How to use Kali Linux SSH Server and client
- Start Restart Apache2 Web Server In Kali Linux
7 thoughts on “How to use Kali Linux Package manager to install packages”
I think this is one of the so much significant info for me.
And i’m glad studying your article. But want to remark on
few general things, The web site taste is perfect, the articles is actually great : D.
Just right job, cheers
Thanks
What if I only want to update and upgrade only one tool. Will the “sudo apt-get install {package_name}” do the work without installing or upgrading other tools?
Yes, You must update the package list by running apt-get update command
Always use this command before install new packages
Are these processes the same for kali Nerhunter OS?