public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Brian Dessent <brian@dessent.net>
To: gcc-help@gcc.gnu.org
Subject: Re: Uninstall a source install?
Date: Mon, 18 Jul 2005 13:23:00 -0000	[thread overview]
Message-ID: <42DBADDF.6A698579@dessent.net> (raw)
In-Reply-To: <20050718110705.GB7715@linux.comp>

"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

      reply	other threads:[~2005-07-18 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-18 11:07 Mark Williams (MWP)
2005-07-18 13:23 ` Brian Dessent [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42DBADDF.6A698579@dessent.net \
    --to=brian@dessent.net \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).