From 365cd911f279522a18e8f93dd73735f672a481bd Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 7 Jul 2024 22:07:35 +0200 Subject: [PATCH] README.md --- README.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3a7bba3..3c1c034 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,29 @@ `packelf` was inspired by [the idea of Klaus D](https://askubuntu.com/a/546305). It is used to pack a ELF program and its dependent libraries into a single executable file. -## Usage (packelf): +## Usage packelf: ``` Usage: ./packelf.sh [ADDITIONAL_LIBS] ``` -First, pack a ELF program. For example, you can pack `ls` like this: +Example: ``` -# ./packelf.sh /bin/ls /root/ls -tar: Removing leading `/' from member names -'/bin/ls' was packed to '/root/ls' -Just run '/root/ls ARGS...' to execute the command. -Or run 'PACKELF_UNPACK_DIR=xxx /root/ls' to unpack it only. +# ./packelf.sh /usr/bin/mpv mpv-x86_64.AppRun ``` -You can execute the packed program directly: +Note: Every time the packed program is executed, an internal unpacking operation is performed automatically, which results in a slower startup of the program. -``` -# /root/ls -lh /root/ls --rwxr-xr-x 1 root root 1.3M May 21 08:35 /root/ls -``` +## Extract without running: -However, every time the packed program is executed, an internal unpacking operation is performed automatically, which results in a slower startup of the program. +You can extract the files of a created package without executing it with the following command: -## USAGE EXTRA TOOLS: +``` +# ./ --packelf-extract +``` + +## Usage Extra Tools: ``` Usage: ./packelf-copylibs.sh