Post-Install Linux Configuration
Once you have a fresh Linux installation (whether on bare metal or WSL), the first step is to bring the system up to date and install the core toolset required for development.
1. System Update & Upgrade
Linux distributions are often installed from images that might be a few weeks or months old. The first command you should always run ensures your package lists and installed software are current.
- Open your terminal.
- Run the update command:
sudo apt update && sudo apt upgrade -yupdate: Refreshes the list of available software.upgrade: Installs the newest versions of your current software.-y: Automatically answers "yes" to prompts.
2. Install Essential Packages
Most developer tools rely on a standard set of libraries and utilities. Installing these now prevents "Command Not Found" errors later.
Run the following block to install the essentials:
sudo apt install -y build-essential curl git wget unzip
Breakdown of Tools:
- build-essential: A bundle containing the GCC compiler, Make, and other tools needed to compile software from source.
- curl / wget: Utilities for downloading files from the command line.
- git: The industry-standard version control system.
- unzip: Required for extracting
.ziparchives.
3. Housekeeping
After installing updates and new packages, it is good practice to remove any unused dependencies to keep your system lean.
sudo apt autoremove -y
4. Verification
To ensure your environment is ready, check the versions of your key tools:
git --version
curl --version
cc --version
If these commands return version numbers, your Linux environment is configured and ready for development.