View previous topic :: View next topic |
Author |
Message |
exec n00b
Joined: 08 Dec 2002 Posts: 22
|
Posted: Mon Feb 10, 2003 11:51 pm Post subject: need to get tar back |
|
|
somehow my tar got messed up and
wouldn't upack anything, so after
a couple attempts at updating etc.
I just unmerged it in my bit of anger
so now I'm stuck without tar, how
can I get it back? |
|
Back to top |
|
|
reves Apprentice
Joined: 25 Jun 2002 Posts: 215 Location: South Florida
|
Posted: Tue Feb 11, 2003 1:10 am Post subject: |
|
|
If you have access to another system you could download it and unpack it then copy it to /var/tmp/portage then run Code: | ebuild ebuild /usr/portage/sys-apps/tar/tar-1.13.25-r2.ebuild compile |
and Code: | ebuild /usr/portage/sys-apps/tar/tar-1.13.25-r2.ebuild install |
Or you could copy the binary from the cd and use it to re-emerge tar. _________________ Robert |
|
Back to top |
|
|
exec n00b
Joined: 08 Dec 2002 Posts: 22
|
Posted: Tue Feb 11, 2003 2:50 am Post subject: |
|
|
I tryed to just move the bin from
the cd and emerge again, but that
didn't work, so I tryed to get the
.ebuild from my laptop and run the
code you suggested, but I get the
error unable to find tar command, so
then I tryed to use the bin from the
cd and use your code, and it says
cannot execute binary file. |
|
Back to top |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Tue Feb 11, 2003 2:57 am Post subject: |
|
|
On your laptop do:
CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe"
emerge tar -B (change those values to the ones you have on the make.conf of your troubled pc).
Then your laptop will create a .tbz2 which will be located in /usr/portage/packages/All. Copy that file to the troubled pc to the same location that it was on the laptop and do emerge -k tar.something.tbz2 and you'll be ready to go
EDIT: I've just remembered, you'll need tar to 'explode' that file. So my advice is, after building the .tbz2 file, unpack it and copy over the binaries. Good luck _________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website |
|
Back to top |
|
|
reves Apprentice
Joined: 25 Jun 2002 Posts: 215 Location: South Florida
|
Posted: Wed Feb 12, 2003 1:42 am Post subject: |
|
|
exec wrote: | I tryed to just move the bin from
the cd and emerge again, but that
didn't work, so I tryed to get the
.ebuild from my laptop and run the
code you suggested, but I get the
error unable to find tar command, so
then I tryed to use the bin from the
cd and use your code, and it says
cannot execute binary file. |
You don't need the ebuild file you need to download the tar bz2 from the ibiblio site or some other mirror and expand it on your laptop then copy it to the other system then run the above commands. Sorry for the long sentance. _________________ Robert |
|
Back to top |
|
|
|