Let me explain a situation: I want to automate some stuff in php (check if it is installed and if not then install it, not remove the parent package and have a broken system after execute… Situation: oops I’ve forgot to set the module and don’t check for it (I mean I want to install it not remove the whole php7.0 package so this script won’t work anymore after it, because php is not installed anymore, and no fallback … Written in php <?php $module = ‘’; Exec(‘apt install -y php7.0-’ . $module, $output); apt install -y php7.0- Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 ssl-cert Use 'apt autoremove' to remove them. The following packages will be REMOVED: php7.0 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 80.9 kB disk space will be freed. So below, that is a bullshit human error which broke the system written in php (and even removing php itself) So case: wordpress bug can execute a php script if it could get the right permissions: And no more wordpress sites everywhere… Your response: install, remove, purge (apt-get(8)) Performs the requested action on one or more packages specified via regex(7), glob(7) or exact match. The requested action can be overridden for specific packages by append a plus (+) to the package name to install this package or a minus (-) to remove it. With kind regards, Remco van der Velde Sent from Mail for Windows 10 From: Dominik George Hi, > I accidentally added a '-' to the apt install command and it wants to remove the installed packages and it's dependencies. thanks for reporting that apt works as expected for you :)! https://manpages.debian.org/stretch/apt/apt.8.en.html install, remove, purge (apt-get(8)) Performs the requested action on one or more packages specified via regex(7), glob(7) or exact match. The requested action can be overridden for specific packages by append a plus (+) to the package name to install this package or a minus (-) to remove it. -nik |