View previous topic :: View next topic |
Author |
Message |
zedd n00b
Joined: 06 Mar 2003 Posts: 7 Location: Portugal
|
Posted: Thu Mar 06, 2003 11:07 am Post subject: is there a tool to remove code manually compiled? |
|
|
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 |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Thu Mar 06, 2003 12:44 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Exci Apprentice
Joined: 12 Jul 2002 Posts: 265 Location: The Netherlands, Zoetermeer
|
Posted: Thu Mar 06, 2003 1:39 pm Post subject: |
|
|
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 |
|
|
zedd n00b
Joined: 06 Mar 2003 Posts: 7 Location: Portugal
|
Posted: Thu Mar 06, 2003 2:29 pm Post subject: |
|
|
Thank you. _________________ --zedd |
|
Back to top |
|
|
sessionID Apprentice
Joined: 11 Nov 2002 Posts: 266 Location: hungary
|
Posted: Thu Mar 06, 2003 3:09 pm Post subject: |
|
|
Use the program called "make uninstall". This will log all "make install"s.
(Search on Freshmeat.) |
|
Back to top |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Thu Mar 06, 2003 5:07 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Thu Mar 06, 2003 5:10 pm Post subject: |
|
|
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 |
|
|
sessionID Apprentice
Joined: 11 Nov 2002 Posts: 266 Location: hungary
|
Posted: Thu Mar 06, 2003 5:48 pm Post subject: |
|
|
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 |
|
|
aja l33t
Joined: 26 Aug 2002 Posts: 705 Location: Edmonton, Canada
|
Posted: Thu Mar 06, 2003 6:05 pm Post subject: |
|
|
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
Which is (indeed) a standalone program. However, note the underscore. SessionID, on the other hand, references:
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
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 |
|
|
sessionID Apprentice
Joined: 11 Nov 2002 Posts: 266 Location: hungary
|
Posted: Fri Mar 07, 2003 4:58 pm Post subject: |
|
|
aja wrote: | I think SessionID is 'most' correct, in that if a program is installed using
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 |
|
|
aja l33t
Joined: 26 Aug 2002 Posts: 705 Location: Edmonton, Canada
|
Posted: Fri Mar 07, 2003 5:14 pm Post subject: |
|
|
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 |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Fri Mar 07, 2003 6:19 pm Post subject: |
|
|
sessionID wrote: | aja wrote: | I think SessionID is 'most' correct, in that if a program is installed using
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 |
|
Back to top |
|
|
|