On 10/18/05, Doug Ronne <[EMAIL PROTECTED]> wrote:
> Lets say you wanted to re-compile and install your copy of gcc and you
> didn't want some of the files lying around, maybe you didn't want some
> ada compiler anymore or something, and you wanted to make sure that
> you didn't have leftovers from the previous copy.  How would you do
> that?

If you are planning to reinstall *any* package (not just gcc), a
package manager is useful. There is a section in BLFS that discusses
this.

For your current problem, one thing you could do is to use the
following to install the new gcc:
  make DESTDIR=/var/tmp/gcc install
This will install everything into a fakeroot /var/tmp/gcc. Now remove
the previous gcc version from the standard directories and then
recursively copy over the file in the fakeroot to their final
destination. Something like
  cd /var/tmp/gcc &&
  tar cf - . | (cd / ; tar xf - )

--
Tushar Teredesai
   mailto:[EMAIL PROTECTED]
   http://www.linuxfromscratch.org/~tushar/
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to