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 02-28-2020, 02:41 PM   #1
rtcary
Member
 
Registered: Dec 2004
Location: Petaluma, CA
Distribution: Centos 4 and RH 9
Posts: 83

Rep: Reputation: 15
I apprently installed the old version of PHP on my Centos8 server


I have version 7.2 installed using yum and need to uninstall it. Since I'm not a Linux guru (once I get my new version of Centos running, I'll forget it - outside of updates) I not sure how to uninstall it.

I used this yum command to install it:

yum install php php-fpm php-mysqlnd php-opcache php-gd php-xml php-mbstring -y

Can I just use

yum uninstall php

or do I need to remove other parts?

I'll be using the REMI 7.3 version.

Many takns for the assistance...

\rtc
 
Old 02-28-2020, 02:44 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,750

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
I think it's
Code:
yum remove 
or
yum erase
but man yum or yum help is where the answer lies.

You should probably remove all the packages you installed before installing the higher version.

Last edited by scasey; 02-28-2020 at 02:47 PM.
 
Old 02-28-2020, 03:04 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Well, technically you should be using dnf (dandified yum) with 8.x, but yum still works, so whatever.

You can just do a
Code:
dnf remove php php-fpm php-mysqlnd php-opcache php-gd php-xml php-mbstring
, dnf (and yum that preceeded it) automatically removes any orphans that were pulled in for a package that has been removed.
 
  


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
Alternative to /etc/hosts/allow on CentOS8 elliot01 Linux - Security 13 01-11-2021 10:12 AM
Centos8 Installer can't detect disk santhosh94 Linux - Newbie 5 11-14-2019 07:42 AM
Centos8 Installer can't detect disk santhosh94 Linux - Server 2 11-12-2019 02:47 PM
big plans for old old old laptop vdogvictor Linux - Laptop and Netbook 0 05-26-2004 07:33 PM

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

All times are GMT -5. The time now is 03:02 PM.

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