OS4 DepotLogo by Marko 
(anonymous IP:,0) 

   Bug tracker
   Locale browser

   o Audio (330)
   o Datatype (47)
   o Demo (186)
   o Development (541)
   o Document (21)
   o Driver (89)
   o Emulation (142)
   o Game (874)
   o Graphics (469)
   o Library (102)
   o Network (207)
   o Office (56)
   o Utility (827)
   o Video (62)

Total files: 3953

Full index file. Download
Recent index file. Download



Support the site

 Readme for:  Utility » Archive » lhx.lha


Description: Pack & unpack using XZ/LZMA with filebits intact
Download: lhx.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 172kb
Version: 0.86.1b
Date: 12 Mar 19
Author: Marko K. Seppänen, Lasse Collin, Igor Pavlov
Submitter: Marko Seppänen
Homepage: http://www.m4rko.com/amiga
Requirements: Lha2.15+, (Xad_7z recommended)
Category: utility/archive
Replaces: utility/archive/lhx.lha
License: Other
Distribute: yes
Min OS Version: 4.1
FileID: 10853
Comments: 7
Snapshots: 0
Videos: 0
Downloads:  (Current version)

[Show comments] [Show snapshots] [Show videos] [Show content] [Show crashlogs] 
Lhx - 0.86.1 - BETA

Lhx is a file compression utility that compresses files to an AmigaOS compatible
XZ/LZMA compressed archive. where all AmigaOS file system protection bits and
possible comments are preserved.

XZ/LZMA is the same compression method used as in the acclaimed 7-Zip.

A Quick Comparison Test
A test drawer with some text and exe files, size 4 273 588 bytes:
 - Unpacked:           4 273 588 B  test
 - Lhx (XZ/LZMA+lh0)   2 375 368 B  test.lhx
 - Lha (-lh6-)         2 929 454 B  test2.lha
 - Lha (-lh5-)         2 929 454 B  test.lha

Run the Install file in the package, or:
  1. Copy the "Lhx" file into your "C:" drawer.
  2. Optionally copy the documentation files; "Lhx.manual.doc.txt",
     "Lhx.readme" and "Lhx.readme.info" to presumably "SYS:Documentation/Lhx/".
  3. Done.

Extracting the Lhx.lhx
If there is a problem extracting the Lhx.lhx-file itself...

In shell, unpack the Lhx-file ("Lhx.lhx") with the Lhxunpack command found
in the C drawer inside this archive.

1. Unpack the lha 
2. In shell go into Lhx_temp 
3. And in Lhx_temp dir, for unpacking the Lhx.lhx type the following: 
   c/Lhxunpack Lhx.lhx 
4. Voila! Now you should have a new dir "Lhx" inside Lhx_temp directory.


; Pack/compress a file
1> lhx NEW mypackedfile.lhx somefile
; Or shorthand works too
1> lhx -n mypackedfile.lhx somefile

; Pack/compress a file from, and to RAM Disk:
1> lhx NEW ram:mypackedfile.lhx ram:t/usb.log

; Pack/compress a drawer and a file to RAM Disk:
1> lhx NEW ram:MyPackedGame.lhx MyGame MyGame.info

; For extracting/unpacking the files use the EXTRACT command.
1> lhx EXTRACT packed.lhx
; Or shorthand works too
1> lhx -e packed.lhx

; For extracting/unpacking to the RAM Disk:
1> lhx EXTRACT packed.lhx ram:

0.86.1 beta: (2019 Mar)
 - Fixed wrong default tool in extraction script, thanks Chris Young.
 - Cosmetic fixes and changes to output messages and readme.
0.86.0 beta: (2018 May)
 - Added new option FORCE that will force certain commands. Using FORCE when 
   extracting will create all destination dirs if those are missing, and 
   without complaining.
 - Added a more graceful error message when dir not exists upon extract command.
 - Fixed missing newline before possible first error message.
0.85.1 beta: (2018 May)
 - Fixed weird issue Lhx file getting write protected.
 - Fixed Install file trying to copy with a typo in the Manual filename.
 - Fixed EXTVER tag with added sub-revision number.
 - Fixed a few typos in this readme.
0.85.0 beta: (2018 May)
 - Added output of number of files extracted.
 - Now builds an Lhxunpacker executable, apart from the normal Lhx executable.
   This new executable can only extract archives and is much smaller than the
   main executable. This exe. will be used in the "self extracting archive" in
   future releases from now on.
0.84.0 beta: (2018 Apr)
 - With this release, Lhx is out of Alpha state, and into Beta. All serious
   issues (as far as I know) are resolved.
 - Refactored the release archive into sort of a "self extracting archive". The
   idea is to extract the Lhx.lhx archive with a previous version of itself.
   (The latest version of the executable will be extracted from the
   "Lhx_temp/Lhx.lhx" file into "Lhx_temp/Lhx/Lhx", with the previous version
   located in "Lhx_temp/C/Lhx".)
 - Typos fixes in documentation.
0.83.0 alpha: (2018 Feb)
 - Implemented so only correct type of files can be extracted, through checks
   of file-headers (Magic Headers), and not solely of file extensions.
 - Fixed a few other issues regarding filetypes/fileheaders.
 - When extracting, the destination dir is checked that it really is a
   directory and not a regular file.
 - Fixed its own directory for the documentation in AutoInstall.
 - Clarified and fixed typos in help/documentation.
 - Among other things.
0.82.0 alpha: (2018 Feb)
 - Fixed a number of bugs.
 - Checks that the files to be archived / extracted to actually exists.
 - A lot of internal refactoring.
 - Implemented a logger (RAM:T/Lhx.log), to help finding bugs (although not all
   operations are logged (yet)).
 - Other miscellaneous fixes and improvements.
0.81.0 alpha: (2018 Feb)
 - Fixed bugs/issues with files not found and old temp. files.
 - Corrected wrong months in Recent section, thanks MickJT.
 - Added Install and AutoInstall files.
 - Added icons for the readme, etc.
 - Clarified readme and help text.
0.80.0 alpha: (2018 Feb)                                                       
 - 7z superseded by XZ/LZMA and program renamed to Lhz (from L7z), thanks for
   suggestion Fredrik Wikström. XZ/LZMA is a subset of 7z (used in 7-Zip).
 - Miscellaneous fixes and improvements.
0.7.0 alpha: (2018 Jan)
 - First public release.


    (See the doc/manual for more information.)

LhA version 2.15+
Xad_7z recommended

- Lhx, developed by Marko K. Seppänen
- XZ, by The Tukaani Project (Lasse Collin, Antti Aalto, Ville Koskinen, Daniel
  Liljeqvist, Jaakko Pallari, Mikko Pouru, and more..., see
  https://tukaani.org/about.html )
- Liblzma, written by Lasse Collin
- 7z (LZMA/LZMA2), by Igor Pavlov
- LZMA, Lempel-Ziv-Markov chain algorithm

Other credit(s)
Fredrik Wikström, Chris Young, Sven Ottemann


Copyright (c) 2004-2019 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment