Methods of payment Abuse

How to view Linux packages

18.03.2023, 01:07

In the Linux operating system, packages are special archives that contain software and information about installing and configuring it. Each package is a set of files associated with a specific program or library.

What are packages

Packages in Linux are used to manage the installation, uninstallation, and upgrade of software. When you install a program, the package manager downloads the appropriate package from the repository, unzips it and copies the files to your computer, and performs the necessary customizations.

They have the extension .rpm (for Red Hat-based distributions such as Fedora and CentOS) or .deb (for Debian-based distributions such as Ubuntu and Linux Mint). There are many different package managers, such as apt, yum, and pacman, each of which uses its own package format.

What they are for

Packages allow you to easily manage the installation, upgrade, and uninstallation of programs on your system. In Linux, there are several package formats such as RPM (Red Hat Package Manager), DEB (Debian Package), TGZ (tarball) and others.

They also contain metadata such as the name, version and description of the program, as well as author and license information. This metadata allows you to manage software dependencies and updates.

Linux packages can be installed from official Linux distribution repositories or from third-party sources. You can also create your own packages to install on other Linux systems.

Viewing packages in different distributions

In most Linux distributions, you can view the list of installed packages using a special command in the terminal.

Debian and Ubuntu

In Debian and Ubuntu you can use the dpkg-query command:

dpkg-query -l

This command will output a complete list of installed packages in "package, version, description" format.

Fedora, CentOS

In Fedora, CentOS and other distributions that use the yum or dnf package management utility, you can use the command:

yum list installed

Alternatively

dnf list installed

These commands will output a list of installed packages with their versions and descriptions.

Arch Linux

In Arch Linux and its derivatives, you can use the command:

pacman -Q

This command will list all installed packages.

OpenSUSE

In OpenSUSE you can use the command:

zypper search -installed-only

This will list all installed packages.

Slackware

In Slackware you can use the command:

ls /var/log/packages/

Now you know how to see the list of packages in each distribution.