Installing Rpm On Centos With Yum Brands

  
Installing Rpm On Centos With Yum Brands Average ratng: 4,7/5 9075votes
Centos Rpm Command

PHP 7.2 is the latest stable release of PHP. May of popular yum repositories are providing rpm packages for PHP 7. This article is using Remi and EPEL yum repositories for installing required packages on your system.

This article will help you to install PHP 7.2, PHP 7.1 on CentOS & Red Hat 7.4 & 6.9 servers. This tutorial has been tested with CentOS 7.4.

Centos Yum Install

• Install Yum Repository First of all, you need to enable Webtatic and EPEL yum repositories on your system. Windows Loader V 2.2 By Daz. Use the following command to install EPEL repository on your CentOS and Red Hat 7/6 systems Use this command to install epel-release yum repository. Livetype For Mac Serial. Yum install epel-release and now execute one of the following commands as per your operating system version to install Remi repository. ### For CentOS/RHEL 7 ### rpm -Uvh ### For CentOS/RHEL 6 ### rpm -Uvh Install PHP 7.2 Use the following command to install PHP 7.2 on your CentOS system. This will enable remi-php72 yum repository and install the required packages.

Yum --enablerepo=remi-php72 install php Now use the following command to check installed PHP version on your system. Php -v PHP 7.2.0 (cli) (built: Nov 28 2017 20:22:21) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies Install PHP 7.1 Use the following command to install PHP 7.1 on your CentOS system.

This will enable remi-php71 yum repository and install the required packages. Yum --enablerepo=remi-php71 install php Now use the following command to check installed PHP version on your system. Php -v PHP 7.1.12 (cli) (built: Dec 1 2017 13:53:12) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies Install PHP Modules You may also need to install additional PHP modules based on your application requirements. Below command will install some more useful PHP modules. ### For PHP 7.2 ### yum --enablerepo=remi-php72 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt ### For PHP 7.1 ### yum --enablerepo=remi-php71 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt To find out other available PHP modules use the following command. Change the PHP version to search packages for different PHP version.