Wednesday, March 27, 2024

How to View Installed Packages on Ubuntu Using apt


Ubuntu versions 14.04 and newer come equipped with the apt package management system. In this version, you can use the apt command-line utility to view the software installed on your Ubuntu system.

Use the Terminal to run Linux commands on your local system. For remote devices such as VPS, you'll need to connect via SSH using PuTTY or Terminal.

VPS users hosting with Hostinger can obtain login credentials from the SSH access tab in the VPS summary.

Or, you can utilize a browser-based Terminal to list packages directly via the command-line through a web browser. Once connected, run the following command to list packages with apt.

Use the apt list command to display all available Ubuntu 20.04 packages:

sudo apt list

To view only installed packages, run the apt list command with the --installed option:

sudo apt list --installed

Add the less argument to display a smaller output. To do this, add the pipe symbol (|) and less at the end of the command:

sudo apt list --installed | less

The Apt command produces a short list of installed packages. Although less will shorten the output produced, all installed packages are still displayed. To check if a package has been installed, use the grep command with the software name:

sudo apt list --installed | grep packagename

To view more information about a specific package installed on your system, use the apt show command:

sudo apt show packagename

Don't forget to replace the packagename placeholder with the name of the package you're referring to. For example, run the following command to view packages related to Vim:

sudo apt list --installed | grep vim

To display detailed information about a specific Vim package, run the following command:

sudo apt show vim

The apt show command displays information about the vim package.

0 comments:

Post a Comment