Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
need to get tar back
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
exec
n00b
n00b


Joined: 08 Dec 2002
Posts: 22

PostPosted: Mon Feb 10, 2003 11:51 pm    Post subject: need to get tar back Reply with quote

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
View user's profile Send private message
reves
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 215
Location: South Florida

PostPosted: Tue Feb 11, 2003 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message
exec
n00b
n00b


Joined: 08 Dec 2002
Posts: 22

PostPosted: Tue Feb 11, 2003 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Tue Feb 11, 2003 2:57 am    Post subject: Reply with quote

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 :wink:

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 :P
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
reves
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 215
Location: South Florida

PostPosted: Wed Feb 12, 2003 1:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum