Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is there a tool to remove code manually compiled?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
zedd
n00b
n00b


Joined: 06 Mar 2003
Posts: 7
Location: Portugal

PostPosted: Thu Mar 06, 2003 11:07 am    Post subject: is there a tool to remove code manually compiled? Reply with quote

Hi,
Is there some way to compile code from source and use some tool to remove that code later?

I am installing gentoo in a free partition of my box. i use a speedtouch usb modem to connect. But since my provider use pppoe i want to use the speedtouch 1.2 beta1
The portage version is 1.1. When the portage updates to 1.2, i want to use that one. For that I see the following 2 options:
1- edit the portage ebuild of 1.1 and change it to 1.2beta1 in order to be able to remove and update to official 1.2 ebuild.
2- Compile manualy the source code without using portage. Later remove that manualy installed code and install the official 1.2 ebuild.

My problem is that i don't know how to remove code compiled manually. So before i start to dig on changing an ebuild for option 1 i'd like to know if there is an easy way to use my option 2. (and which options are better for a newbie).

Thank you for any sugestion/help
_________________
--zedd
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Thu Mar 06, 2003 12:44 pm    Post subject: Reply with quote

If you have to do a configure / make / make install, try then doing make uninstall.
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
Exci
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 265
Location: The Netherlands, Zoetermeer

PostPosted: Thu Mar 06, 2003 1:39 pm    Post subject: Reply with quote

you have a chance that the compiled program works just fine without the make install, it stays in the same dir where you compiled it, I used it many times for small programs.

the make file can give you hints about where it is installed
or give a good ./configure --parameter to install it in a dir where you can easyly delete it

/this/is/where/I/installed/ppoe
Back to top
View user's profile Send private message
zedd
n00b
n00b


Joined: 06 Mar 2003
Posts: 7
Location: Portugal

PostPosted: Thu Mar 06, 2003 2:29 pm    Post subject: Reply with quote

Thank you.
_________________
--zedd
Back to top
View user's profile Send private message
sessionID
Apprentice
Apprentice


Joined: 11 Nov 2002
Posts: 266
Location: hungary

PostPosted: Thu Mar 06, 2003 3:09 pm    Post subject: Reply with quote

Use the program called "make uninstall". This will log all "make install"s.
(Search on Freshmeat.)
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Thu Mar 06, 2003 5:07 pm    Post subject: Reply with quote

sessionID wrote:
Use the program called "make uninstall". This will log all "make install"s.
(Search on Freshmeat.)


It's not a program a part, it's already part of the normal 'package'. Try it on, just like I said..
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Mar 06, 2003 5:10 pm    Post subject: Reply with quote

i would recommend putting all manually compiled stuff into /usr/local, as gentoo doesnt put anything in there and any programs you do install in there can fairly easily be manually deleted, as you dont have lots of binaries to look through
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
sessionID
Apprentice
Apprentice


Joined: 11 Nov 2002
Posts: 266
Location: hungary

PostPosted: Thu Mar 06, 2003 5:48 pm    Post subject: Reply with quote

darktux wrote:
sessionID wrote:
Use the program called "make uninstall". This will log all "make install"s.
(Search on Freshmeat.)


It's not a program a part, it's already part of the normal 'package'. Try it on, just like I said..


Nope :)

It's a standalone program: http://freshmeat.net/projects/make_uninstall/?topic_id=41%2C257%2C253
make_uninstall is used to monitor a command like 'make install', so a record of the install can be created, which will allow you to completely remove the package from your system later.
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Thu Mar 06, 2003 6:05 pm    Post subject: Reply with quote

sessionID wrote:
darktux wrote:
sessionID wrote:
Use the program called "make uninstall". This will log all "make install"s.
(Search on Freshmeat.)


It's not a program a part, it's already part of the normal 'package'. Try it on, just like I said..


Nope :)

It's a standalone program: http://freshmeat.net/projects/make_uninstall/?topic_id=41%2C257%2C253
make_uninstall is used to monitor a command like 'make install', so a record of the install can be created, which will allow you to completely remove the package from your system later.


How about, "you're both right" - darktux is talking about
Code:

make_uninstall

Which is (indeed) a standalone program. However, note the underscore. SessionID, on the other hand, references:
Code:

make uninstall

Which uses make to invoke the "uninstall" part of the script in the program's Makefile. I think SessionID is 'most' correct, in that if a program is installed using
Code:

make install

Most programmers will also include an uninstall script in the makefile. However, it is also a good idea to take a look in the Makefile (which should be in the root directory of the source code) to see if they used a different name ('clean' , 'remove', etc). In addition, even if they didn't, the 'install' script usually indicates where files to be manually deleted reside. Which half of the baby do you want?
Back to top
View user's profile Send private message
sessionID
Apprentice
Apprentice


Joined: 11 Nov 2002
Posts: 266
Location: hungary

PostPosted: Fri Mar 07, 2003 4:58 pm    Post subject: Reply with quote

aja wrote:
I think SessionID is 'most' correct, in that if a program is installed using
Code:

make install

Most programmers will also include an uninstall script in the makefile.


Darktux is the 'most' correct, he is talking about the way makefiles should be written :)
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Fri Mar 07, 2003 5:14 pm    Post subject: Reply with quote

sessionID wrote:

Darktux is the 'most' correct, he is talking about the way makefiles should be written :)


Doh!! That's what I meant to say. Mixed you two up. You look so alike....
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Fri Mar 07, 2003 6:19 pm    Post subject: Reply with quote

sessionID wrote:
aja wrote:
I think SessionID is 'most' correct, in that if a program is installed using
Code:

make install

Most programmers will also include an uninstall script in the makefile.


Darktux is the 'most' correct, he is talking about the way makefiles should be written :)


makefiles ARE written this way.... Try it on...
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum