You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

CentOS中PHP包名称里的rh-是什么含义?

What does the rh prefix mean for those PHP packages in YUM?

Hey there! Let's break down that rh prefix you're seeing on the last three PHP-PDO packages from your yum search php-pdo output.

  • The rh stands for Red Hat Software Collections (often shortened to SCL).
  • Here's the core idea: RHEL/CentOS systems stick with older, stable software versions (like the PHP 5.4 and 5.5 packages you spotted) as the default—this keeps system tools and built-in dependencies reliable. But if your applications need a newer PHP release, SCL lets you install these updated rh- prefixed packages without overwriting the system's default PHP installation.
  • This means you can run both the old, system-wide PHP and the newer rh- version side by side. To use the rh- package, you just need to enable the collection temporarily (for example, running scl enable rh-php74 bash switches your current shell to use PHP 7.4) or configure it for specific apps.
  • The first unlabeled package is likely the default system PHP package from your distro's base repo, matching the pre-installed PHP version of your OS.

内容的提问来源于stack exchange,提问作者user9719859

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 07:18:21