Thread View: news.software.readers
4 messages
4 total messages
Started by Frank Slootweg
Fri, 27 Aug 2004 12:29
[OT] Pack under Cygwin or Windows, unpack under Windows?
Author: Frank Slootweg
Date: Fri, 27 Aug 2004 12:29
Date: Fri, 27 Aug 2004 12:29
28 lines
2414 bytes
2414 bytes
For my standalone tin-1.6.2 package [1], I need to pack some files so that they can be unpacked under MS-Windows. By default, MS-Windows, at least XP, contains a facility which can unpack .zip files [2], but no utility to create/pack them. Of course I can get/install some kind of ZIP program for Windows, but prefer not to do that, in order to leave my Windows system as 'clean' as possible. I *thought* that Windows'/XP's unzip facility could also handle 'UNIX' .tar archives and .tar.gz (first tar-red and then gzip-ped) archives, but when I tried that again, it did not work. (I am probably confused with WinZip, which probably does have this functionality.) Preferably I would like to pack my package with a *standard*, i.e. included in the base product, Windows or/and Cygwin utility, and unpack it with a *standard* Windows unpack utility. I.e. I *prefer* to have nothing special on my/pack side and *cannot* expect anything special on the target/unpack side. What is the simplest solution for this? (I.e. nothing or little special on my side, nothing special on the target/Windows side?) [1] See thread "Newsreader TIN on Windows, without Cygwin?", especially my "Progress Report" response of today (<news:412f2873$0$42407$18b6e80@news.wanadoo.nl>). [2] Windows Explorer -> right-click on file -> Open With -> Choose Program... -> Compressed (zipped) Folders
Re: [OT] Pack under Cygwin or Windows, unpack under Windows?
Author: anon
Date: Fri, 27 Aug 2004 13:07
Date: Fri, 27 Aug 2004 13:07
31 lines
2400 bytes
2400 bytes
Cygwin should have the Unix "zip" utility (man zip). On 27 Aug 2004 12:29:03 GMT, Frank Slootweg <this@ddress.is.invalid> wrote: > For my standalone tin-1.6.2 package [1], I need to pack some files so > that they can be unpacked under MS-Windows. > > By default, MS-Windows, at least XP, contains a facility which can > unpack .zip files [2], but no utility to create/pack them. Of course I > can get/install some kind of ZIP program for Windows, but prefer not to > do that, in order to leave my Windows system as 'clean' as possible. > > I *thought* that Windows'/XP's unzip facility could also handle 'UNIX' > .tar archives and .tar.gz (first tar-red and then gzip-ped) archives, > but when I tried that again, it did not work. (I am probably confused > with WinZip, which probably does have this functionality.) > > Preferably I would like to pack my package with a *standard*, i.e. > included in the base product, Windows or/and Cygwin utility, and unpack > it with a *standard* Windows unpack utility. I.e. I *prefer* to have > nothing special on my/pack side and *cannot* expect anything special on > the target/unpack side. > > What is the simplest solution for this? (I.e. nothing or little > special on my side, nothing special on the target/Windows side?) > > [1] See thread "Newsreader TIN on Windows, without Cygwin?", especially > my "Progress Report" response of today > (<news:412f2873$0$42407$18b6e80@news.wanadoo.nl>). > > [2] Windows Explorer -> right-click on file -> Open With -> Choose > Program... -> Compressed (zipped) Folders
Re: [OT] Pack under Cygwin or Windows, unpack under Windows?
Author: Rudy Taraschi
Date: Fri, 27 Aug 2004 21:06
Date: Fri, 27 Aug 2004 21:06
47 lines
3275 bytes
3275 bytes
[Apologies if this has been answered 100 times --> I read news offline]
Frank Slootweg wrote:
> For my standalone tin-1.6.2 package [1], I need to pack some files
> so that they can be unpacked under MS-Windows. [snip]
>
> Preferably I would like to pack my package with a *standard*,
> i.e. included in the base product, Windows or/and Cygwin utility,
> and unpack it with a *standard* Windows unpack utility. I.e. I
> *prefer* to have nothing special on my/pack side and *cannot*
> expect anything special on the target/unpack side.
Here's a couple of "standard" Cygwin ways of packing (tar, gzip,
and zip are standard Cygwin packages)
Option 1: This command creates a tar file and then GZIPs it all in
one command. Winzip handles this file just fine; I don't know what
the native XP unpacker does.
tar cvzf archivename.tar.gz list_of_files_or_directories_to_pack
Option 2: use the 'zip' command to create a ZIP file
zip archivename.zip list_of_files_or_directories_to_pack
Note: If you're going to be packing and unpacking text files, you
may need to consider the CR/LF differences and preprocess your text
files with "unix2dos".
> What is the simplest solution for this? (I.e. nothing or little
> special on my side, nothing special on the target/Windows side?)
Here's a potential gotcha. I'm no Windows expert (and I'm sure I'll
get corrected PDQ if I'm wrong :-) but I don't believe anything less
than XP or maybe 2000 will have native unpacking capabilities.
That said, practically everyone has Winzip or a compatible tool so
creating ZIP files should be relatively safe.
> [1] See thread "Newsreader TIN on Windows, without Cygwin?", especially
> my "Progress Report" response of today
> (<news:412f2873$0$42407$18b6e80@news.wanadoo.nl>).
I wish I could help more on this thread, but unfortunately, I'm not
a tin user.
rudy
Re: [OT] Pack under Cygwin or Windows, unpack under Windows?
Author: Frank Slootweg
Date: Wed, 01 Sep 2004 13:49
Date: Wed, 01 Sep 2004 13:49
33 lines
2418 bytes
2418 bytes
[Sorry for this 'late' response.]
Rudy Taraschi <rudy@this.address.is.invalid> wrote:
[deleted]
> Here's a couple of "standard" Cygwin ways of packing (tar, gzip,
> and zip are standard Cygwin packages)
>
> Option 1: This command creates a tar file and then GZIPs it all in
> one command. Winzip handles this file just fine; I don't know what
> the native XP unpacker does.
>
> tar cvzf archivename.tar.gz list_of_files_or_directories_to_pack
>
> Option 2: use the 'zip' command to create a ZIP file
>
> zip archivename.zip list_of_files_or_directories_to_pack
[deleted]
I opted for Option 2 and installed Cygwin's zip package. It took a
little while to get re-aquainted with it (the last time I zip-ped stuff
was in my MS-DOS 3.3 days, probably the late 80's, early 90's), but I
got it to work. The only drawback is that zip apparently can not store
absolute paths ("paths stored in zip archives are always relative"),
which means I have to tell the user to move stuff in the right place (or
make a .bat file to do it for hir).
> Note: If you're going to be packing and unpacking text files, you
> may need to consider the CR/LF differences and preprocess your text
> files with "unix2dos".
Thanks for the reminder. I had that covered, but it is easy to forget.
[deleted]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads