LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-02-2010, 05:38 PM   #1
kris_rocks!
LQ Newbie
 
Registered: Jan 2010
Posts: 18

Rep: Reputation: 0
Unhappy Uninstalling Mplayer installed by compiling source files


Please help to find out how to uninstall Mplayer and other programs that is installed by compiling source files(./configure, make , make install)
 
Old 02-02-2010, 05:59 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 9,428

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
Quote:
Originally Posted by kris_rocks! View Post
Please help to find out how to uninstall Mplayer and other programs that is installed by compiling source files(./configure, make , make install)
Each one is different, so they all put programs/libraries/whatever, in different places. The only way to know where ALL the files are, is to look in the makefile, and see where things get copied when you do a make install.
 
1 members found this post helpful.
Old 02-02-2010, 07:11 PM   #3
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,285
Blog Entries: 1

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by kris_rocks! View Post
Please help to find out how to uninstall Mplayer and other programs that is installed by compiling source files(./configure, make , make install)
Try "make uninstall".
 
1 members found this post helpful.
Old 02-02-2010, 09:19 PM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,112
Blog Entries: 1

Rep: Reputation: 124Reputation: 124
You can also take a look at rpm's for those packages, and see what files are inside.
 
1 members found this post helpful.
Old 02-02-2010, 11:48 PM   #5
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 6,750

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
kris_rocks!
PLEASE READ the linux documentation !!!
the answer is
Code:
make uninstall
 
0 members found this post helpful.
Old 02-03-2010, 09:12 AM   #6
kris_rocks!
LQ Newbie
 
Registered: Jan 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Thumbs up Thanks for suggestions!

I am currently at workplace. I will try make uninstall once I reach my home. Hope it will work! Thanks!
 
Old 02-03-2010, 10:33 AM   #7
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 9,428

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
Quote:
Originally Posted by kris_rocks! View Post
I am currently at workplace. I will try make uninstall once I reach my home. Hope it will work! Thanks!
It will only work if the makefile has the "uninstall" option in it. Again, each program is different...
 
1 members found this post helpful.
Old 02-03-2010, 12:37 PM   #8
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,285
Blog Entries: 1

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by TB0ne View Post
It will only work if the makefile has the "uninstall" option in it.
You mean the "uninstall" target. The folks who maintain MPlayer know how to do things right.

From "mplayer-export-2010-02-03/Makefile":

Code:
uninstall:
        rm -f $(BINDIR)/mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
        rm -f $(BINDIR)/mencoder$(EXESUF)
        rm -f $(MANDIR)/man1/mencoder.1 $(MANDIR)/man1/mplayer.1
        rm -f $(prefix)/share/pixmaps/mplayer.xpm
        rm -f $(prefix)/share/applications/mplayer.desktop
        rm -f $(MANDIR)/man1/mplayer.1 $(MANDIR)/man1/mencoder.1
        rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man)))

Last edited by David1357; 02-03-2010 at 12:40 PM. Reason: Added link to make documentation
 
1 members found this post helpful.
Old 02-05-2010, 09:29 AM   #9
Carsto
Member
 
Registered: Aug 2009
Posts: 97

Rep: Reputation: 17
make uninstall not found

Thanks, tried things posted here in combination and found a lot of good stuff.

Much as TBOne says all apps are different in installation. I cannot find any makefile for an app and also did more <filename> on all and sundry files I could see under usr/local/App. No result. Did make --help and could not get uninstall in there. So now, does Linux work with something like the Windows registry or will I be able to uninstall by simply and only doing rm -rf <filename> on all found under locate App?

For what it's worth, I found this link when looking for a solution to file names with spaces in them. See bigrigdriver's post of about six months ago.

http://www.freebookcentre.net/unix-b...ogramming.html

Searching first really works! And I'm getting the hang of it.
 
Old 02-05-2010, 10:09 AM   #10
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,285
Blog Entries: 1

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Carsto View Post
I cannot find any makefile for an app and also did more <filename> on all and sundry files I could see under usr/local/App. No result.
Two things wrong:
  1. You hijacked a thread
  2. This thread is about uninstalling MPlayer after building it from source
 
Old 02-05-2010, 12:12 PM   #11
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,112
Blog Entries: 1

Rep: Reputation: 124Reputation: 124
Admins can move relevant part of this thread and separate it.

As for the registry question, NO, Linux has no centralized registry, configuration files for applications are totally separate from other applications, but they are largely placed in /etc folder and it's sub-folders. So if you delete main files but not delete config files, nothing bad is going to happen unless some other application is dependent on it.

I suggest @Carsto, that you first read some relevant book on Linux and then try to mess with uninstalling applications.
 
1 members found this post helpful.
Old 02-09-2010, 03:49 AM   #12
Carsto
Member
 
Registered: Aug 2009
Posts: 97

Rep: Reputation: 17
Apologies, seriously.

I really do not feel good about this, I'll avoid it in future.
I'm out of here.

Thank you for the other information. Shouldn't uninstalling apps be as simple as installing them?
 
Old 02-09-2010, 05:29 AM   #13
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 6,750

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
Quote:
Thank you for the other information. Shouldn't uninstalling apps be as simple as installing them?
IT IS
if from source
Code:
to install 
./configure,make , make install
-- to uninstall 
make uninstall
from yum ( fedora )
Code:
yum remove program-name 
yum remove mplayer
very easy
 
1 members found this post helpful.
Old 02-10-2010, 01:07 AM   #14
Carsto
Member
 
Registered: Aug 2009
Posts: 97

Rep: Reputation: 17
Thank you, JohnVV.

I've tried all those and weren't entirely successful. In some cases there were reams of files left over to be deleted by hand. Even that was unsuccessful in one case.

To double check I used the Dolphin GUI File manager (FC12) and cd /folder/file...in terminal. These reported that all the files were gone, yet when I used locate in terminal there were seven files that persisted. I could not cd-enter the folders in those paths but thrice deleted those files with the full paths. rm -rf /usr/local/folder/file et al. They came back.

In the end I deleted my hard disc; fdisk, mkfs, fsck, but the re-install problem persists. I made a mistake in syntax when using the dd command but will retry that shortly - to entirely over-write the disc with zeroes.
 
Old 02-10-2010, 05:45 AM   #15
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,112
Blog Entries: 1

Rep: Reputation: 124Reputation: 124
Problem with locate command is that it is not real-time updated. It is run only once a day, at night mostly. You need to run command updatedb to refresh database for locate command.

So I guess you DID delete those files, but locate was still not avare of that change.

Last edited by DrLove73; 02-10-2010 at 05:46 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-installed Mplayer from source. Now sound doesn't work Tommo Linux - Software 3 07-21-2008 05:09 AM
uninstalling all files which have been installed using tar xjf babu198649 Linux - Newbie 8 02-08-2008 09:31 AM
error compiling mplayer from source jimjamjahaa Linux - Software 1 01-23-2006 03:23 AM
compiling mplayer from source attempt simcox1 Linux - Software 8 05-18-2005 04:10 PM
Re: Uninstalling a program that was installed from source prac2 Linux - Newbie 2 08-28-2002 08:15 PM


All times are GMT -5. The time now is 02:55 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration