CentOS/RHEL 5 RPM Package Search: Official Repository Browser Alternatives


2 views

When working with CentOS 5 or RHEL 5 systems, finding specific RPM packages can be challenging without a proper package browser interface. While Debian-based systems have the excellent packages.debian.org, CentOS/RHEL users often need alternative approaches.

For RHEL 5, Red Hat provides the Package Browser through their customer portal (requires subscription). CentOS users can access packages through:

# CentOS 5 mirror list
http://vault.centos.org/5/
http://archive.kernel.org/centos-vault/5.11/

The most reliable method is using yum commands:

# Search for a package
yum search package-name

# List available packages
yum list available

# Get package details
yum info package-name

Some community-maintained alternatives include:

For advanced users, creating a local package database can be helpful:

# Generate package list
rpm -qa > packages.txt

# Search locally
grep -i "search-term" packages.txt

Let's walk through finding and installing httpd:

# Search for httpd
yum search httpd

# Get version info
yum info httpd

# Install
yum install httpd

Remember that CentOS 5 reached EOL in 2017, so most mirrors have moved packages to vault repositories.


For developers working with legacy CentOS 5 or RHEL 5 systems, finding official RPM packages can be particularly challenging compared to Debian's well-organized packages.debian.org. The package management ecosystem for these older Red Hat-based distributions requires specific approaches.

While there's no direct equivalent to Debian's package browser, these are your best options:

# For CentOS 5 packages:
yum list available | grep package_name

# For RHEL 5 (requires subscription):
rhn_package_search package_name

Several websites provide RPM package searching capabilities:

For automation needs, consider these programmatic approaches:

#!/bin/bash
# Query package info via curl
CENTOS_VERSION=5
PACKAGE_NAME=httpd
curl -s "https://centos.pkgs.org/${CENTOS_VERSION}/centos-${CENTOS_VERSION}-x86_64/${PACKAGE_NAME}/" | grep -A5 "Package Information"

When you find a package, you'll often need its dependencies. This script helps identify them:

#!/bin/bash
# Get dependencies for a package
yum deplist package_name | awk '/provider:/ {print $2}' | sort | uniq

Red Hat provides package browsing through the Red Hat Customer Portal, but requires authentication. You can access it via:

# For registered systems:
subscription-manager repos --list

For teams maintaining legacy systems, consider setting up a local package repository with indexing:

# Create repo metadata
createrepo /path/to/your/rpms/

# Generate HTML index
ls -1 /path/to/your/rpms/ | awk '{print "<a href=\""$1"\">"$1"</a><br>"}' > index.html