Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: bigpcman on January 12, 2009, 01:13:28 PM

Title: busybox tar command
Post by: bigpcman 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?
Title: Re: busybox tar command
Post by: ^thehatsrule^ on January 12, 2009, 01:25:22 PM
No, it is not.  Just run `tar` to see.
Title: Re: busybox tar command
Post by: roberts 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.
Title: Re: busybox tar command
Post by: curaga on January 13, 2009, 06:00:20 AM
GNU tar is a part of advcomp.tce.
Title: Re: busybox tar command
Post by: tobiaus on January 13, 2009, 06:02:37 AM
GNU tar is a part of advcomp.tce.

oh, thank you!
Title: Re: busybox tar command
Post by: florian 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?
Title: Re: busybox tar command
Post by: Jason W 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.