Introduction
A Kali environment does not automatically contain every security tool. Before following a tool-specific tutorial, you need to find the correct package, install it from supported repositories, and confirm which executable it provides.
You will practice that workflow with a small registration-information client. The lab focuses on package and command discovery; it does not contact any public target or require a large tool collection.
Find Commands and Inspect Packages
In this step, you will distinguish a command from the package that provides it and inspect a tool before installing it.
Enter the prepared Kali shell and choose the shared workspace:
kali
cd /home/labex/project
A command is the executable name you type. A package contains files managed by the distribution. command -v asks the shell where a command is found; it also recognizes shell builtins. Locate the package manager:
command -v apt
Expected output is /usr/bin/apt. Ask it for usage information:
apt --help
The help lists operations such as search, show, update, and install.
APT reads package metadata from configured repositories. apt update refreshes that metadata; it does not upgrade every installed program. Use sudo because refreshing system package metadata requires administrator access:
sudo apt update
Wait for the package-list processing to finish. An update may report that upgrades are available; you do not need to install them for this exercise. If repository access fails, read the error instead of treating an old cached list as proof of a successful refresh.
whois is a command-line tool for querying registration information. Here you will only install and inspect it; no public target query is required. Search the repository metadata with an exact-name pattern. The quoted ^ and $ anchor the beginning and end, so the search stays focused on this package:
apt search '^whois$'
The results include a package named whois. Inspect its description and dependencies with show:
apt show whois
Look for the package name, version, description, and dependency fields. Versions vary as Kali rolls forward. Save the metadata for later comparison using output redirection:
apt show whois > whois-package.txt
APT may print a caution about its interactive command interface on standard error; that diagnostic is separate from the metadata saved through >.
head -n 5 whois-package.txt
The preview should include Package: whois and a version. Repository inspection tells you what can be installed; it does not yet establish that the command is installed.
Install and Identify a Tool
In this step, you will install one small tool, locate its executable, and identify its owning package.
apt install installs named packages and their required dependencies. Its -y option accepts the normal confirmation prompt automatically. Install just the package you inspected:
sudo apt install -y whois
Wait until installation finishes and the Kali prompt returns. This is a focused package installation, not a full-system upgrade.
Locate the installed command:
command -v whois
The path should be /usr/bin/whois. Inspect its version without sending a registration query:
whois --version
The output reports the installed client's version. Read the command's own usage information:
whois --help
The help describes available options. Knowing the entry command and reading help are useful before choosing target-specific arguments.
dpkg tracks installed package files. The -S option searches for the package owning an exact path:
dpkg -S /usr/bin/whois
Expected output includes:
whois: /usr/bin/whois
dpkg -l lists installed package status for a named package:
dpkg -l whois
The package row begins with ii, meaning the package is selected for installation and is installed. The displayed version may vary.
Kali metapackages group related tools through dependencies; they are convenient when building a larger environment. You do not need a full tool collection to learn one command. Keep Kali's supported repositories rather than mixing unrelated distribution sources, and plan broad upgrades separately from an ongoing exercise.
Summary
You located commands, read help, refreshed repository metadata, inspected and installed one package, and queried its installed status and file ownership. You also distinguished updating package lists from upgrading software and installing an individual tool from installing a metapackage.



