LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2018, 10:20 AM   #1
rtcary
Member
 
Registered: Dec 2004
Location: Petaluma, CA
Distribution: Centos 4 and RH 9
Posts: 83

Rep: Reputation: 15
Need some help with yum


In my efforts to find a way of updating the php on my Centos 7 home server to 5.6, I came across this sequence:

Code:
yum -y update
yum -y install epel-release
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget https://centos6.iuscommunity.org/ius-release.rpm
rpm -Uvh ius-release*.rpm
yum -y update
yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath php56u-soap
Since I do not earn a living maintaining Linux, my knowledge is not very deep. Where I need help (the yum man is confusing for me), is understanding the use of other libraries.

* If I remove the Centos 7 version of php and run the above code and things do not work, can I go back to the original php (5.4) by

Code:
# yum install php
* Whould I have to "remove" any of the installed code in the above sequence?

* If the install goes properly (e.g. LAMP works), would

Code:
# yum update php
use the approprilibrary/source?

Any help greatly appreciated.

Todd

Last edited by rtcary; 03-28-2018 at 10:22 AM.
 
Old 03-28-2018, 11:13 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I'd suggest you upgrade to CentOS 7.4 and get the latest updates for it. While you stated you wish to setup a "home server", and the php package seems to have something to do with it, is this a web server you're trying to get setup?

To downgrade a package with yum, you would need to use the downgrade option. You can also use the yum history command as well.

Also, the php package is in the "base" repo, not the "epel" repo, from what I can see.

You may also wish to have a look at this: https://access.redhat.com/solutions/64069
 
Old 03-28-2018, 11:28 AM   #3
rtcary
Member
 
Registered: Dec 2004
Location: Petaluma, CA
Distribution: Centos 4 and RH 9
Posts: 83

Original Poster
Rep: Reputation: 15
Yes, this is a home office server I use for testing web applications. Unfortunately, I crashed my server some weeks ago while doing an update (operator error). It was running fine since I installed Centos 7 over a year ago runing php and able to work on Concrete5 5.7 which requires php 5.6+.

Is Centos 7.4 an official release? I've done yum updates and the version of Centos is 3.10.

Todd
 
Old 03-28-2018, 11:37 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by rtcary View Post
Yes, this is a home office server I use for testing web applications. Unfortunately, I crashed my server some weeks ago while doing an update (operator error). It was running fine since I installed Centos 7 over a year ago runing php and able to work on Concrete5 5.7 which requires php 5.6+.

Is Centos 7.4 an official release? I've done yum updates and the version of Centos is 3.10.

Todd
Yes, it is an official release, that you can download now. Are you saying you updated CentOS 3.10 ?

Also, while there's the "stock" version of the php package in the "base" repo, yes, you will need the "epel" repo for the php 5.6 package.
 
Old 03-28-2018, 11:38 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You can check the OS, kernel version using this page https://linuxconfig.org/how-to-check-centos-version.
I think you are confusing the kernel (3.10) with the OS (7.x) ...
 
Old 03-30-2018, 03:39 PM   #6
rtcary
Member
 
Registered: Dec 2004
Location: Petaluma, CA
Distribution: Centos 4 and RH 9
Posts: 83

Original Poster
Rep: Reputation: 15
When I run

Code:
yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath php56u-soap
I get the following response.

Code:
Packages skipped because of dependency problems:
    pcre-devel-8.32-17.el7.x86_64 from base
    php56u-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-bcmath-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-cli-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-common-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-devel-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-gd-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-intl-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-mbstring-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-mcrypt-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-mysqlnd-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-opcache-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-pdo-5.6.34-1.ius.centos7.x86_64 from ius
    1:php56u-pear-1.10.5-1.ius.centos7.noarch from ius
    php56u-pecl-jsonc-1.3.10-2.ius.centos7.x86_64 from ius
    php56u-pecl-jsonc-devel-1.3.10-2.ius.centos7.x86_64 from ius
    php56u-process-5.6.34-1.ius.centos7.x86_64 from ius
    php56u-xml-5.6.34-1.ius.centos7.x86_64 from ius
Am I missing some step or command? I did a

Code:
# yum remove php
before running the attempt to install 5.6.

\rtc
 
Old 03-30-2018, 04:03 PM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
This should help.
 
Old 03-30-2018, 05:24 PM   #8
rtcary
Member
 
Registered: Dec 2004
Location: Petaluma, CA
Distribution: Centos 4 and RH 9
Posts: 83

Original Poster
Rep: Reputation: 15
Thank you and the LinuxQuestions contributors for assistance.

\rtc
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: DNF (Dandified yum), the next generation of yum package manager (Fork of Yum) for Fedora system LXer Syndicated Linux News 0 08-07-2016 05:12 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration