Friday, May 3, 2024
135
rated 0 times [  135] [ 0]  / answers: 1 / hits: 589339  / 1 Year ago, sun, january 15, 2023, 12:57:02

I need to clean up my server from PHP 5.3 packages (there are plenty of them) in order to be able to compile PHP 5.2. What is the easiest/safest method to get rid of them all?


More From » package-management

 Answers
7

This method is not advised to be used without careful review. Read below comments.






This should completely remove any package with a name that starts with php and anything related to it.



sudo apt-get purge 'php*'


DON'T PRESS y UNTIL YOU ENSURE that in the removing packages list there are no other packages (besides related to php packages), like:



php-common* python-openssl* php-curl* ... and tons of packages



If so, type n, copy the list (& tidy up from the unrelated packages), and manually remove them:



sudo apt-get purge      php-common* php-curl*    ... and tons of packages

[#43616] Sunday, January 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
truwom

Total Points: 101
Total Questions: 99
Total Answers: 100

Location: Ivory Coast
Member since Tue, Sep 15, 2020
4 Years ago
truwom questions
;