Skip to content

Instantly share code, notes, and snippets.

@fetus-hina
Last active August 29, 2015 14:04
Show Gist options
  • Save fetus-hina/3941974886668df89e7c to your computer and use it in GitHub Desktop.
Save fetus-hina/3941974886668df89e7c to your computer and use it in GitHub Desktop.
OL7 php install
# yum install php
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.4.16-21.el7 will be installed
--> Processing Dependency: php-cli(x86-64) = 5.4.16-21.el7 for package: php-5.4.16-21.el7.x86_64
--> Processing Dependency: httpd-mmn = 20120211-x86-64 for package: php-5.4.16-21.el7.x86_64
--> Processing Dependency: php-common(x86-64) = 5.4.16-21.el7 for package: php-5.4.16-21.el7.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.4.16-21.el7 will be installed
--> Processing Dependency: httpd-mmn = 20120211-x86-64 for package: php-5.4.16-21.el7.x86_64
---> Package php-cli.x86_64 0:5.4.16-21.el7 will be installed
---> Package php-common.x86_64 0:5.4.16-21.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-21.el7.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
---> Package php.x86_64 0:5.4.16-21.el7 will be installed
--> Processing Dependency: httpd-mmn = 20120211-x86-64 for package: php-5.4.16-21.el7.x86_64
--> Finished Dependency Resolution
Error: Package: php-5.4.16-21.el7.x86_64 (ol7_latest)
Requires: httpd-mmn = 20120211-x86-64
Installed: httpd-2.4.6-18.0.1.el7_0.x86_64 (@ol7_latest)
httpd-mmn = 20120211
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
Available: httpd-2.4.6-17.0.1.el7.x86_64 (ol7_latest)
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211x8664
httpd-mmn = 20120211
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
# yum remove httpd
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-18.0.1.el7_0 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================================
Removing:
httpd x86_64 2.4.6-18.0.1.el7_0 @ol7_latest 3.7 M
Transaction Summary
===============================================================================================================================================================================================================
Remove 1 Package
Installed size: 3.7 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : httpd-2.4.6-18.0.1.el7_0.x86_64 1/1
Verifying : httpd-2.4.6-18.0.1.el7_0.x86_64 1/1
Removed:
httpd.x86_64 0:2.4.6-18.0.1.el7_0
Complete!
# yum install php
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.4.16-21.el7 will be installed
--> Processing Dependency: php-cli(x86-64) = 5.4.16-21.el7 for package: php-5.4.16-21.el7.x86_64
--> Processing Dependency: httpd-mmn = 20120211-x86-64 for package: php-5.4.16-21.el7.x86_64
--> Processing Dependency: php-common(x86-64) = 5.4.16-21.el7 for package: php-5.4.16-21.el7.x86_64
--> Processing Dependency: httpd for package: php-5.4.16-21.el7.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-18.0.1.el7_0 will be installed
---> Package php-cli.x86_64 0:5.4.16-21.el7 will be installed
---> Package php-common.x86_64 0:5.4.16-21.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-21.el7.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================================
Installing:
php x86_64 5.4.16-21.el7 ol7_latest 1.3 M
Installing for dependencies:
httpd x86_64 2.4.6-18.0.1.el7_0 ol7_latest 1.2 M
libzip x86_64 0.10.1-8.el7 ol7_latest 47 k
php-cli x86_64 5.4.16-21.el7 ol7_latest 2.7 M
php-common x86_64 5.4.16-21.el7 ol7_latest 558 k
Transaction Summary
===============================================================================================================================================================================================================
Install 1 Package (+4 Dependent packages)
Total download size: 5.8 M
Installed size: 21 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): libzip-0.10.1-8.el7.x86_64.rpm | 47 kB 00:00:01
(2/5): httpd-2.4.6-18.0.1.el7_0.x86_64.rpm | 1.2 MB 00:00:01
(3/5): php-5.4.16-21.el7.x86_64.rpm | 1.3 MB 00:00:02
(4/5): php-common-5.4.16-21.el7.x86_64.rpm | 558 kB 00:00:01
(5/5): php-cli-5.4.16-21.el7.x86_64.rpm | 2.7 MB 00:00:04
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 951 kB/s | 5.8 MB 00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : httpd-2.4.6-18.0.1.el7_0.x86_64 1/5
Installing : libzip-0.10.1-8.el7.x86_64 2/5
Installing : php-common-5.4.16-21.el7.x86_64 3/5
Installing : php-cli-5.4.16-21.el7.x86_64 4/5
Installing : php-5.4.16-21.el7.x86_64 5/5
Verifying : php-common-5.4.16-21.el7.x86_64 1/5
Verifying : php-cli-5.4.16-21.el7.x86_64 2/5
Verifying : libzip-0.10.1-8.el7.x86_64 3/5
Verifying : httpd-2.4.6-18.0.1.el7_0.x86_64 4/5
Verifying : php-5.4.16-21.el7.x86_64 5/5
Installed:
php.x86_64 0:5.4.16-21.el7
Dependency Installed:
httpd.x86_64 0:2.4.6-18.0.1.el7_0 libzip.x86_64 0:0.10.1-8.el7 php-cli.x86_64 0:5.4.16-21.el7 php-common.x86_64 0:5.4.16-21.el7
Complete!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment