Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uninstalling apache

Status
Not open for further replies.

rushtosri

Programmer
Feb 25, 2001
80
US
Hi!

I'm new to linux. I've installed RedHat 7.2 on my system. While installing linux, by default Apache 1.3.20 is also installed. Now i want to remove this version and install a new version. I dont know how to proceed. I tried to use package manager under kde. But it didnt work out.

Any suggestions welcome. Tell me procedure to uninstall any software from shell prompt rather than from kde.

Thankx in advance..
Shri.
 
If its installed as an RPM, then you can use the rpm -e command.

rpm -e apache

To see which packages are installed, use...

rpm -qa

To uninstall any of the packages that the rpm -qa command shows you, just use rpm -e 'package_name' without the version number.

ChrisP ---------------------------------------
If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
You should probably be able to find the upgraded version packed as an RPM, either at RedHat.com, or on rpmfind. In this case the easiest way is to just upgrade the file:

rpm -Uvh package.rpm

 
Hi!

Thankx for ur time. Well, I'm not able to start Apache server with the version which is installed during installation of Redhat 7.2. So i want to remove that version and install the new one which i've downloaded from the net. When i try rpm -e apache, i get dependency check errors and the uninstall procedure aborts. I'm worried if other Redhat applications uses any of those apache installation files. I want to know whether it is safe to remove apache completely without affecting the performance of other installed applications.

Recently i installed the new version of apache 1.3.26 also. But if i run httpd -v at the shell prompt, my old version details are displayed. My new version is not at all detected. So now i want to remove that old version(1.3.20).

Any suggestions welcome...
With regards,
Shri.
 
What dependency errors do you get when uninstalling? Show us the package names.

Type 'locate httpd' to see where your running the httpd command from. How did you install the new version of Apache? Source or RPM? You might have to add the folder where the new httpd is located to your path if you want to be able to execute it without specifying a complete path to it.

1.3.26 is not the newest version of Apache. 2.0.39 is the newest version.

ChrisP ---------------------------------------
If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
I get:
error: removing these packages would break dependencies:
apache is needed by apacheconf-0.8.2-2
webserver is needed by mod_dav-1.0.3-5
webserver is needed by mod_perl-1.26-5
webserver is needed by mod_ssl-2.8.7-4
webserver is needed by webalizer-2.01_10-1

I have installed Apache 1.3.26 (from source). Yeah! i too heard that 2.0.39 is the newest version. I'm thinking of installing that new version itself. But again the problem is how do i uninstall the old versions(one which is installed by default while intalling Redhat 7.2 (Apache 1.3.20) and the one recently installed(Apache 1.3.26))? I wanted to know is there any other redhat application which uses apache or its dependencies?

Help me with ur feedback..
Thankx
Shri.
 
Those look like all apps that only Apache uses. You can safely remove them all.

rpm -e apache --nodeps
rpm -e webalizer
rpm -e mod_dav
rpm -e mod_ssl
rpm -e mod_perl

Use the --nodeps switch whenever you get dependency errors and your going to be uninstalling the 'dependants' too.

ChrisP If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top