7-Zip
From Gentoo Wiki
Jump to:navigation
Jump to:search
7-Zip is a file archiver.
Important
The 7-zip archive format does not store standard Unix file permissions such as owner/group or extended file attributes.
The 7-zip archive format does not store standard Unix file permissions such as owner/group or extended file attributes.
Installation
USE flags
USE flags for app-arch/7zip Free file archiver for extremely high compression
+symlink
Install additional symlink to 7z, 7za and 7zr
jwasm
Use dev-lang/jwasm to include optimized code (doesn't support AES)
rar
Enable support for non-free rar decoder
uasm
Use dev-lang/uasm to include optimized code
Data provided by the Gentoo Package Database
·
Last update: 2026年09月04日 09:34
More information about USE flags
Emerge
7-Zip can be installed by running:
root #emerge --ask app-arch/7zipUsage
Extraction
To extract all files from an archive, use either e or x in the following command:
user $7zz <e/x> <archive name>In the above command, e will simply just extract the archive, while x will extract the archive, but with full paths.
Archiving
To add files and/or folders to an archive, use the following command:
user $7zz a <folder/file(s) name(s)>Making a password-protected archive
Warning
The 7zip man-page STRONGLY advises against using 7-zip for back-up purposes due to the fact that owner/group permissions are NOT stored.
The 7zip man-page STRONGLY advises against using 7-zip for back-up purposes due to the fact that owner/group permissions are NOT stored.
A password-protected archive can be created using the following flags:
-p: Prompt's the user for a password
Optionally, archive header encryption can also be enabled using -mhe=on, which forces the 7z format to be used.
See also
- Data compression — a list of some of the compression and file-archiver utilities available in Gentoo Linux
- Tar — an archiver tool that provides the ability to create tar archives, as well as various other kinds of manipulation.
- Zip — provides classic ZIP compression
External resources
https://linux.die.net/man/1/7z - 7-zip Linux man-page
Retrieved from "https://wiki.gentoo.org/index.php?title=7-Zip&oldid=1444335"