Answered by the Webhosting Experts

Operating the APT Package Manager

Introduction

The Advanced Package Tool, or APT, is the backbone of software management for Debian-based Linux distributions like Ubuntu, Debian, and Linux Mint. Designed to simplify the installation, updating, and removal of software packages, APT handles complex dependency resolution automatically so you don’t have to manage software manually. Whether you are maintaining a Linux server or managing a desktop environment, mastering the core operations of the APT package manager is an essential skill for system administration and software maintenance.

Updating Package Repositories

Updating package repositories refreshes your system’s local database with the latest available package versions and security patches from remote servers without actually installing any software.

This step is required to be done prior to installing any new package.

Run the command apt update when ready.

Updating Package List
Updating Package List

Searching for a Particular Package 

As an example, to search the speedtest-cli package we will use the command apt search speedtest-cli

Searching for a Package
Searching for a Package

Installing a Package

To install the speedtest-cli package we will use the command apt install speedtest-cli

Installing a Package
Installing a Package

Removing a Package

Removing a package can be done by running the command apt remove PackageName

Removing a Package
Removing a Package

Listing All Installed Packages

Utilizing apt list --installed you can view all installed packages in the server. Using apt list --installed | grep SearchTermHere can help narrow it down to what you’re after.

Listing Installed Packages
Listing Installed Packages
Searching within the List of Installed Packages
Searching within the List of Installed Packages

View Package Information

You can view package information to review further details on where it is coming from, the installed size, and more by using apt info PackageName

Package Information
Package Information

Updating All Packages

Updating all packages in the server can be done by updating the package list from the available repositories followed by upgrading all of the relevant ones. This action can be done with command apt update && apt upgrade.

Updating Package List & Packages
Updating Package List & Packages

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.