Worth Installing

Software that's worth installing on your computer. Reviews, comparisons, tips, updates...

Tuesday, January 16, 2007

WinRAR embarks on the Vista wave!

WinRAR 3.71 Screenshot It was high time WinRAR joined the Vista-compatible club, and this new beta accomplishes just that.

WinRAR 3.71 Beta 1 packs a host of changes, many of which aim to make the program more compliant to the Windows Vista standards. This is obvious if we take a look at the new help facility, which dropped the old HLP format in favor of the (not-so-new-anymore) CHM system, a change that does not affect the program's functionality, but was demanded by the Vista guidelines.

The other changes are, however, more noticeable. WinRAR now complies to the new security model and makes use of the administrator permission dialogs Vista users are already accustomed with. Logfiles, themes, settings and regkeys are now stored by default in the %APPDATA%\WinRAR folder, which is the preferred method in Vista (still, users can specify a different, custom folder).

From the non-Vista-related changes crowd the following stand out: UDF support for the ISO format, Unicode support for filenames in ISO images, design changes in the "Extract" dialog and a stack overflow fix.

Downloads and useful links follow. The detailed list of changes in this release is also included.


*** DOWNLOADS AND OTHER LINKS ***

Read: My complete WinRAR Review

Download the WinRAR Vista Ultimate theme: 48x48 64x64 80x80 96x96

Download WinRAR 3.71 Beta 1 for Windows
(exe installer - 1.1MB, MD5 Hash: E8FAC88B68431EAB085513F72F480EF3)

Download RAR 3.71 Beta 1 for Linux
(.tar.gz package, 751KB)

Download RAR 3.71 Beta 1 for FreeBSD
(.tar.gz package, 700KB)

Download RAR 3.71 Beta 1 for MacOS X
(.tar.gz package, 357KB)

Browse: WinRAR FTP Directory (other languages, themes, older releases)



*** WHAT'S NEW IN WINRAR 3.71 BETA 1 ***

1. Numerous Windows Vista compatibility changes:

a) help format changed from old HLP to newer HTML based CHM;

b) GUI self-extracting modules attempt to request for
administrator permissions if they cannot create destination
folder under current user account;

c) Log file rar.log and WinRAR theme files are stored
in %APPDATA%\WinRAR folder instead of WinRAR program files folder.

Exported settings file settings.reg is also stored
in %APPDATA%\WinRAR folder by default, but it is possible to
select another folder in "Save WinRAR settings" and "Load WinRAR
settings" dialogs.

WinRAR searches for registration key and settings.reg
both in its program files folder and in %APPDATA%\WinRAR;

d) Vista compatibility changes in WinRAR shell integration.

2. Added support for ISO 13346 (UDF) file format. This format
is frequently used in ISO images of DVD disks.

3. Added Unicode support for ISO 9660 files, so WinRAR should
handle non-English file names in .iso files better.

4. Design changes in window displaying archiving and extraction
progress:

a) it provides more space for file names, allowing lengthy names;

b) it displays the current archive name in separate line,
allowing much longer archive names than before;

c) when archiving, it displays the current compression ratio
in separate line;

d) it can use both standard Windows and classic WinRAR progress bars.
Turn on "Windows progress bars" option in WinRAR "Settings/General"
dialog to use standard progress bars. By default this option is
on if some Windows visual style is active and off if Windows Classic
theme is selected.

Windows progress bars are two color only, so they do not indicate
the current compression ratio. But now the ratio is displayed
in separate line;

e) "Mode..." button moved to bottom of window.

5. GUI self-extracting modules support following command line
switches:

-d set the destination path
-p specify a password
-s silent mode, hide all
-s1 same as -s
-s2 silent mode, hide start dialog
-sp specify parameters for setup program

6. GUI self-extracting modules do not pass the entire command line
to setup program like they did in previous versions.
If you need to get access to entire command line of SFX archive,
parse sfxcmd environment variable which contains this command line.

7. New switch -sc[objects] allowing to select character
sets for archive comments and list files. It replaces -fcu switch
introduced in RAR 3.60, which was removed from list of supported
switches. Now you need to specify -scuc instead of -fcu to use
Unicode comments. Unlike -fcu, -sc also supports OEM and ANSI charset.

8. New "Save archive copy as..." command in "File" menu.
This command may be useful if you opened an archive from Internet
directly in WinRAR and then decided to save it on local disk.

9. "Word wrap" command added to "View" menu of WinRAR internal viewer,
so you can change the wrapping mode of already opened viewer window.

State of this option is not stored between viewing sessions.
If you need to change the default word wrap mode, use WinRAR
"Settings/Viewer" dialog.

10. Buttons "Up" and "Down" added to "Organize profiles" dialog.
Using these buttons you can change position of selected profile
in the list.

11. Operation progress is displayed when adding the recovery record.

12. If WinRAR is minimized to tray and mouse is over its icon,
WinRAR diplays a message about the current operation progress.
In previous versions it included only percent done, now it also
contains the time left information.

13. Console RAR displays "Calculating the control sum" message
when calculating CRC32 control sum for newly created RAR volume.
Previous versions also calculated the volume control sum,
but did it silently.

14. Archives history list in "File" menu allows Unicode names,
providing more reliable support for non-English archive names.

15. Stack overflow vulnerability has been corrected in password
processing module of console RAR and UnRAR. GUI WinRAR is not
affected. We are thankful to the iDEFENSE LABS for reporting this bug.

Labels: , , ,

Tuesday, December 05, 2006

WinRAR 3.62 fixes 7-Zip archive handling vulnerability

WinRAR 3.62 Screenshot WinRAR 3.62 is a release clearly dedicated to improving modules that handle third-party compression formats, 7z and gzip to be more precise.

The fix for 7-Zip's format is the most notable since it targets a stack overflow vulnerability.

The bug in gzip handling was, at most, an inconvenience: sometimes the date for an extracted file could be set incorrectly.

Apparently, these flaws affected only the Windows build of WinRAR, since the version numbers for the Linux, BSD and Mac OS X build are the same (3.60).


*** WHAT'S NEW IN WINRAR 3.62 ***

- Stack overflow vulnerability has been corrected in WinRAR module processing 7-Zip archives;
- WinRAR GZip module could set a wrong file date when unpacking GZip archives.


*** DOWNLOAD AND OTHER LINKS ***

WinRAR Review

Download WinRAR 3.62 for Windows (exe installer - 1MB, MD5 Hash: 15CE577F46BDA1DFA2C8B10A8D0A02E5)

Download RAR 3.60 for Linux
(.tar.gz package, 735KB)

Download RAR 3.60 for FreeBSD
(.tar.gz package, 700KB, md5 = 25B783A1D98E1311002244E40380D91B)

Download RAR 3.60 for MacOS X
(.tar.gz package, 357KB, md5 = 41E6B7F4A9ABC797B612DAD55D3DCC3D)

Browse FTP Directory (other languages, themes, older releases)

Labels: , , ,

Thursday, September 14, 2006

WinRAR 3.61 plays nicer with Windows 95

WinRAR 3.61 ScreenshotWinRAR 3.61 has been posted today on the Rarlab download site. Only the Windows GUI and command line versions have been updated. The DOS, Mac OS X, Linux, FreeBSD ports are still at 3.60.

This is basically a bugfix release - it addresses a flaw in the multithreaded text compression module. Singlethreaded mode and other platforms than Windows were not affected.

Another issue that was fixed prevented WinRAR 3.60 from running on Windows 95. (It's nice to see that, even mother Microsoft has banished its sibling - Win95 -, software developers strive to continue supporting their software on this platform.)

See below for the full changelog information.


*** WHAT'S NEW IN WINRAR 3.61 ***

- Corrected a bug in multithreaded text compression module, which under some circumstances might result in corrupt archived data.
This bug was present only in multithreaded mode and only in WinRAR 3.60. RAR versions for other platforms are not affected.

- Resolved a compatibility issue preventing WinRAR 3.60 to run in Windows 95.


*** RELEVANT LINKS ***

WinRAR Review

Download WinRAR 3.61 for Windows (.exe - 1MB, md5=75059AB2727FCB7244B57690625FC582)

Download RAR 3.60 for Linux (.tar.gz package, 735KB, md5 = 50C530F0896CFF4F922BB480CCB1AA18)

Download RAR 3.60 for FreeBSD (.tar.gz package, 700KB, md5 = 25B783A1D98E1311002244E40380D91B)

Download RAR 3.60 for MacOS X (.tar.gz package, 357KB, md5 = 41E6B7F4A9ABC797B612DAD55D3DCC3D)

Browse FTP Directory (other languages, themes, older releases)

Labels: ,

Wednesday, August 16, 2006

WinRAR 3.60 Finally Released: Multithreaded, Faster, Folder Tree Panel

WinRAR 3.60 Screenshot The final version of WinRAR 3.60 is out now! Here's a download link to feed the impatient (MS-DOS, MacOS X, Linux, FreeBSD, PocketPC).

WinRAR 3.60, the compression giant's latest stable version since 3.51, brings forth several new features such as multithreading support for multiprocessor/hyperthreading/dual-core computers, up to 15% compression speed boost, explorer-style treeview panel for both file and archive mode, command line archive conversion.

Other various improvements (see full list of changes below) target archive handling and manipulation, LZH/lh7 decompression support, better benchmark tool options and several command line commands and switches.

The Linux, FreeBSD, MacOS X and PocketPC ports have been updated as well to version number 3.60.


*** WHAT'S NEW IN WINRAR 3.60 FINAL ***

1. Multithreaded version of RAR compression algorithm improves
the compression speed on computers with several CPU,
dual core CPU and processors with hyperthreading technology.
Multithreading is enabled by default, but you can disable it
in "General" part of "Settings" dialog.

In the command line mode you can control multithreading with
-mt switch.

2. WinRAR can display the folder tree panel allowing to navigate
in disk and archive folders. Use "Options/Folder tree" submenu
to enable the folder tree. It can be configured separately
in file and archive management modes.

Folder tree replaces "Browse for folder" command previously
available in "File" menu and uses its Ctrl+T keyboard shortcut.

3. Now WinRAR "Rename" command also works with ZIP archives.
Previous versions could rename files only in RAR archives.

4. Added decompression of LZH archives created with "-lh7-" algorithm.

5. New "Remove duplicate folders from extraction path" option
in "Settings/Compression" dialog.

If this option is on and you unpack an archive which root folder
has no files and only one 'somename' folder and if destination
folder is new or empty and also ends with '/somename', WinRAR
will exclude one 'somename' from resulting 'somename/somename' path.

6. New "Define volume sizes..." button in "Settings/Compression".
This button activates "Define volume sizes" dialog. Here you
can customize the list of predefined volume sizes associated
with "Split to volumes, bytes" field in archiving dialog.

7. Speed of RAR general compression increased for some data types.
Depending on data type and size the gain may achieve 5 - 15%.

8. New "Rename automatically" option in the extraction dialog
and command line -or switch to rename extracted files automatically
if file with the same name already exists. You can also enable
the auto-renaming mode directly from the overwrite confirmation
prompt with "Rename All" button.

Renamed files will get names like 'filename(N).txt',
where 'filename.txt' is the original file name and 'N' is a number.

9. "Set modification time" option in "Advanced" part of extraction
dialog is accessible also for ZIP archives. Previously it could be
changed only for RAR archives.

10. "Multithreading" option added to "Benchmark and hardware test"
command, so you can compare performance of usual and multithreaded
versions of RAR compression algorithm.

11. New 'ch' (change archive parameters) command line mode command.
Its purpose is to apply switches like -av, -tl and -cl to archive.

12. New 'cv' command line mode command. It provides the command line
interface to WinRAR "Convert archives" command. It is supported
only by winrar.exe, not by rar.exe.

13. New command line -sl and -sm switches to set size
limits of processing files.

14. New command line -fcu[file] switch allows to read archive
comments from Unicode files. It also modifies behavior
of "cw" command, setting the comment output format to Unicode.

15. 7Z added to list of formats stored without compression
when using -ms switch without a parameter.

16. Switch -e[+] is now supported by most of command line
operations including extracting and deleting files. Previously
it was supported by only archiving command.

17. It is allowed to use environment variables in archive name
in archiving dialog, in destination path in extraction dialog,
in folder names on "Compression" and "Paths" pages in WinRAR
settings. For example, you can enter '%temp%' in "Folder for
temporary files" field.


*** RELEVANT LINKS ***

Download WinRAR 3.60 Final for Windows (.exe installer, 1MB, md5 = C05F9669B7ED0CABC278F0A68AA683E2)

Download RAR 3.60 for Linux (.tar.gz package, 735KB, md5 = 50C530F0896CFF4F922BB480CCB1AA18)

Download RAR 3.60 for FreeBSD (.tar.gz package, 700KB, md5 = 25B783A1D98E1311002244E40380D91B)

Download RAR 3.60 for MacOS X (.tar.gz package, 357KB, md5 = 41E6B7F4A9ABC797B612DAD55D3DCC3D)

Labels: ,

Tuesday, August 01, 2006

WinACE gets update. And Adware.

WinRAR Free This is not so fresh but I couldn't miss it and neither can you: WinACE got updated on the 12th of July to version 2.65.

Apparently, this release brings only a "new option for licensing your copy of WinACE". This is how the developers call it; I call it adware supported software. Either way, what it all boils down to is this: if you want to legally use WinACE you can either go the "old way" and buy a license for 29 bucks or the "new way" by installing a "consumer utility that delivers relevant advertisements, exclusive offers and money saving coupons based on the web content that interests you", namely the notorious WhenU Save adware thingy (check the link for some info).

Good? Bad? Well, in my opinion, it's not going to make too much of a difference and here's why: nobody wants adware on their computer, except the so-called "non-tech-inclined" people (also refered to as lazy or ignorant) since they might not have a clue about what those nice and shiny popup offers really do (invade privacy by tracking web browsing patterns, in short). But then again, these "not-computer-proficient" boys and girls don't normally end up working with WinACE, they generally use the ZIP capabilities integrated in Windows or WinZIP.

I believe that advanced users don't count in this situation - they're going to buy it or crack it as they did before.

I wonder what will be the outcome of this for e-merge GmbH and WinACE, if the association between them and "partner WhenU" (quote) will somehow hurt their image.

When you first run WinACE 2.65 you are prompted to read some shareware information that states that the software is fully functional for 30 days, after which you will either have to purchase a license or get a free one by "installing an advertising-related software product". You are warned that if you uninstall the adware, the "free" license will become void. WhenU Save is not included in the standard WinACE installation kit - it has to be downloaded from the Internet. The download and install process can be initiated from the shareware notice window itself. I tried to see how it works, but it hanged and the download step, although my firewall was not configured to block WinACE's access to the Net.

Download WinACE 2.65 for Windows (.exe installer - 3.6MB)
Download Unace 2.5 for Linux (.tgz - 200KB)
Download Unace 2.5 for Mac OS X (.dmg - 136KB)
ACE products download page (various operating systems)

Labels: , ,

Sunday, July 30, 2006

Free WinRAR Registrations. Get it Quickly - Offer Starts and Ends Today!

WinRAR Free The greatest archiving utility in the whole world has done it again: WinRAR 3.51 won the 2006 "SIAF People’s Choice Award for Best Overall Utility". The "Best Overall Utility" award was won by WinZip.

To express their hapiness towards this, as well as their thanks to all the people who voted for WinRAR, RarLab decided to have a 1-day offer of free registration keys for WinRAR 3.51.

All you have to do is fill in a simple form and you will receive your registration key by email. Registering will automatically place you in a mailinglist about the latest WinRAR releases and offers, but you can opt-out once you receive the first email. You may also choose to receive similar offers about software recommended by RarLab, if you are interested.

Keep in mind, though, that this is a non-upgradeable reg key, which only works with WinRAR 3.51, thus it will not be valid for the upcoming stable release of WinRAR 3.60 (currently Beta 8).

If all of the above is ok with you, hurry and get your key while the offer is still on. There are a lot of people interested in getting a free license (can't say I'm amazed, WinRAR is an excellent utility), which kind of overloaded the win-rar.com website. You might need to try a few times to get in and submit the form correctly. Rest assured, though, that once you send the form, you will get the registration key.


*** RELEVANT LINKS ***

Get WinRAR 3.51 Registration Key
Download WinRAR 3.51
Read WinRAR Review

Labels: , ,

Thursday, July 20, 2006

WinRAR 3.60 Beta 8 - Improved and Secure Compression

After a short absence, my postings WinRAR 3.60 Beta 7 Screenshotcontinue with another WinRAR Beta, this time version 3.60 Beta 7, which has been posted today on the Rarlab download site. Again, only the Windows GUI and command line versions have been updated. The DOS, Mac OS X, Linux, FreeBSD ports are still at Beta 6.

It seems that the developers of WinRAR are doing some kind of code auditing these days, since, like Beta 7, this release addresses a security issue - it fixes a stack overflow vulnerability in the SFX module.

See below for the full changelog information.


*** WHAT'S NEW IN WINRAR 3.60 BETA 8 ***

Stack overflow vulnerability has been corrected in SFX module.


*** RELEVANT LINKS ***

WinRAR Review
Download WinRAR 3.60 Beta 8 for Windows (.exe - 1MB)
Download RAR 3.60 Beta 6 for Mac OS X (.tar.gz - 357KB)
Download RAR 3.60 Beta 6 for Linux (.exe - 735KB)
Download RAR 3.60 Beta 6 for FreeBSD (.exe - 701KB)
Browse FTP Directory (other languages, themes, older releases)

Labels: , ,

Thursday, July 13, 2006

Download WinRAR 3.60 Beta 7 and Get Compressing!

WinRAR 3.60 Beta 7 ScreenshotWinRAR 3.60 Beta 7 has been posted today on the Rarlab download site. Only the Windows GUI and command line versions have been updated. The DOS, Mac OS X, Linux, FreeBSD ports are still at Beta 6.

This release is basically a security patch - it fixes a stack overflow vulnerability in an archive processing component. The flaw was identified by a third party company.

See below for the full changelog information.


*** WHAT'S NEW IN WINRAR 3.60 BETA 7 ***

Stack overflow vulnerability has been corrected in WinRAR module processing LZH archives. We thank Ryan Smith, www.hustlelabs.com, for reporting this problem.

*** RELEVANT LINKS ***

WinRAR Review
Download WinRAR 3.60 Beta 7 for Windows (.exe - 1MB)
Download RAR 3.60 Beta 6 for Mac OS X (.tar.gz - 357KB)
Download RAR 3.60 Beta 6 for Linux (.exe - 735KB)
Download RAR 3.60 Beta 6 for FreeBSD (.exe - 701KB)
Browse FTP Directory (other languages, themes, older releases)

Labels: , ,

Monday, July 03, 2006

Quench your compression needs with WinRAR 3.60 Beta 6!

WinRAR 3.60 Beta 5 ScreenshotWinRAR 3.60 Beta 6 has been posted just minutes ago on the Rarlab download site. Beside the Windows GUI version, the command line DOS, Linux, Mac OS and FreeBSD have been updated.

The release brings forth a few bug fixes, generally related to command line switches (options).

See below for the full changelog information.


*** WHAT'S NEW IN WINRAR 3.60 BETA 6 ***

- Switch -ad did not work in GUI winrar.exe.
- When repairing several archives, console RAR did not handle 'No' choice of overwrite archive request properly. It aborted the operation instead of skipping the current archive.


*** RELEVANT LINKS ***

WinRAR Review
Download WinRAR 3.60 Beta 6 for Windows (.exe - 1MB)
Download RAR 3.60 Beta 6 for Mac OS X (.tar.gz - 357KB)
Download RAR 3.60 Beta 6 for Linux (.exe - 735KB)
Download RAR 3.60 Beta 6 for FreeBSD (.exe - 701KB)
Browse FTP Directory (other languages, themes, older releases)

Labels: , ,

Tuesday, June 20, 2006

Command line compression for Windows

*** CONTENTS ***

Introduction
Unix-style CLI compression
WinRAR goes command-line
The opensource connection: 7-Zip
CLI tools exit codes
Short Dictionary


*** INTRODUCTION ***

Back in the day when archiving meant putting a bunch of files together into a single bigger chunk in order to make the transfer to tape faster, tar was a common tool. It still is, today, in the UNIX world, typically used in conjunction with two standard compression utilities: gzip and bzip2. The resulting compressed file is sometimes called a “tarball”, although there’s no actual “tar” involved, just zeros and ones.

In the Windows world, and this applies to all modern operating systems (Mac OS X, Linux with a desktop environment such as KDE or Gnome), compression tasks are generally accomplished from within a GUI based program. Such software has been covered in previous articles about WinRAR, 7-Zip and WinZip. However, if you feel left out or totally uncool for not being able to use command line tools for archiving your stuff, read on and learn how to use strange sounding programs such as tar, gzip and bzip2, without installing a UNIX derivate (Linux, various BSD flavors and so on). Renowned compression software will not be avoided; WinRAR and 7-Zip both have command line interfaces and you’ll get a crash course on those too.


*** Tarring, gzipping and bzipping stuff like an uber-geek ***

Tar is a kind of a grandfather, he’s been around for ages and it’s seen a lot. It’s a bit tired, but wise and can do the job if you know how to “talk” to it. Even if you can’t teach it new tricks, the ones it already knows, albeit somewhat old, make it very flexible and fit for many situations. When coupled with auxiliary programs, e.g. gzip/bzip2 for compression, it becomes even more powerful.

You’ve probably seen some funny looking files with double extensions, like NAME.tar.gz or NAME.tar.bz2 and thought “what’s up with *that* ?”. Get ready, we’re about to shed some light on the subject (sunglasses optional)…

Two extensions means two programs were involved in the creation of that program. Take .tar.gz for example, the original data was first “tarred” to NAME.tar and then “gzipped” to NAME.tar.gz. Tar’s job is to look at all the files and directories it has to process and concatenate their contents, along with other information such as path, permissions and so on, into a single file with a .tar extension. Then, the .tar file was sent (“piped” in geek language) to gzip for compression, to obtain the .tar.gz thing. The “tar” program is smart though, and enables you to do this in a single step with a command similar to “tar czf *.doc docs.tar.gz” (to compress all .doc files into a single docs.tar.gz archive). Know this though: sometimes the two extensions are condensed into shorter forms such as “.tgz” and “.tbz2”.

Now, let’s see how we can do this on Windows, assuming you are running on Windows 2000 or later (XP, 2003). First of all, we need to access the command prompt (hopefully, you’ve at least *heard* of it before plunging into this article). To do that, go to Start->Run, type “cmd”, press Enter, then stand back and be amazed: the Windows command line (no, not good for h4x0ring). Next, we need the actual programs to work with, but how? Tar, gzip and bzip2 are UNIX programs, right? How could they run on Windows? Well, here’s one of the situations where opensource pays. Having access to the source of a software package makes it possible for that program to be “ported” to other platforms (i.e. modify its source so that it compiles on other operating systems and/or compilers).

All three utilities I’ve been babbling about until now have Windows ports. Gzip for Windows can be obtained from its official homepage and the same applies to bzip2. There are two tar ports actually, one is the traditional (GNU) Tar and the other is for BsdTar. The latter is said to be faster and can compress/decompress files without the use of the external gzip/bzip2 executables (“binaries” in geek-talk).

Once you obtained and installed the programs, as described above, you can start archiving right away.

To make a single .tar file with all the .docs in the current dir, use the command: “tar –cv *.doc –f AllMyDocs.tar”. The two “flags” we used stand for “create archive (c)” and “be verbose (v)” which basically means “don’t be selfish, tell me what you’re adding to the archive”.

To also compress (with gzip) the resulting .tar archive, you would normally add the “z” flag like so: “tar –czv *.doc –f AllMyDocs.tar”. However, this does not work - it fails with the error “tar: Cannot fork: Function not implemented tar: Error is not recoverable: exiting now”. Apparently, the win32 port of GNU Tar is not complete; it cannot “fork” child processes, which in English means that it cannot start a new copy of itself. Fear not, even if there is no fork in GNU Tar/win32’s world, there is a spoon and here’s where BsdTar enters the stage; just use something like “bsdtar –cvzf allmydocs.tar.gz *.doc” and you’re all set.

The above also applies to bzip2 compression, the flag to be used is “j” and the command becomes “bsdtar –cvjf allmydocs.tar.bz2 *.doc”.

If you’re a real geekboy, you can still use GNU Tar to gzip/bzip2, just “pipe” to these programs the data stream tar yielded by “tar” instead of writing it to a file, for example: “tar –cv *.doc gzip > allmydocs.tar.gz”.

Take a peek into the tarballs

Due to the “fork” issue, listing the contents of the archives we previously obtained is easier with “bsdtar”, but can be obtained with “tar” as well, by using some “pipe magic”.

To list the docs in your allmydocs.tar.gz archive using bsdtar, type: “bsdtar –tf allmydocs.tar.gz”. The same command works with bzipped files too: “bsdtar –tf allmydocs.tar.bz2”.

Using tar is a bit more complicated, but it can’t be too hard for such a good student such as yourself (you must be one, if you’re still with me): “gzip –dc allmydocs.tar.gz tar –t” or “bzip2 –dc allmydocs.tar.bz2 tar –t”. If you’re bothered by the warnings gzip/bzip2 display when decompressing data to standard output, just add another flag (-q suppress noncritical error messages) and you’ll be fine: “gzip –dcq allmydocs.tar.gz tar –t” or “bzip2 –dcq allmydocs.tar.bz2 tar –t”.

Finding the handy “-q” flag was accomplished by invoking the gzip/bzip2 help with “gzip –h” and “bzip2 –h”. Try it and notice the various options these programs provide to the user.

I want my files back! How do I get them out?

The “tar” flag for extraction is “-x” (big surprise, I know). So, a command for extracting all your aforementioned docs would be “bsdtar –xzvf allmydocs.tar.gz”. Since “bsdtar” is such a smart-ass, you can omit the flag which tells it what compression program was used to make the file (“-z” or “-j”), that’s why the command “bsdtar –xvf allmydocs.tar.gz” works just as well.

Again, using GNU Tar is a bit trickier – it involves “piping”: “gzip –dc allmydocs.tar.gz tar –xv” or “bzip2 –dc allmydocs.tar.bz2 tar –xv”.

Both commands will extract the contents of the archive, including paths information (directories).

RAR command line command parameters options switchesOk, that’s just peachy, but what about more advanced stuff?

It’s time for RAR and 7-Zip to show us what they’ve “got”. Beside basic archive operations (create, extract, list contents), these two are capable of lots of advanced stuff, for example (some features may not be available in both programs): add recovery record, repair archive, convert archive to SFX, encrypt files, freshen archive (update modified files), send compressed file to email, set dictionary size for compression, set the number of execution threads (useful for multiprocessor, dual core or HyperThreading machines), set password and so on.


*** RAR. Win RAR ***

WinRAR’s superspy CLI (Command Line Interface) version is named, simply, rar (actually rar.exe, but we’re going to call it just “rar” from now on). Best way to use it easily is to add “C:\Program Files\WinRAR” to your PATH environment variable, like you learned when we talked about “tar” and its friends. Once you’ve done that, type the command “rar” and press Enter in order to see a rather lengthy list of options and switches (flags) - we’ll be reviewing here the most important ones.

Unlike tar & co., rar’s main commands (create archive, extract and so on) are not treated like switches (flags) but are used “as-is” – a single letter immediately after the command invocation (e.g. “rar a ..” to create a new archive).


Basic commands in RAR

a – Add files to archive
Used to create a new archive or add files to an existing one
Example: “rar a allmydocs.rar *.doc” creates a RAR archive that contains all the doc files in the current directory.


c – Add archive comment
Used to add a text comment to an existing archive
Example: “rar c allmydocs.rar” allows you to interactively enter some text, which will be added to the archive as a comment.
An interesting variant of this option is cw, which dumps the comment to a file of your choice. “rar cw allmydocs.rar doc-comments.txt” would read the comment inside your archive and write it to the txt file.


e – Extract files to current directory
Used to quickly extract files from within an existing archive. Optionally, it can get only certain files (specified on the command line)
Extract all files example: “rar e allmydocs.rar” would uncompress all the arhive contents in the current directory
Extract certain file example: “rar e allmydocs.rar must-read.doc” would get only the must-read.doc out of the archive and put it in the working directory.

f – Freshen files in archive
Update archive by refreshing files that were modified since they were added to the archive or last “freshened”.
Example: “rar f allmydocs.doc” would check all corresponding files against their copy inside the archive, and update the archive where differences are found.

l – List archive
Used to display a list of files and other details contained by the archive. There are 3 modes for this command, each with its distinct set of info columns.

Default mode (l)
Shows file name, real size (in bytes), packed size, compression ratio, date and time, attributes, the CRC (Cyclic Redundancy Check) hash, the compression method and version.
Example: “rar l allmydocs.rar”

Technical mode (lt)
Additionally displays the Host OS (operating system used to create the archive, whether or not the archive is solid, and if the format is “old” or not.
Example: “rar lt allmydocs.rar”

Bare mode (lb)
Displays only the file names
Example: “rar lb allmydocs.rar”


Slightly more advanced stuff

d – Delete files or folders from archive
Used to delete one or more files inside an existing archive
Example: “rar d allmydocs.rar mustdelete.doc” would delete a single doc file from the archive
Another example: “rar d allmydocs.rar old_docs” would delete the entire “old_docs” folder (that is, including the contents)

t – Test archive files
Used to test that an archive is not damaged. Works by performing a fake extraction of the archive contents (extracted data is not actually written to disk).
Example: “rar t allmydocs.rar”

x – Extract files with full path
Used to obtain some files out of an archive, or to uncompress an entire archive. The files are extracted with “full paths”, which means the directory structure is recreated to match the one at the time of compression.

Simple mode:
Extracts all files in a RAR arhive
Example: “rar x allmydocs.rar”

Advanced mode:
Lets you skip extraction of files you don’t need, either by typing their names on the command line or by providing a exclusion list file.
Example (1): “rar x –xuseless.doc allmydocs.rar” (skips useless.doc while uncompressing the archive)
Example (2): “rar x –x@ allmydocs.rar” (then type filenames you want to skip)
Example (3): “rar mailto:x%20-x@skip.txt allmydocs.rar” (all files specified in skip.txt will be skipped)


Even more advanced stuff (good to impress on the first date)

s – Convert to SFX / remove SFX module
The default form of this command adds a SFX module to the archive of your choice, transforming it into a self-extracting ”.exe” archive, perfect if you want to distribute the archive but suspect that some of the recipients do not have a compression program capable of handling RAR files. The default.sfx module is used or, optionally, one specified in the command line immediately after the s command.
Example: “rar s allmydocs.rar”.


The “evil twin” of this command is s-, which removes SFX modules.
It will not overwrite the self-extracting (.exe) archive, but will create a new one with the usual “.rar” extension.
Example: “rar s- allmydocs.exe” creates a new archive named “allmydocs.rar”


r – Repair archive
Attempts to repair a damaged archive using any available recovery records. If recovery records are not available, rar will only reconstruct the archive (i.e. the file list), in order to be able to recover undamaged files. If recovery records are in fact available, rar can be much more efficient and rebuild the entire archive.
The repaired archive is saved to rebuilt.original_name.rar (no recovery record) or fixed.original_name.rar (recovery record(s) found).
Example: “rar r allmydocs.rar”


The rc variant of this command is designed to work with multi-volume archives and can reconstruct missing volumes.
The rr variant can be used to add a recovery record to an existing archive; for example “rar rr allmydocs.rar”.
The rv variant does the same thing, but for multi-volume archives; the recovery records are external files with the “.rev” extension.

u – Update files in archive
Adds files that are not in the archive (using the initial file spec used when creating the archive) and freshens the ones that already are included (see the f command). If you created an archive with a command such as “rar a allmydocs.rar *.doc”, updating it will look for new .doc files and add them to allmydocs.rar, plus it will check what files inside the archive have been modified in the “real world” – the filesystem.
Example: “rar u allmydocs.rar”


7-Zip command line parameters options switches
*** Bored of RARing things up? Then try some zipping. 7-zipping, to be more precise ***

7-Zip’s CLI interface is called 7z.exe, but after you get to know each other (i.e. after you add 7-Zip’s directory to your PATH environment variable), you may simply call it “7z”. Try that now, to get the commands and switches list, as in the nearby picture.

Simple operations (prerequisites for achieving coolness state)

a – Add files to archive
Used to create a new archive or add files to an existing one. Can be combined with the “-r” switch which affects directory recursion.
Example (1): “7z a testarc.7z *.*” creates a new archive containing all files in the current directory. Subdirectories are ignored.
Example (2): “7z a –r testarc.7z *.*” creates a new archive containing all files in the current directory, including the subdirectories.
For both examples, if the archive already exists, 7-Zip will check if new files should be added and update it accordingly

e - Extract files from archive (without using directory names)
Used to quickly uncompress an archive’s contents into the current directory or the one specified with “-o”. Caution: it does not use the stored path information (all files will be extracted in the current/output directory). Can also be combined with the “-r” and “-x” switches.

Simple mode:
Extract all files and place them in the current directory
Example: “7z e testarc.7z”

Advanced mode:
Lets you change the destination directory or exclude some files
Example (1): “7z e –ooutput_dir testarc.7z” extracts the archive’s contents in the “output_dir” directory (can be a fully qualified path including a drive letter)
Example (2): “7z e –r –x!*.txt” extracts all files inside the archive, except .txt files

l - Lists contents of archive
Used to list the contents of an archive (filenames, sizes, dates, attributes).
Example: “7z l testarc.7z”


u – Update files in archive
Used to add new files or update files inside an archive to match the changes in the original files. Similar to RAR’s freshen (f) command. Can be combined with the “-r” switch.
Example (1): “7z u testarc.7z *.*” will update all files in the archive with respect with the files in the current directory. New files missing in the archive will be added.
Example (2): “7z u –r testarc.7z *.doc” will work only with .doc files in the current directory and any subdirectories


A bit more advanced stuff

t – Test archive
Used to test the integrity of an archive or check files inside an archive. Can be combined with the “-r” and “-x” switches
Example (1): “7z t testarchive.7z” will test the archive, including all the files inside it
Example (2): “7z t –r testarchive.7z *.txt” will test all .txt files inside the archive

d – Delete files from archive
Used to delete some files from an archive. Can be combined with the “-r” and “-x” switches for more power
Example (1): “7z d testarchive.7z *.doc” – deletes all .doc files from the archive
Example (2): “7z d –r –x!important*.doc” – deletes all .doc files from the archive, except documents which have the word “important” in their filename

x - Extract with full paths
Used to extract files from an archive, using the stored full paths, to the current directory or the directory specified with “-o”. Can also be combined with the “-r” and “-x” switches.

Simple mode:
Extracts all files and places them in the current directory
Example (1): “7z x testarc.7z”

Advanced mode:
Lets you change the output directory or skip some files
Example (1): “7z x –r –ouncompressed testarc.7z” – extracts all files to the “uncompressed” directory
Example (2): “7z x –r –x!*.doc” – extracts all files except .doc files


Create SFX archives with the “–sfx” switch
Example (1): “7z a –sfx testarc.7z *.*” – creates a SFX archive containing all files in the current directory
Example (2): “7z a –sfx7z.sfx testarc.7z” – creates a SFX archive which displays a confirmation/options dialog when executed

Well, that’s about it regarding the usage guides. There are some even more advanced commands, options and switches, but you can find them for yourself in the programs’ documentation, after you get the hang of it by trying the stuff presented in this article.

The remainder of the guide includes a short piece about CLI tools exit codes and a term dictionary. Good luck!



*** EXIT CODES ***

Most CLI utilities are kind enough to report if the operation asked of them was successful or not. They do this after their execution ends, by using the so-called “exit codes” (or “return codes”). These are numbers and have special meanings, sometimes different from program to program. The exit codes are usually invisible to the normal user, but they are important when the CLI utilities are invoked in shell scripts in order to determine whether the script performs normally, or it encountered errors.

Below is the list of return codes for WinRAR and 7-Zip, a useful resource for programmers and advanced users.


WinRAR (RAR)

0 - Successful operation.
1 - Warning. Non fatal error(s) occurred.
2 - A fatal error occurred.
3 - CRC error occurred when unpacking.
4 - Attempt to modify a locked archive.
5 - Write error.
6 - File open error.
7 - Wrong command line option.
8 - Not enough memory.
9 - File create error.
255 - User break.

7-Zip

0 - No error
1 - Warning (Non fatal error(s)). For example, some files were locked by other application during compressing. So they were not compressed.
2 - Fatal error
7 - Command line error
8 - Not enough memory for operation
255 - User stopped the process


*** DICTIONARY ***

* Tar - traditional file archiver, originally used with tape devices. Does not compress, it only concatenates files in to a single “blob”
* Gzip – open source compression program (GNU)
* Bzip2 – another open source compression program, provides better compression rates at the expense of longer compression times
* Tarball – a package obtained by archiving a group of files with ‘tar” and then passing the result to “gzip” or “bzip2”
* Pipe – the “” character, used to combine several programs in a single command line call
* Switch – a way of modifying a program’s/command’s default functionality, usually specified on the command line using one or two dash characters (e.g.: -h or –help)

Labels: , ,

Saturday, June 17, 2006

WinRAR 3.60 Beta 5 Available. Compress Away!

WinRAR 3.60 Beta 5 ScreenshotWinRAR 3.60 Beta 5 has been posted just minutes ago on the Rarlab download site. Beside the Windows GUI version, the command line DOS, Linux, Mac OS and FreeBSD have been updated.

The release brings forth a few bug fixes, generally related to command line switches (options).

See below for the full changelog information.


*** WHAT'S NEW IN WINRAR 3.60 BETA 5 ***

- GUI winrar.exe ignored -mt switch and always used "Multithreading" option from "Settings" dialog. Fixed now.
- Correction in -ilog switch. In some situation the current date was not written to rar.log file.

*** RELEVANT LINKS ***

WinRAR Review
Download WinRAR 3.60 Beta 5 for Windows (.exe - 1MB)
Download RAR 3.60 Beta 5 for Mac OS X (.tar.gz - 357KB)
Download RAR 3.60 Beta 5 for Linux (.exe - 735KB)
Download RAR 3.60 Beta 5 for FreeBSD (.exe - 701KB)
Browse FTP Directory (other languages, themes, older releases)

Labels: , ,

Thursday, May 25, 2006

WinRAR 3.60 Beta 4 Available

WinRAR 3.60 Beta 4 ScreenshotWinRAR 3.60 Beta 4 has been posted on the Rarlab download site a few minutes ago.

The release brings forth speed improvements for archive recovery operations as well as some bug fixes related to the GUI (user interface) and a command line option.

See below for the full changelog information.


*** WHAT'S NEW IN WINRAR 3.60 BETA 4 ***

- Recovery speed improved when repairing heavily damaged archives using the recovery record.
- If volume size field contained a value exceeding 4 GB, it was changed to wrong value after switching to any other page of archiving dialog and returning back to "General" page.
- Update ('u') command did not work properly with some high ASCII names in beta 3.

*** RELEVANT LINKS ***

WinRAR Review
Download WinRAR 3.60 Beta 4 for Windows (.exe - 1MB)
Download RAR 3.60 Beta 4 for Mac OS X (.tar.gz - 357KB)
Download RAR 3.60 Beta 4 for Linux (.exe - 734KB)
Download WinRAR 3.60 Beta 4 for Pocket PC (.exe - 259KB)
Browse FTP Directory (other languages, themes, older releases)

Labels: , ,

Thursday, May 18, 2006

7-Zip 4.42 Final Version Ready for Download

The renonwned opensource compression utility for Windows, 7-Zip, reaches a new stable version - 4.42. Essentially a bug fix release, this version does not bring any notable additions since the last betas, but there are new features since the last stable version, 4.32. Check out below for full changelog information since 7-Zip 4.32 and download options.

There's also a separate package that includes only the command line version of 7-Zip (see below for download links).

The LZMA SDK has been updated as well to version 4.42.

The Linux port of 7-Zip doesn't seem to have been refreshed, the version available from the p7zip project is still 4.39.

*** WHAT'S NEW IN 7-ZIP 4.42 ***

- Compressing speed and Memory requirements were increased. Default dictionary size was increased: Fastest: 64 KB, Fast: 1 MB, Normal: 4 MB, Max: 16 MB, Ultra: 64 MB.
- 64-bit version now supports 1 GB dictionary
- 7z/LZMA now can use only these match finders: HC4, BT2, BT3, BT4
- Compression ratio in Zip/GZip/Deflate in Ultra mode was increased
- BZip2 compressing / decompressing now can work in multi-threading mode
- Multi-threading mode now is default for multi-processor systems
- New switch: -scs{WINDOSUTF-8} specifies charset for list files. Default charset for list files is UTF-8 now.
- New localization: Albanian
- New switch for 7z.exe (console version): -slt ("l" (list) command with -slt shows technical information for archive)
- 7-Zip now can unpack ISO archives
- 7-Zip File Manager now can calculate CRC checksums for files
- x switch with relative paths now affects files specified with absolute paths
- Optional Flat View mode in 7-Zip File Manager
- 7-Zip now can unpack some installers created by NSIS
- New localization: Kurdish
- Some bugs were fixed

*** RELEVANT LINKS ***

Full 7-Zip Review
Download 7-Zip 4.42 for Windows (.exe - 818KB)
Download 7-Zip 4.42 for Windows (MSI - 874KB)
Download 7-Zip 4.42 for Windows x64 (MSI - 1.23MB)
Download 7-Zip 4.42 for Windows ia64 (MSI - 1.86MB)
Download 7-Zip 4.42 for Windows Command Line Only (.zip - 302KB)
Download p7zip 4.39 for Linux x86 (2MB)

Labels: , ,

Tuesday, May 09, 2006

Download 7-Zip 4.41 Beta - new bugfix release

7-Zip 4.41 ScreenshotA new beta for 7-Zip, the renowned open source compression program has just been unleashed today.

7-Zip 4.41 Beta is basically a bugfix release, the changelog being extremely scarce in details about the specific bugs being actually fixed.

*** WHAT'S NEW IN 7-ZIP 4.41 BETA ***

Changes:

- Some bugs were fixed

*** RELEVANT LINKS ***

Full 7-Zip Review
Download 7-Zip Beta 4.41 for Windows (.exe - 818KB)
Download 7-Zip Beta 4.41 for Windows (MSI - 874KB)
Download 7-Zip Beta 4.41 for Windows x64 (MSI - 1.23MB)
Download p7zip 4.39 for Linux x86 (2MB)

Labels: , ,

Monday, May 08, 2006

WinRAR 3.60 Beta 3 Ready for Download!

WinRAR 3.60 Beta 2 ScreenshotWinRAR 3.60 has been posted on the Rarlab site disks a few minutes ago.

According to the changelog, this is a again a bugfix release with no new features, just as Beta 2. See below for yourself.

*** WHAT'S NEW IN WINRAR 3.60 BETA 3 ***

- Previous beta version could create duplicate copies of same file when updating an archived file with high ASCII characters in file name.
- SFX module crashed if single string length in "License" or "Text" block exceeded 4096 characters.

*** RELEVANT LINKS ***

WinRAR Review
Download WinRAR 3.60 Beta 3 for Windows (.exe - 1MB)
Download RAR 3.60 Beta 3 for Mac OS X (.tar.gz - 357KB)
Download RAR 3.60 Beta 3 for Linux (.exe - 734KB)
Download WinRAR 3.60 Beta 3 for Pocket PC (.exe - 259KB)
Browse FTP Directory (other languages, themes, older releases)

Labels: , ,