-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added p7zip file compression utility to dynamic apps. This includes the root directory, README.md, libraries, binaries, and sample files. Signed-off-by: Sina Mahdavi <[email protected]>
- Loading branch information
Showing
14 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# p7zip | ||
|
||
This is the p7zip compression utility that can be used with Unikraft bincompat mode. | ||
|
||
## Content | ||
|
||
- `lib/` & `lib64/`: required libs for p7zip | ||
- `/7z`: the 7z main binary | ||
- `7z.so`, `7za`, `7zCon.sfx`, `7zr`: different code modules for p7zip that will be used by 7z binary to perform different operations. | ||
|
||
## Extracting Dynamic Libraries | ||
|
||
```console | ||
../extract.sh ./7z | ||
``` | ||
|
||
## Running on Linux | ||
|
||
This will create a new archive called `archive.zip` and add the file `README.md` to it. | ||
|
||
```console | ||
7z a archive.zip README.md | ||
``` | ||
|
||
This will extract the archive: | ||
|
||
```console | ||
7z x archive.zip | ||
``` | ||
|
||
## Running on Unikraft | ||
|
||
This will create a new archive called `archive.zip` and add the file `README.md` to it. | ||
|
||
```console | ||
./run.sh -r ../dynamic-apps/p7zip /7z a archive.zip README.md | ||
``` | ||
|
||
This will extract an archive file called `archive.zip`. | ||
|
||
```console | ||
./run.sh -r ../dynamic-apps/p7zip /7z x archive.zip | ||
``` | ||
|
||
We can use this command to check that everything worked properly: | ||
|
||
```console | ||
7z l archive.zip | ||
``` |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.