How to remove complete php

Discussion in 'General' started by pecka33, Nov 1, 2023.

  1. pecka33

    pecka33 Member

    Hello,
    how can i remove php 5.6 and 7.1? I dont use it them,, i remove it in ispconfig panel, but in server are still installed. I tried to remove it via command like apt-get remove php7.1 or
    apt-get remove php7.1 php7.1-cli php7.1-cgi php7.1-fpm php7.1-gd php7.1-mysql php7.1-imap php7.1-curl php7.1-intl php7.1-pspell php7.1-recode php7.1-sqlite3 php7.1-tidy php7.1-xmlrpc php7.1-xsl php7.1-zip php7.1-mbstring php7.1-soap php7.1-opcache php7.1-common php7.1-json php7.1-readline php7.1-xml

    but look like still installed, all files in etc/php folder.

    Any idea?
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you want to remove configuration files as well, you'll need to use apt purge instead of apt remove.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you already used apt remove, you can still use apt purge. From man apt -page:
    If you want to find out which packages are removed but still have configuration files, use
    Code:
    dpkg --list
    and see lines starting with "rc".
     

Share This Page