WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: busybox tar command  (Read 10745 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
busybox tar command
« on: January 12, 2009, 01:13:28 PM »
I'm still a bit confused about the tc tar command. If I load the bash shell extension is tar replaced with a different tar command?
big pc man

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: busybox tar command
« Reply #1 on: January 12, 2009, 01:25:22 PM »
No, it is not.  Just run `tar` to see.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: busybox tar command
« Reply #2 on: January 12, 2009, 06:39:25 PM »
I have had no issue with busybox tar command. I do notice that it seems to be more sensitive to the order of the options, mainly -f should be the last option when used.
10+ Years Contributing to Linux Open Source Projects.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: busybox tar command
« Reply #3 on: January 13, 2009, 06:00:20 AM »
GNU tar is a part of advcomp.tce.
The only barriers that can stop you are the ones you create yourself.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: busybox tar command
« Reply #4 on: January 13, 2009, 06:02:37 AM »
GNU tar is a part of advcomp.tce.

oh, thank you!

Offline florian

  • Full Member
  • ***
  • Posts: 116
    • Home Page
Re: busybox tar command
« Reply #5 on: January 15, 2009, 09:55:14 AM »
After i load advcomp.tcz which contains gnu tar (among other compression utilities), /tmp/tcloop/advcomp/bin/tar really is gnu tar, however /bin/tar still points to /bin/busybox.

I thought that /bin/tar would have been replaced with a link to /tmp/tcloop/advcomp/bin/tar
Is this a bug in tce-load? or is it a feature?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: busybox tar command
« Reply #6 on: January 15, 2009, 10:45:33 AM »
I see that /bin/tar is part of advcomp.tce and the rest is in /usr/local/bin.  /usr/local/bin and /usr/local/sbin are at the front of $PATH and will be the programs used even if the same one exists in /bin, /sbin, /usr/bin, /usr/sbin.  GNU tar can be placed in /usr/local/bin and it will be the tar used instead of the busybox one; no need to overwrite busybox links, just place the gnu or other apps in /usr/local/(s)bin.  This makes it easy to either use or revert to busybox commands when "real" ones are installed in /usr/local, just delete the one in /usr/local/bin or use the command "busybox tar".  The need to overwrite system commands is greatly reduced by /usr/local/bin being at the front of the PATH.

TCZ's don't overwrite existing files or symlinks and thus busybox tar is not overwritten by the tcz.