Friday, November 6, 2015

Removing Stuff

Once a bunch of stuff is installed and plans change, how do you back out cleanly and start again.

Apache2

  • sudo service apache2 stop
  • sudo apt-get remove --purge apache2
[note: remove removes the application and --purge removes configuration files]

MySQL
  • sudo service mysql stop
  • sudo apt-get remove --purge mysql-common mysql-server
PHP
Crazy powerful command. You may want to be more specific.
  • sudo apt-get remove "php*"
More specific long list of packages may be more appropriate. Edit as necessary. This is probably not a conprehensive list. I should update with sets of commonly used and grouped packages.
  • sudo apt-get remove --purge php-pear php5-cli php5-common php5-curl php5-fpm php5-gd php5-intl php5-mysql php5-pspell php5-readline php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
Need to know what packages you already have installed?
  • dpkg --get-selections | grep -v deinstall

No comments:

Post a Comment