LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-02-2010, 12:56 AM   #1
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Rep: Reputation: 15
Question how can i remove package that are not installed by installpkg


ok so i have some package that are installed using ./configure then make & make install & make clean

how can i remove those? i cant see them in the pkgtool.

thanks..
 
Old 03-02-2010, 01:07 AM   #2
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
How about make uninstall?
 
Old 03-02-2010, 01:25 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
Instead of using ..
" ./configure && make && su ; make install " :

'src2pkg' will make a Slackware package, easy to remove.

But for files, already installed ( to /usr/local/ ? ),
please use : cd <application-source>/ , # make uninstall
.. As said by @dc_eros.

Applications with no 'make uninstall' : Suggest ..
Create an "install.log" : cd <application-source>/
# make install > install.log.txt
.. to know which files to delete.
.....
 
Old 03-03-2010, 05:53 AM   #4
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Instead of using ..
" ./configure && make && su ; make install " :

'src2pkg' will make a Slackware package, easy to remove.

But for files, already installed ( to /usr/local/ ? ),
please use : cd <application-source>/ , # make uninstall
.. As said by @dc_eros.

Applications with no 'make uninstall' : Suggest ..
Create an "install.log" : cd <application-source>/
# make install > install.log.txt
.. to know which files to delete.
.....
if i made a uninstall how can i run it? do i chmod +x it then run ./uninstall?
 
Old 03-03-2010, 06:15 AM   #5
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
Quote:
Originally Posted by wakkana12 View Post
if i made a uninstall how can i run it? do i chmod +x it then run ./uninstall?
'make uninstall' is the command that searches for the files added to the system by 'make install' and removes them. After 'make uninstall' there should be nothing else to do but possibly remove some config files which may have been created after installation. These will usually be hidden files (.dotfiles) or directories in your home directory, so you'll need to run 'ls -a' to find them. They won't matter much unless you later install another version of the same package and want a clean configuration.
 
Old 03-03-2010, 08:34 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,953

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
First command to do : cd <package-where-you-did-'make install'>/
And next : a) su
b) make install
c) make uninstall

( b can be omitted,
but is shown to point you in the right direction ! )

.....
 
Old 03-03-2010, 11:24 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,768

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
While running 'make uninstall' will often work, it does not always work -sometimes not even partially. There are Makefiel which have *no* 'uninstall' rule. There are also many of them (uninstall rules) which only remove some of the files installed by the 'install' rule.
Of course, I recommend always using src2pkg to build packages -it will even catch errors caused by partial support for DESTDIR, which 'normal' SlackBuilds do not. And these are much more common than you might think. So, even if you have built and installed manually from source, if you remember (or can discover) the options you configured with, then using those options to build a package using src2pkg, installing it and then un-installing it will probably provide the most dependable removal of software.
If you still have the original configured sources in place, you can look in the configure.log file and see exactly what options were used to configure and compile the sources -that's if the sources are 'autoconf'-type sources.
 
1 members found this post helpful.
Old 03-04-2010, 04:38 PM   #8
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gnashley View Post
While running 'make uninstall' will often work, it does not always work -sometimes not even partially. There are Makefiel which have *no* 'uninstall' rule. There are also many of them (uninstall rules) which only remove some of the files installed by the 'install' rule.
Of course, I recommend always using src2pkg to build packages -it will even catch errors caused by partial support for DESTDIR, which 'normal' SlackBuilds do not. And these are much more common than you might think. So, even if you have built and installed manually from source, if you remember (or can discover) the options you configured with, then using those options to build a package using src2pkg, installing it and then un-installing it will probably provide the most dependable removal of software.
If you still have the original configured sources in place, you can look in the configure.log file and see exactly what options were used to configure and compile the sources -that's if the sources are 'autoconf'-type sources.
thanks.. big help! ^^
 
  


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
I have installed incorrectly a package for which there was no archive. Need to remove topkick Ubuntu 1 02-05-2010 01:34 PM
syntax for remove installed package... @d4M Linux From Scratch 2 02-11-2009 03:16 PM
How to completely remove an installed package? torrent55 Debian 4 11-04-2008 09:36 PM
How to remove a package I compiled and installed? JosephS Slackware 9 12-21-2007 01:49 AM
how to remove installed package? dwarf007 Linux - Newbie 5 10-25-2004 09:37 AM


All times are GMT -5. The time now is 01:23 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 Google+: linuxquestions
Open Source Consulting | Domain Registration