How To Install php-common on Rocky Linux 8

In this tutorial we learn how to install php-common on Rocky Linux 8. php-common is Common files for PHP

Introduction

In this tutorial we learn how to install php-common on Rocky Linux 8.

What is php-common

The php-common package contains files used by both the php package and the php-cli package.

We can use yum or dnf to install php-common on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install php-common.

Install php-common on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-common using dnf by running the following command:

sudo dnf -y install php-common

Install php-common on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-common using yum by running the following command:

sudo yum -y install php-common

How To Uninstall php-common on Rocky Linux 8

To uninstall only the php-common package we can use the following command:

sudo dnf remove php-common

php-common Package Contents on Rocky Linux 8

/etc/php.d
/etc/php.d/20-bz2.ini
/etc/php.d/20-calendar.ini
/etc/php.d/20-ctype.ini
/etc/php.d/20-curl.ini
/etc/php.d/20-exif.ini
/etc/php.d/20-fileinfo.ini
/etc/php.d/20-ftp.ini
/etc/php.d/20-gettext.ini
/etc/php.d/20-iconv.ini
/etc/php.d/20-phar.ini
/etc/php.d/20-sockets.ini
/etc/php.d/20-tokenizer.ini
/etc/php.ini
/usr/lib/.build-id
/usr/lib/.build-id/15
/usr/lib/.build-id/15/fab51305c288f4f4ee69da8df521d2a130cc0e
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/9406e92d001b43521b39e5996d0ce8743ee3d3
/usr/lib/.build-id/20
/usr/lib/.build-id/20/14a2087473f345183c972867938ba32751f1a8
/usr/lib/.build-id/31
/usr/lib/.build-id/31/5434dd9437d1e0367996eb05bf0b172979cbcf
/usr/lib/.build-id/57
/usr/lib/.build-id/57/d307d79bb8b7d6ac779daf799c3b80ef11839e
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/a170f8aee4a09c3bc7fc7e7518152df867a275
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/753521ff47a10067076c17fed5ca9ebbfff659
/usr/lib/.build-id/79
/usr/lib/.build-id/79/398cec55559a40e7f6e3ed35b4e27c7008d33a
/usr/lib/.build-id/83
/usr/lib/.build-id/83/1ea438f679817297ca517080cc855d10d983aa
/usr/lib/.build-id/85
/usr/lib/.build-id/85/a416e1f7ce538ef3f8dc237aee06055d60c77b
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/20436d5038a7fde44579eb4db86a617f90d3a8
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/4cc833d47448024f0599afd09d14a1fb67dc8c
/usr/lib64/php
/usr/lib64/php/modules
/usr/lib64/php/modules/bz2.so
/usr/lib64/php/modules/calendar.so
/usr/lib64/php/modules/ctype.so
/usr/lib64/php/modules/curl.so
/usr/lib64/php/modules/exif.so
/usr/lib64/php/modules/fileinfo.so
/usr/lib64/php/modules/ftp.so
/usr/lib64/php/modules/gettext.so
/usr/lib64/php/modules/iconv.so
/usr/lib64/php/modules/phar.so
/usr/lib64/php/modules/sockets.so
/usr/lib64/php/modules/tokenizer.so
/usr/share/doc/pecl
/usr/share/doc/php-common
/usr/share/doc/php-common/CODING_STANDARDS
/usr/share/doc/php-common/CREDITS
/usr/share/doc/php-common/EXTENSIONS
/usr/share/doc/php-common/NEWS
/usr/share/doc/php-common/README.EXT_SKEL
/usr/share/doc/php-common/README.GIT-RULES
/usr/share/doc/php-common/README.MAILINGLIST_RULES
/usr/share/doc/php-common/README.NEW-OUTPUT-API
/usr/share/doc/php-common/README.PARAMETER_PARSING_API
/usr/share/doc/php-common/README.REDIST.BINS
/usr/share/doc/php-common/README.RELEASE_PROCESS
/usr/share/doc/php-common/README.SELF-CONTAINED-EXTENSIONS
/usr/share/doc/php-common/README.STREAMS
/usr/share/doc/php-common/README.SUBMITTING_PATCH
/usr/share/doc/php-common/README.TESTING
/usr/share/doc/php-common/README.TESTING2
/usr/share/doc/php-common/README.UNIX-BUILD-SYSTEM
/usr/share/doc/php-common/README.WIN32-BUILD-SYSTEM
/usr/share/doc/php-common/README.input_filter
/usr/share/doc/php-common/README.md
/usr/share/doc/php-common/php.ini-development
/usr/share/doc/php-common/php.ini-production
/usr/share/licenses/php-common
/usr/share/licenses/php-common/LICENSE
/usr/share/licenses/php-common/TSRM_LICENSE
/usr/share/licenses/php-common/libmagic_LICENSE
/usr/share/licenses/php-common/phar_LICENSE
/usr/share/licenses/php-common/timelib_LICENSE
/usr/share/php
/usr/share/tests
/usr/share/tests/pecl
/var/lib/php
/var/lib/php/peclxml

References

Summary

In this tutorial we learn how to install php-common on Rocky Linux 8 using yum and dnf.