Unlike Debian's packages.debian.org, CentOS doesn't have an official web interface for package browsing. However, you have several good alternatives:
- EPEL Package Browser: For EPEL repository packages (https://apps.fedoraproject.org/packages/)
- CentOS Vault: For older CentOS versions (http://vault.centos.org/)
- pkgs.org: Third-party package search (https://pkgs.org/)
The most powerful way to search packages in CentOS is through these commands:
# Search for a package by name
yum search package-name
# Get detailed info about a package
yum info package-name
# List all available packages
yum list available
# Search package contents
repoquery -l package-name
Let's say you're looking for Nginx:
# First search for available versions
yum search nginx
# Then get detailed information
yum info nginx
# View all files included in the package
repoquery -l nginx
For more advanced searches, use these commands:
# Search packages providing a specific file
yum provides */filename
# Find dependencies
yum deplist package-name
# Show changelog
yum changelog package-name
For faster searches, keep your package database updated:
# Clean cache
yum clean all
# Update metadata
yum makecache
# Check for updates
yum check-update
Coming from Debian/Ubuntu, you're probably familiar with the convenient packages.debian.org
web interface. CentOS, being RHEL-based, has a different package management ecosystem. The primary ways to browse packages are:
While CentOS doesn't have an exact equivalent to packages.debian.org, these resources exist:
- EPEL: fedora.pkgs.org (for EPEL packages)
- CentOS Vault: vault.centos.org (for older versions)
As a CentOS sysadmin, you'll primarily use these tools:
# Search for a package
yum search package-name
# Get detailed info
yum info package-name
# List all available packages (CentOS 7)
repoquery -a --qf="%{name}" | sort
# List files in a package
rpm -ql package-name
CentOS 8 and newer use DNF as the default package manager:
# Search packages
dnf search term
# Show package details
dnf info package
# List available packages
dnf list available
For more advanced searching:
# Search package descriptions
repoquery --qf="%{name}: %{summary}" -a | grep -i "search term"
# List dependencies
repoquery --requires package-name
# Find which package provides a file
yum provides /path/to/file
Remember that CentOS uses RPM packages, so you can also use rpm
commands:
# Query installed packages
rpm -qa | grep search-term
# Show info about an installed package
rpm -qi package-name