oops, how does one re-install gcc?

Tushar Teredesai sukucorp at gmail.com
Tue Oct 18 15:15:08 PDT 2005


On 10/18/05, Doug Ronne <vextorspace at gmail.com> 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:tushar at linuxfromscratch.org
   http://www.linuxfromscratch.org/~tushar/



More information about the lfs-support mailing list