LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-08-2006, 11:18 PM   #1
punjabipredator
Member
 
Registered: Dec 2006
Posts: 30

Rep: Reputation: 15
Question How do i uninstall something in linux?


How do i successfully uninstall this mhash-0.9.7.1?
 
Old 12-08-2006, 11:25 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
it depends how it was installed.

if you installed it with your package manager, you can easily remove it with that. if you need help with that we'll need to know your distribution.

if you installed (compiled) it from source then you need to run the command 'make uninstall', i believe, in the directory that the source is in where you initially installed it from.
 
Old 12-08-2006, 11:57 PM   #3
punjabipredator
Member
 
Registered: Dec 2006
Posts: 30

Original Poster
Rep: Reputation: 15
mhash

Hello

I installed it using the 2nd option you mentioned but i am having trouble uninstalling it. I did try this before maybe i have already uninstalled it i am not 100% sure. If i did uninstall it correctly will this remove all the configuration? Can you please let me know if you have any idea. Thank You.


root@cpanel [~/mhash-0.9.7.1]# make uninstall
Making uninstall in include
make[1]: Entering directory `/root/mhash-0.9.7.1/include'
rm -f '/usr/local/include/mhash.h'
rm -f '/usr/local/include/mutils/mhash.h'
rm -f '/usr/local/include/mutils/mglobal.h'
rm -f '/usr/local/include/mutils/mtypes.h'
rm -f '/usr/local/include/mutils/mutils.h'
rm -f '/usr/local/include/mutils/mhash_config.h'
rm -f '/usr/local/include/mutils/mincludes.h'
make[1]: Leaving directory `/root/mhash-0.9.7.1/include'
Making uninstall in lib
make[1]: Entering directory `/root/mhash-0.9.7.1/lib'
+ list=libmhash.la
+ for p in '$list'
++ echo libmhash.la
++ sed -e 's|^.*/||'
+ p=libmhash.la
+ echo ' /bin/sh ../libtool --mode=uninstall rm -f '\''/usr/local/lib/libmhash.l a'\'''
/bin/sh ../libtool --mode=uninstall rm -f '/usr/local/lib/libmhash.la'
+ /bin/sh ../libtool --mode=uninstall rm -f /usr/local/lib/libmhash.la
make[1]: Leaving directory `/root/mhash-0.9.7.1/lib'
Making uninstall in doc
make[1]: Entering directory `/root/mhash-0.9.7.1/doc'
rm -f '/usr/local/man/man3/mhash.3'
make[1]: Leaving directory `/root/mhash-0.9.7.1/doc'
Making uninstall in src
make[1]: Entering directory `/root/mhash-0.9.7.1/src'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory `/root/mhash-0.9.7.1/src'
make[1]: Entering directory `/root/mhash-0.9.7.1'
make[1]: Nothing to be done for `uninstall-am'.
make[1]: Leaving directory `/root/mhash-0.9.7.1'
root@cpanel [~/mhash-0.9.7.1]# dir
./ changelog-update.sh* CVS/ libtool* NEWS
../ config.guess* CYGWIN-PATCHES/ ltmain.sh README
acinclude.m4 config.log depcomp* Makefile src/
aclocal.m4 config.status* doc/ Makefile.am stamp-h1
AUTHORS config.sub* include/ Makefile.in THANKS
autom4te.cache/ configure* INSTALL mhash.spec TODO
buildconf* configure.in install-sh* mhash.spec.in win32/
ChangeLog COPYING lib/ missing*
root@cpanel [~/mhash-0.9.7.1]#

Last edited by punjabipredator; 12-09-2006 at 12:02 AM.
 
Old 12-09-2006, 12:03 AM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
first question: are you running your GUI or logged in as the root user the majority of the time when your using linux? if so you should really conisder creating a 'normal' user and using the command 'su' or 'sudo' to execute commands as root or as a priveledged user. you can easily ruin your system when always running as root.

it looks like it uninstalled fine. run these commands and if you get no output or errors to the liking of 'not found' then i would say its uninstalled: 'whereis mhash', 'which mhash', 'man mhash', 'locate mhash'.
 
Old 12-09-2006, 12:19 AM   #5
punjabipredator
Member
 
Registered: Dec 2006
Posts: 30

Original Poster
Rep: Reputation: 15
Does this mean its uninstalled it looks like it to me. I always log in as root. I am still learning experience i only know how to install stuff and have it running. I didn't know it was so dangerous to run in root. Please let me know the above. Thank You.

root@cpanel [~/mhash-0.9.7.1]# whereis mhash
mhash:
root@cpanel [~/mhash-0.9.7.1]# which mhash
root@cpanel [~/mhash-0.9.7.1]# man mhash
No manual entry for mhash
root@cpanel [~/mhash-0.9.7.1]# locate mhash
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
Please have a look at /etc/updatedb.conf to enable the daily cron job.
root@cpanel [~/mhash-0.9.7.1]#
 
Old 12-09-2006, 12:29 AM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
Quote:
You need to run the 'updatedb' command (as root) to create the database.
do what it says and try the locate command again. if that as well returns nothing or not found then i would say its uninstalled. you could also do a 'find / -name mhash' and delete all the files it finds, if any (which should only be the source files where you ran the make uninstall command). after doing the above it is most definetly uninstalled!

yes.. it is very dangerous to always run as root. all it takes is one small mistake in a command to trash all your files. as root you have unlimited power (administrator) and often you will not be prompted for 'are you sure you want to do this?' type messages. create a normal user with 'useradd' or 'adduser' (i forget) and get into the habit of using it and use 'su' to become root temporariy, when you need to install software.

hope it helps
 
Old 12-09-2006, 12:43 AM   #7
punjabipredator
Member
 
Registered: Dec 2006
Posts: 30

Original Poster
Rep: Reputation: 15
I done it yeah it was uninstalled. Thank You.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 11:03 AM
uninstall linux pinner2424 Linux - Software 11 10-02-2003 06:24 PM
Uninstall Linux Liquid_Snake Linux - Software 7 07-10-2003 09:51 PM
How to uninstall in Linux? felecha Linux - Software 22 06-01-2001 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration