I have a TAR file (well, many) created with Solaris 10. I can restore it under same, but it seems the Solaris version of tar doesn't give you the option of stripping the leading "/" when restoring, which is a slight problem for my situation.
Did I miss something, and it can restore to a relative path after all? Does anyone have any other suggestions, such as other utilities to use or even OSs with a more flexible tar that can mount a UFS slice?
Kevin
Try tar xvf file.tar -C /tmp/someotherroot/
On 2011-08-19, at 7:19 PM, Kevin McGregor wrote:
I have a TAR file (well, many) created with Solaris 10. I can restore it under same, but it seems the Solaris version of tar doesn't give you the option of stripping the leading "/" when restoring, which is a slight problem for my situation.
Did I miss something, and it can restore to a relative path after all? Does anyone have any other suggestions, such as other utilities to use or even OSs with a more flexible tar that can mount a UFS slice?
Kevin _______________________________________________ Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
Huh. I tried -C, and it didn't seem to work! Or at least, not the way I expected?
On Fri, Aug 19, 2011 at 10:25 PM, Sean Cody sean@tinfoilhat.ca wrote:
Try tar xvf file.tar -C /tmp/someotherroot/
On 2011-08-19, at 7:19 PM, Kevin McGregor wrote:
I have a TAR file (well, many) created with Solaris 10. I can restore it
under same, but it seems the Solaris version of tar doesn't give you the option of stripping the leading "/" when restoring, which is a slight problem for my situation.
Did I miss something, and it can restore to a relative path after all? Does anyone have any other suggestions, such as other utilities to use or
even OSs with a more flexible tar that can mount a UFS slice?
Kevin _______________________________________________ Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
-- Sean
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
...And then I found this: http://stupidunixlinuxtricks.blogspot.com/2008/03/be-careful-of-solaris-tar-...
Frakking Solaris! Stone knives and bearskins. I suspected chroot might be involved somehow.
On Sat, Aug 20, 2011 at 8:42 AM, Kevin McGregor kevin.a.mcgregor@gmail.comwrote:
Huh. I tried -C, and it didn't seem to work! Or at least, not the way I expected?
On Fri, Aug 19, 2011 at 10:25 PM, Sean Cody sean@tinfoilhat.ca wrote:
Try tar xvf file.tar -C /tmp/someotherroot/
On 2011-08-19, at 7:19 PM, Kevin McGregor wrote:
I have a TAR file (well, many) created with Solaris 10. I can restore it
under same, but it seems the Solaris version of tar doesn't give you the option of stripping the leading "/" when restoring, which is a slight problem for my situation.
Did I miss something, and it can restore to a relative path after all? Does anyone have any other suggestions, such as other utilities to use
or even OSs with a more flexible tar that can mount a UFS slice?
Kevin _______________________________________________ Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
-- Sean
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
You can always download and compile GNU tar on Solaris if you need it. I had to do that once some years back because of some Solaris bug that prevented me from untaring.
It only takes a few minutes and saves a lot of time in the long run trying to figure out the Solaris tar equivalents of the GNU tar commands you're used to.
John
I'll just try this: /usr/bin/cp /usr/sbin/static/tar /tmp /usr/bin/dd if=file.tar | /usr/bin/chroot /tmp ./tar xf -
And see what happens. It's a short-term situation, so this should be sufficient.
On Sun, Aug 21, 2011 at 1:13 PM, John Lange john@johnlange.ca wrote:
You can always download and compile GNU tar on Solaris if you need it. I had to do that once some years back because of some Solaris bug that prevented me from untaring.
It only takes a few minutes and saves a lot of time in the long run trying to figure out the Solaris tar equivalents of the GNU tar commands you're used to.
John _______________________________________________ Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
It turns out that /usr/sbin/tar on my Solaris 10 system is not statically linked (there is no /usr/sbin/static, and I checked ldd tar). Does anyone know where I can get a statically-linked tar, or should I just suck it up and copy all of the library dependencies over? I can script that; I'm just annoyed that I have to.
On Sun, Aug 21, 2011 at 4:47 PM, Kevin McGregor kevin.a.mcgregor@gmail.comwrote:
I'll just try this: /usr/bin/cp /usr/sbin/static/tar /tmp /usr/bin/dd if=file.tar | /usr/bin/chroot /tmp ./tar xf -
And see what happens. It's a short-term situation, so this should be sufficient.
On Sun, Aug 21, 2011 at 1:13 PM, John Lange john@johnlange.ca wrote:
You can always download and compile GNU tar on Solaris if you need it. I had to do that once some years back because of some Solaris bug that prevented me from untaring.
It only takes a few minutes and saves a lot of time in the long run trying to figure out the Solaris tar equivalents of the GNU tar commands you're used to.
John _______________________________________________ Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
Step 1: always assume native Solaris utilities have weird and interesting limitations.
Step 2: make sure you have valid OS support with Oracle, otherwise you won’t get all the patches.
Step 3: download whichever tools you need from Sunfreeware.com.
If you get up to Solaris 11, evaluate BlastWave.org as an alternative; they have a very different approach to package (and project) management. The sunfreeware.com stuff is a lot easier to cherry-pick one tool (and/or library) at a time, but BlastWave is possibly better if you plan to install dozens or hundreds of packages. Also, BlastWave never worked all that well for me on anything older than Solaris 10, and apparently has recently been completely retooled for Solaris 11.
-Adam Thompson
mailto:athompso@athompso.net athompso@athompso.net
(204) 291-7950 - direct
(204) 489-6515 - fax
From: roundtable-bounces@muug.mb.ca [mailto:roundtable-bounces@muug.mb.ca] On Behalf Of Kevin McGregor Sent: Friday, August 19, 2011 19:19 To: MUUG Roundtable Subject: [RndTbl] Mounting UFS
I have a TAR file (well, many) created with Solaris 10. I can restore it under same, but it seems the Solaris version of tar doesn't give you the option of stripping the leading "/" when restoring, which is a slight problem for my situation.
Did I miss something, and it can restore to a relative path after all?
Does anyone have any other suggestions, such as other utilities to use or even OSs with a more flexible tar that can mount a UFS slice?
Kevin