public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Uninstall a source install?
@ 2005-07-18 11:07 Mark Williams (MWP)
  2005-07-18 13:23 ` Brian Dessent
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Williams (MWP) @ 2005-07-18 11:07 UTC (permalink / raw)
  To: gcc-help

Greetings all,

I just made a complete screwup of a source compile and install of the latest GCC
from CVS.

Now i wish to remove all the files ive just installed.

Whats the best way to do this?

I know "make uninstall" isnt supported.
Is there any other automated way?

If not, can someone list all the target directories for the installed files?

Info on this should be in the Wiki!

Thanks all,
 Mark W.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Uninstall a source install?
  2005-07-18 11:07 Uninstall a source install? Mark Williams (MWP)
@ 2005-07-18 13:23 ` Brian Dessent
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Dessent @ 2005-07-18 13:23 UTC (permalink / raw)
  To: gcc-help

"Mark Williams (MWP)" wrote:

> I just made a complete screwup of a source compile and install of the latest GCC
> from CVS.
> 
> Now i wish to remove all the files ive just installed.
> 
> Whats the best way to do this?
> 
> I know "make uninstall" isnt supported.
> Is there any other automated way?

You can sort of get an approximation of an uninstall by doing a "make
install" to a temporary DESTDIR and then using its contents as a list of
files to remove:

make install DESTDIR=/tmp/gccinst
find /tmp/gccinst | sed -e s,/tmp/gccinst,, | \
   (while read F; do rm "$F"; done)

You might want to try this first using 'echo "$F"' instead of 'rm "$F"'
to make sure it's going to do the right thing.  And this requires that
you still have the build directory that you used, or at least one
configured identically.  And it won't compensate for any local files
that might have been modified.  In short, it's not going to always work,
but it might get you close if you're otherwise lost.

Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-18 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 11:07 Uninstall a source install? Mark Williams (MWP)
2005-07-18 13:23 ` Brian Dessent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).