LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Uninstall - a clean start (http://www.linuxquestions.org/questions/debian-26/uninstall-a-clean-start-878552/)

Alex_Uconomy 05-03-2011 09:23 AM

Uninstall - a clean start
 
Hi guys

I am new to Linux, have played around with installations and set-ups etc. I now want to have a clean start on my LAMP inc. tomcat set-up. (as I messed up my Apache + tomcat connection / configuration)

What is the best may to uninstall packages, as well as getting rid of their folders !? (Apache, php and tomcat)

e.g. when using remove command, whole Apache folder is still there / then the install seems to remove packages, but also leave config files etc still in file system.

Is it recommended to just install a new packages over an old one ? "undoing previous changes"
What is the best way to clean up directories and corresponding packages !?

Best regards
Alex

AlucardZero 05-03-2011 09:57 AM

"apt-get purge packagename" will also remove config files.

Alex_Uconomy 05-04-2011 04:01 AM

When i do this apt-get purge tomcat5.5

then i go into /etc/tomcat5.5 folder -. run dir to list content, its all still there !!!???

Alex_Uconomy 05-04-2011 07:37 AM

+ I have deleted several files manually now, when trying to install apache, it doesnt do anything . .

however. how can i get back init.d/apache2 file to start and stop the server, trying to check if server is reinstalled and running correctly !!!


All times are GMT -5. The time now is 04:53 PM.