How to List Installed Packages on CentOS

The set of packages that are installed by default on CentOS depends on the version of CentOS and the installation method that you choose.

In general, CentOS is a minimalistic distribution, so the default installation includes only a minimal set of packages. The exact set of packages included in the default installation may vary depending on the version of CentOS and the installation method that you choose.

Default Installed Packages on CentOS

Here are some of the packages that are typically included in the default installation of CentOS:

  • The Linux kernel: This is the core of the operating system and is responsible for managing the hardware and running user programs.
  • The GNU C library: This is a collection of standard libraries that provide support for the C programming language.
  • System Utilities: These are programs that are used to manage and maintain the system, such as systemd, systemctl, and systemd-sysv.
  • Shells: These are programs that provide a command-line interface for interacting with the operating system, such as bash and sh.
  • Text editors: These are programs that are used for editing text files, such as vi and nano.
  • Networking tools: These are programs that are used for configuring and managing networking on the system, such as ip, ifconfig, and route.
  • Package management tools: These are programs that are used for installing, updating, and removing packages on the system, such as rpm, yum, and dnf.
  • Development tools: These are programs that are used for developing software, such as gcc and make.
  • Documentation: This includes documentation for the operating system and various programs that are installed on the system.

Again, the exact set of packages that are included in the default installation of CentOS may vary depending on the version of CentOS and the installation method that you choose.

How to List Installed Packages on CentOS

To list installed packages on CentOS, you can use the rpm command with the -qa option. This will list all of the installed packages on your system.

Here is an example of how to use the rpm command to list installed packages:

$ rpm -qa

This will output a list of all of the installed packages on your system, one package per line.

You can also use the yum command to list installed packages. The yum command is a package manager for CentOS that can be used to install, update, and remove packages.

To list installed packages using yum, you can use the list subcommand with the installed option:

$ yum list installed

This will output a list of all of the installed packages on your system, along with the version number and installation status.

You can also use the dnf command, which is the successor to yum, to list installed packages. The dnf command has similar syntax to yum, so you can use the list subcommand with the installed option:

$ dnf list installed

This will output a list of all of the installed packages on your system, along with the version number and installation status.

Note that all of these commands will only list packages that were installed using the package manager (i.e., rpm, yum, or dnf). If you have installed packages manually (e.g., by compiling from source or installing a binary package), they will not be listed by these commands.

Visited 8 times, 1 visit(s) today

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top