How to Install Apache Zookeeper on Ubuntu
Apache ZooKeeper Ubuntu is an open-source server that e...
Listing installed packages on operating systems, such as Ubuntu, is essential to manage your system effectively. Listing packages can serve multiple purposes, such as troubleshooting, system maintenance, and optimizing your operating system.
Moreover, by inspecting these packages, you can identify and remove any unnecessary and unwanted packages from the system.
Through this guide, you can check for listing installed packages on Ubuntu 22.04 through this guide.
Learn about Changing Host name on Ubuntu
In this article, we will implement three (3) different methods to list the installed packages on Ubuntu 22.04. These methods are:
Utilize the APT package manager to show installed packages on your Ubuntu machine through these different options.
Option 1: List All Installed Packages
Run the command presented below to provide a comprehensive list of all installed packages on your terminal screen:
apt list --installed
This command will give you a detailed list of installed packages along with its version number.
Option 2: List Installed Package by Specific Name
You can also use the APT command to search installed packages on Ubuntu containing the specific name of package, for example “python”:
apt list --installed | grep python
In the above output, the command returns only the specific package on your Ubuntu 22.04 terminal.
Option 3: List Manually Installed Packages
To show a list of packages on Ubuntu that you have manually installed through using the command:
apt-mark showmanual
You will see the only list of those packages that have been installed by you, manually.
Additionally, you can use the provided command to count the number of manually installed packages on your system:
apt-mark showmanual | wc -l
In your terminal, you will find only the total count of the installed packages after executing the command.
Explore the capabilities of Ubuntu VPS
Experience the dependability of the most widely used Linux distribution globally, coupled with the versatility of a virtual server. Revel in high-speed performance and minimal latency for an optimized computing experience. Try Ubuntu VPS free for 30 days.
The following commands will be used for listing and viewing the installed packages using dpkg, a package manager.
Option 1: List All Installed Packages
You can use the dpkg followed by the –list option to view a detailed list of all installed packages:
dpkg --list
The above command displays a table of installed packages including their name, version, and architecture of the packages.
Option 2: List Installed Package by Specific Name
If you are searching for a specific package, such as “python,” on your Ubuntu 22.04 system, execute the following command:
dpkg -l | grep python
The command will filter the rest of the installed packages and provide you the list only containing “python”.
Option 3: List Exclude Deinstalled Packages
Run the command to list only installed packages, excluding those marked for removal (deinstall):
dpkg --get-selections | grep -v deinstall
The command, after executing, will provide a list of installed packages on your terminal screen.
You can use the snap package manager to list the installed packages on your Ubuntu 22.04 system.
Option 1: List Installed Snap Packages
With the help of the provide command, you can view a list of installed Snap packages on your Ubuntu system:
snap list
After executing the command, a tabular list will be shown on your Ubuntu terminal containing the name of the package, version, and more.
Ubuntu 22.04 offers various command-line tools for listing installed packages. Whether utilizing apt, dpkg, or snap, these methods provide simple management tools, including viewing installed packages on your system.
Ubuntu 22.04 offers various command-line tools like apt, dpkg, and snap to list the installed packages on your Ultahost’s Linux VPS Host. You can choose the option that best suits your needs.
You can use the dpkg
command along with the --get-selections
option to list all installed packages.
You can use grep
to filter the package list.
You can use dpkg
with the -l
option to display additional information, including package versions.
Yes, you can use apt
to list installed packages as well.