Skip to content

Commit 512f1a0

Browse files
committed
added p7zip to dynamic-apps
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 <sinamhdv@gmail.com>
1 parent 0afd0e6 commit 512f1a0

14 files changed

Lines changed: 49 additions & 0 deletions

File tree

p7zip/7z

592 KB
Binary file not shown.

p7zip/7z.so

1.91 MB
Binary file not shown.

p7zip/7zCon.sfx

470 KB
Binary file not shown.

p7zip/7za

1.41 MB
Binary file not shown.

p7zip/7zr

956 KB
Binary file not shown.

p7zip/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# p7zip
2+
3+
This is the p7zip compression utility that can be used with Unikraft bincompat mode.
4+
5+
## Content
6+
7+
- `lib/` & `lib64/`: required libs for p7zip
8+
- `/7z`: the 7z main binary
9+
- `7z.so`, `7za`, `7zCon.sfx`, `7zr`: different code modules for p7zip that will be used by 7z binary to perform different operations.
10+
11+
## Extracting Dynamic Libraries
12+
13+
```console
14+
../extract.sh ./7z
15+
```
16+
17+
## Running on Linux
18+
19+
This will create a new archive called `archive.zip` and add the file `README.md` to it.
20+
21+
```console
22+
7z a archive.zip README.md
23+
```
24+
25+
This will extract the archive:
26+
27+
```console
28+
7z x archive.zip
29+
```
30+
31+
## Running on Unikraft
32+
33+
This will create a new archive called `archive.zip` and add the file `README.md` to it.
34+
35+
```console
36+
./run.sh -r ../dynamic-apps/p7zip /7z a archive.zip README.md
37+
```
38+
39+
This will extract an archive file called `archive.zip`.
40+
41+
```console
42+
./run.sh -r ../dynamic-apps/p7zip /7z x archive.zip
43+
```
44+
45+
We can use this command to check that everything worked properly:
46+
47+
```console
48+
7z l archive.zip
49+
```

p7zip/archive.zip

544 Bytes
Binary file not shown.
2.11 MB
Binary file not shown.
14.1 KB
Binary file not shown.
123 KB
Binary file not shown.

0 commit comments

Comments
 (0)