how to uninstall software installed

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

how to uninstall software installed

Post by raghavan20 »

i compiled the apache and installed at /usr/local/apache2.2.3
but I do not know how to properly uninstall apache.
any tutorials available on uninstalling or anyone could narrate the steps to be taken?

another problem is:
I changed the port to 8080 in /etc/httpd/conf/httpd.conf because it was saying it was not able to listen at port 80 but now it reports the following...any ideas...

Code: Select all

(98) Address already in use:make_sock:could not bind to address[::]:443
(98)Address already in use:make_sock:could not bind to address 0.0.0.0:443
Please explain your solutions in simple terms as I am a novice user in Linux.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

How did you install it?

If you just compiled it from source yourself like so:

Code: Select all

./configure --prefix=/usr/local/apache2.2.3
make
make install
Uninstalling is as easy as closing all apache processes then:

Code: Select all

rm -rf /usr/local/apache2.2.3
Remove any start-stop scripts you have for it too.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

thanks for your reply d11wtq.

i installed the same way as you described.
but if i remove the installation directory, what about the other files it puts in /usr/sbin, /etc/ and whereever reported by whereis httpd.

1. do you mean to say that I have to manually remove all these.
2.Is there is also some kind of registry available with unix where is stores information about all the softwares installed and I do have to clear it if it exists?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

raghavan20 wrote:thanks for your reply d11wtq.

i installed the same way as you described.
but if i remove the installation directory, what about the other files it puts in /usr/sbin, /etc/ and whereever reported by whereis httpd.

1. do you mean to say that I have to manually remove all these.
2.Is there is also some kind of registry available with unix where is stores information about all the softwares installed and I do have to clear it if it exists?
If you installed it exactly the way I described there shouldn't be any files from this install in /usr/sbin.... they should *all* be in /usr/local/apache2.2.3

When you specify "--prefix" on ./configure you force the paths to act from that point downover. This is why if you specify "--prefix=/usr" things will go into /usr/bin /usr/sbin etc.

What distro are you running? Is there a reason you didn't use the package manager?
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

i am running fedora core 5

i got the source from the apache...and i do not think that apache was provided in rpms so i could not use the yum. if i am talking totally irrelevant to what you have asked me,,please forgive me for my ignorance.

i am sorry i remember that when i installed, i gave the same
./configure --prefix=/usr/local/apache2.2.3


and later when I ran
whereis httpd

it showed some files in /etc/httpd /usr/sbin /usr/lib/httpd/ /usr/local/apache2.2.3
Post Reply