Remove Apache (Ubuntu 12.04)
Hi all,
I want to remove Apache2 so I can try nginx instead. I did $ apt-get remove apache2. $ aptitude show apache2 then says state: not installed but other things (see below) suggest that apache is still installed and most strangely the IP address still resolves in the browser with Quote:
Any ideas please for what more I need to do to remove apache? Thanks... Code:
$ apt-get remove apache2 |
Have you stopped the running Apache instance on the machine? I would expect removing it to stop the daemon but it's possible it's still running for some reason. Also, if you want to remove everything related to apache2 you should probably run apt-get purge apache2 which will remove config files and the example page.
There's also the possibility that the browser you're looking at the test page in has it cached, so it's worth refreshing the page just in case. |
Quote:
Thanks... |
If you run the following it will tell you whether there is an apache instance still running:
Code:
ps -A |grep apache |
Quote:
Thanks... |
Are any other apache packages still installed?
dpkg -l | grep apache |
Quote:
Code:
$ dpkg -l | grep apache |
The package apache2 is a metapackage that is used to install the bunch of packages you see installed on your machine. Removing it will not remove those dependencies, you have to either remove them manually or use the autoremove function of apt-get. Be careful with that function and check twice which packages it want to remove.
|
Quote:
Thanks... |
I would delete all packages that are shown by the command in post 7, if one of them is necessary for nginx (which I doubt, but don't know) installing nginx will just reinstall it.
|
As TobiSGD said
Quote:
If you want to remove it completely, run Code:
$ sudo apt-get remove --purge apache2 apache2-utils You can remove this directory too. It will not harm your system. Code:
$ sudo rm -Rf /etc/apache2 /usr/lib/apache2 /usr/include/apache2 |
Quote:
Thanks... |
Ok,I think I understand what you want.
If you do not want to remove using command line and want uninstaller.exe option. use synaptic package manager. Open synaptic package manager. or you can open it through command line, just run Quote:
Quote:
search apache2. right click on the packages and select "removal" option. Now click on apply. Now packages will be removed. |
Quote:
With Debian-based Linux (and some others) there is a package manager which allows you to install a program and all its dependencies in one go just by selecting the program you want (either in the GUI or using something like apt-get). This is done by making one package depend upon another so when you install package A the package manager knows that package B is required for the functioning of package A so package B is installed also. To aid with package installation there are also metapackages -- these are packages which are themselves empty but they depend upon several other packages which contain programs and libraries. A good example of this is kubuntu-desktop which installs all the necessary programs and libraries for the KDE desktop on Ubuntu so you don't have to work out which packages are needed. In some circumstances you may want to install the individual packages though, and you can do this. More on metapackages here: https://help.ubuntu.com/community/MetaPackages |
All times are GMT -5. The time now is 08:36 PM. |