Search
Close this search box.
Search
Close this search box.

Linux Essentials, Part 5: Adding and Removing Software

In this segment of our Linux series, we’re focusing on a fundamental aspect of any operating system: managing software. In Debian-based distributions like Kali and Ubuntu, the primary tool for this is aptitude, with apt-get being the go-to command for installing new software.

Adding and Removing Software

The apt-get command is commonly used in Debian systems for installing software. For instance, to install a program like Snort, you’d use: sudo apt-get install snort

To remove software, the apt-get command again comes into play, but with the remove option:
sudo apt-get remove snort

This command removes the software but retains its configuration files for potential future reinstalls.

If you want to completely remove a package and its configuration files, use the purge option:
sudo apt-get purge snort

Updating and Upgrading

Your system’s software repositories need periodic updates, which you can initiate using:
sudo apt-get update

This command refreshes your package lists from the repositories specified in your sources.list file.

For upgrading your entire operating system, use sudo apt-get upgrade. As this process can be lengthy, ensure you won’t need your system for a while:

Understanding sources.list

Each Linux distribution has its own software repositories. For example, Kali’s repository, which we’re using, specializes in security and hacking software but may lack some general-purpose or specialty tools.

To view or edit your repository sources, use a text editor like leafpad: leafpad /etc/apt/sources.list

The repositories listed in your sources.list are where your system looks for software packages. Be cautious with testing, experimental, or unstable repositories.

You can add additional repositories, such as Ubuntu’s, to your sources.list. This way, your system first searches the Kali repository, and if the software isn’t found there, it looks in the subsequent repositories.

Using git for Software Installation

Sometimes, the software you need isn’t in any repository but is available on platforms like GitHub. For instance, specific tools for SCADA hacking might be found on GitHub but not in standard repositories.

To install software from GitHub, use the git clone command followed by the URL of the software:
sudo git clone https://github.com/abdulr7mann/hackerEnv.git

git clone copies all the data and files from that location to your system.

There are several ways to download and install software on Linux, and these methods are essential for hackers. Stay tuned as we continue exploring the fascinating world of Linux for hackers!

Leave a Reply

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