Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
Firstly I am beginner at linux. I had some problems at apache server and then I tryed to uninstall with these command;
---------------------------------------
apt-get remove --purge apache2
---------------------------------------
Then I try lots of install and unintall commands. Now there is nothing in "/etc/apache2" directory. The command's output is below,
When I try to install command, server is not seems installed;
----------------------------------------
root@cacti:/etc/apache2# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
-----------------------------------------
Then Im trying to uninstall it, the output is below;
-----------------------------------------
root@cacti:/etc/apache2# apt-get -purge apache2
E: Command line option 'p' [from -purge] is not known.
root@cactitest:/etc/apache2# apt-get purge apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apache2*
0 upgraded, 0 newly installed, 1 to remove and 169 not upgraded.
After this operation, 36.9kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 146549 files and directories currently installed.)
Removing apache2 ...
---------------------------------------------
And I found these command from net, I think its getting Apache componenents;
Why is this so hard to uninstall or install a progra to Linux? Isnt this should be easy like executing a command or clicking a button like in Windows? Or am I doing somethings wrong? Now there is nothing I can do and I still dont know is apache installed or uninstalled? In both ways server is not running.
---------------------------------------------
root@cactitest:/etc/apache2# service apache2 restart
.: 49: Can't open /etc/apache2/envvars
--------------------------------------------
you're clearly not typing in the purge command correctly, and it's telling you that:
Quote:
root@cacti:/etc/apache2# apt-get -purge apache2
E: Command line option 'p' [from -purge] is not known.
i.e. it's "apt-get purge apache2" just like you'd already successfully run "apt-get install apache2" without the dash.
uninstalling programs is NOT hard. Make sure it's not your fault before wishing things were more like windows. The same windows where you have to go and identify the package you want to install, go to the right website, find the download link, download the right version of the file and then double click on setup.exe, decompress the installation files to an obscure temp directory, find those files again, run the installer program, then check the license agreement then confirm installation location and installation options etc...
and if you want a gui, try synaptic, amongst others.
Last edited by acid_kewpie; 08-15-2011 at 10:00 AM.
Thanks for your answer acid_kewpie but I tryed "apt-get purge apache2" and it didnt worked too.Is just this command enough for uninstalling completely programs?
OK, so where did "purge" come from? I don't use debian / ubuntu so assumed that was the right command, but it doesn't exist - http://linux.die.net/man/8/apt-get
Last edited by acid_kewpie; 08-16-2011 at 02:57 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.