0
0
Linux CLIscripting~15 mins

apt (Debian/Ubuntu) basics in Linux CLI - Mini Project: Build & Apply

Choose your learning style9 modes available
apt (Debian/Ubuntu) basics
📖 Scenario: You are managing a Debian or Ubuntu system. You want to learn how to use apt commands to check for updates, install software, and verify installed packages.
🎯 Goal: Learn to use basic apt commands to update package lists, install a package, and check installed packages.
📋 What You'll Learn
Use apt update to refresh package lists
Use apt install to install a specific package
Use apt list --installed to list installed packages
💡 Why This Matters
🌍 Real World
System administrators and users often need to install, update, and manage software packages on Debian or Ubuntu systems using <code>apt</code>.
💼 Career
Knowing basic <code>apt</code> commands is essential for Linux system administration, DevOps roles, and software development environments using Debian-based Linux.
Progress0 / 4 steps
1
Update package lists
Type the command sudo apt update to refresh the package lists from the repositories.
Linux CLI
Need a hint?

This command downloads the latest package information so your system knows about new versions.

2
Install the curl package
Type the command sudo apt install curl to install the curl package.
Linux CLI
Need a hint?

This command downloads and installs the curl tool for transferring data with URLs.

3
List installed packages
Type the command apt list --installed to show all installed packages on your system.
Linux CLI
Need a hint?

This command lists all packages currently installed on your system.

4
Show installed version of curl
Type the command apt list --installed | grep curl to find the installed version of curl.
Linux CLI
Need a hint?

This command filters the installed packages list to show only lines containing curl.