[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP 4 uninstall

On Mon, May 22, 2006 at 10:44:34PM +0200, JB MORLA wrote:
>    I have mistakenly installed php4 when I wanted php5.
>    Which apt-get commands should I use to completely remove PHP 4?

This ought to do it:

apt-get --purge remove `dpkg --get-selections | grep php4 | awk '{print $1}'`

You might prefer to see what you're removing first, so you could just

dpkg --get-selections | grep php4

and then apt-get --purge remove them individually ...



Paul Dwerryhouse				| PGP Key ID: 0x6B91B584
Using Linux's ethernet bridge support:

Reply to: