LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 05-15-2011, 01:59 PM   #1
deto86
Member
 
Registered: Oct 2010
Location: goa,India
Distribution: Slackware64-Current
Posts: 66

Rep: Reputation: 0
Removing source package


Just a simple question.Actually,I googled about this but didn't get a well answer.All were explaing about how to install and using a specific options,etc,etc.

So,here's the question:

If you want to install a package which is in source code(tar.gz or tar.bz2) and yes you installed it by using "./configure", "make" and "make install" or by other method by going through the respective package's README or INSTALL file.But in future if you want to remove/uninstall that particular package then how will you do that?
For .deb or .rpm,you can use rpm or dpkg command along with some option to remove the package and in Slackware,there is removepkg or slackpkg remove ------ or can use pkgtool to remove package.
I installed php from its source code and configure with this command
Quote:
./configure --with-mysql --with-apxs2=/home/httpd/bin/apxs
and now want to remove php without making any changes to mysql and apache in Slackware 13.37
 
Old 05-15-2011, 02:05 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Usually, a source Makefile will include an uninstall target. So just go to the source directory and:
Code:
make uninstall
If there's no uninstall, I usually rerun the 'make install', note the installs, then remove them manually.
 
Old 05-15-2011, 09:46 PM   #3
deto86
Member
 
Registered: Oct 2010
Location: goa,India
Distribution: Slackware64-Current
Posts: 66

Original Poster
Rep: Reputation: 0
Is it good idea to keep extracted folder after you have done with installation?I mean after you have run "make install".If yes,then I don't know about this and usually what I am doing is "rm -rf extracted_package_name".

Source directory means frsh extracted tar.gx package or the content of the directory after you have run ./configure,make and make install commands.
 
Old 05-16-2011, 04:08 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, either keep the extracted source directory, or re-download it when you want to remove the packages. This is why using a package manager (rpm, dpkg) makes life easier.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing broken package. ahurd Linux - Newbie 1 09-07-2009 08:02 PM
Removing Kernel package ? IceChant Slackware 6 11-13-2007 02:47 PM
removing a package?? ayers Linux - Software 3 06-27-2005 04:39 AM
removing a package ?? ayers Linux - Newbie 3 06-27-2005 03:18 AM
removing package vichet Linux - Newbie 1 04-23-2002 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:10 AM.

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