7zip Freebsd

0 views
Skip to first unread message

Elly Garnand

unread,
Aug 3, 2024, 1:27:14 PM8/3/24
to enmehneymarb

The problem is that files have been created, I guess, with a recent version of 7zip, while the installed version on the other server is 9.20. Also this second server is running trough Ubuntu 12.04 and I did not find any way to run a more recent version of 7zip, is it possible or not ?

I do not have the hand on the first server so I can't just use another zip software, and I can't neither download all files on my computer then unzip->zip and upload again because it would be too long.

7-Zip 9.20 was released on the 18 November 2010. So, I don't think the problem is with the version. 7-zip has a lot of options for creating of an archive. And some other programs may not support some options. So, if your files were compressed by 7-Zip than try to uncompress them by 7-Zip. 7-Zip on Ubuntu is "7z". You can install it using commands in Linux console:

It's first version of my port of 7-Zip to Linux.
That port of 7-Zip is similar to p7zip, but it's not identical to p7zip.
Please write here about any bugs and problems with that new Linux version of 7-Zip.

These new 7-Zip binaries for Linux were linked (compiled) by GCC without -static switch. And compiled 32-bit executables (x86 and armhf) didn't work on some arm64 and amd64 systems, probably because of missing of some required .so files.
Please write here, if you have some advices how to compile and link binaries that will work in most Linux systems.

The license for source code will be same - GNU LGPL.
p7zip has big compiling scripts that are good for linux distributions. But 7-Zip for Linux doesn't use these compiler scripts now.
It's possible to merge 7-Zip code with p7zip compiler scripts.
But I don't work with Linux. So it's difficult for me to maintain all these Linux scripting and packaging things from p7zip.
And developer of p7zip port didn't show any activity last 4-5 years.

Happy to help with a CMake build system. Would you also be amenable to publish the code on GitHub?
Even if you won't accept pull requests there, having an official GitHub mirror that's updated ever time there's a release would make people's lives a bit easier.

I maintain a fork version of p7zip on github.
Many people in the community are very interested in p7zip. I believe once
the source code of 7zip-21.0 is released, and the community will definitely help complete the 7zz Linux build script as soon as possible.

Yes! Thanks so much, Igor. It's so strange-- 7-zip was very much my preferred archive tool for years and years until I switched to Linux. Recently, I have the need for an installer and have been studying 7-zip's SFX implementation for the past several days, and then like magic you drop this at the same moment! Can't wait to try it out.

I have started developing a project I am calling 'MWALI'. It's an acronym created from Mac+Windows+Android+Linux+iOS. Also Mwali is the Creator God of the Kalanga people of Africa which is cool. The notion is to do what Electron, NW.js, Ionic, etc. do in creating clickable icon apps that feel native, but do it without the bloat. Instead of duplicating all that Chrome code, just use the already installed browser launched in full screen mode. In that regard, it's just like any downloaded web app, but the distinction is I would like to have the ability to create and share such 'web apps' completely without any remote hosting.

I want to be able to bundle the app into a single file that I can email to people and then they can use it with a single click. 7-Zip's self-extracting installer seems perfect for this. It already works to create installer bundles on Windows (obviously), Macs I believe, and has been working on Linux in an unofficial way using old code. Now Igor has made 7-Zip on Linux much more official with this release. ARM64 builds are a thing, and there's some Android experiments I have seen. Iphone/iOS is the one I haven't yet seen 7-Zip working code for, but I bet it's out there somewhere. The full M.W.A.L.I. codebase seems tantalizingly close.

Google obviously sees the need for such a thing with their recent focus on Web Bundles, but it strikes me as odd with their approach of crunching to single HTML file and converting to CBOR. I'd bet good money 7-Zip still makes a smaller archive bundle on the same code than a Web Bundle, and in a more practical way too. Also, naturally Google is putting restrictions on how Web Bundles can be shared, and developers are at the mercy of Google's whims to change things at any moment as usual. I think 7-Zip's awesome compression ability + its installer implementation could blow Google Web Bundles out of the water, and do so in the developer-friendly 7-Zip open source way too.

I have purchased the domain and have started building it out as a tool chain resource and hopefully community for building cross-platform apps that can be shared easily. After researching universal SFX installers for a week, I decided 7-Zip is the way to go for this project. Then, out of the blue, Igor drops 7-Zip 21 for Linux! I'm taking it as a good sign the project needs to happen. Thanks so much, Igor, for the gift of 7-Zip!

There is no right answer to providing a BINARY that works on most Linux systems.
The thing to do is to provide source and a Makefile that works most everywhere. Get someone to test on old and new versions of Redhat/CentOS and Ubuntu/Debian. Then let the maintainers of the major distros know it's available and THEY will be build the binaries.

Having said that, if you compile against OLD versions of the libraries, such as glibc, that will often work for relatively simple orograms like this one which use few libraries*. Libraries on Linux are normally backward compatible, so a binary compiled on an old system will run on a new system, but not the other way around.

i spoke with justine tunney who has a completely portable runtime system which compiles universal binaries for windows, mac, freebsd and linux, and she would like to help. there's also a way to embed an x86 emulator so that it works on arm64 as well. can you email me and i'll put you both in touch.

Please create another forum thread about your recovering problem.
Your archive file was truncated by about 2 GB by some unknown reason.
You can find original archive file size in header.
Probably you can recover big part of data.
The recovery procedure is described here:
-zip.org/recover.html
Try to recover first 100 MB at first.
If it works, try to work with full file. It can be slow to work with big fiels. So you need storage space. You need 7-Zip at Windows or some similar split/combine tools at Linux.

The difference between p7zip and p7zip-full is that p7zip is a lighter version providing support only for .7z while the full version provides support for more 7z compression algorithms (for audio files etc.).

You can compress a file in 7zip archive format graphically. Right-click on the file/directory, and select Compress. You should see several types of archive format options. Choose .7z for 7zip.

also, how does one run the 7-zip gui in rhel/centos 7 ? I have p7zip-gui-16.02-20.el7.x86_64 installed but I can't find a corresponding 7-zip gui entry under the applications menu nor know the command line command to kick off the gui.

7z decompression is single threaded and that's the limitation of the compression format, there's nothing that can be done to "fix" that. Multiple 7z volumes are not separate archives, it's one continuous archive split in parts.

7-Zip is a free and open-source file archiver, a utility used to place groups of files within compressed containers known as "archives". It is developed by Igor Pavlov and was first released in 1999.[2] 7-Zip has its own archive format called 7z, but can read and write several others.

The program can be used from a Windows graphical user interface that also features shell integration, from a Windows command-line interface as the command 7za or 7za.exe, and from POSIX systems as p7zip.[12] Most of the 7-Zip source code is under the LGPL-2.1-or-later license; the unRAR code, however, is under the LGPL-2.1-or-later license with an "unRAR restriction", which states that developers are not permitted to use the code to reverse-engineer the RAR compression algorithm.[13][14]

By default, 7-Zip creates 7z-format archives with a .7z file extension. Each archive can contain multiple directories and files. As a container format, security or size reduction are achieved by looking for similarities throughout the data using a stacked combination of filters. These can consist of pre-processors, compression algorithms, and encryption filters.

The core 7z compression uses a variety of algorithms, the most common of which are bzip2, PPMd, LZMA2, and LZMA. Developed by Pavlov, LZMA is a relatively new system, making its debut as part of the 7z format. LZMA uses an LZ-based sliding dictionary of up to 3840 MB in size, backed by a range coder.[15]

7-Zip can open some MSI files, allowing access to the meta-files within along with the main contents. Some Microsoft CAB (LZX compression) and NSIS (LZMA) installer formats can be opened. Similarly, some Microsoft executable programs (.EXEs) that are self-extracting archives or otherwise contain archived content (e.g., some setup files) may be opened as archives.

When compressing ZIP or gzip files, 7-Zip uses its own DEFLATE encoder, which may achieve higher compression, but at lower speed, than the more common zlib DEFLATE implementation. The 7-Zip deflate encoder implementation is available separately as part of the AdvanceCOMP suite of tools.

The decompression engine for RAR archives was developed using freely available source code of the unRAR program, which has a licensing restriction against creation of a RAR compressor. 7-Zip v15.06 and later support extraction of files in the RAR5 format.[19] Some backup systems use formats supported by archiving programs such as 7-Zip; e.g., some Android backups are in tar format, and can be extracted by archivers such as 7-Zip.[20]

c80f0f1006
Reply all
Reply to author
Forward
0 new messages