markdown
PSARc is a versatile command-line archive utility designed and developed by Juan José Ponteprino (SplinterGU) in 2023. This tool allows you to create, extract, list, and obtain information about archives effortlessly.
./psar [options] [file]...
./psar -cf archive.pak foo bar # Create (store) archive.pak from foo and bar.
./psar -czf archive.pak foo bar # Create (zlib) archive.pak from foo and bar.
./psar -lf archive.pak # List files in archive.pak.
./psar -xf archive.pak # Extract all files from archive.pak.
-c, --create
: Create an archive.-x, --extract
: Extract files.-l, --list
: List contents.-i, --info
: Show archive information.
-f, --file=FILE
: Specify the file (mandatory).-b, --block-size=BYTES
: Set the block size in bytes (default: 65536).
-z, --zlib
: Use zlib compression.-j, --lzma
: Use lzma compression.-0
: Compress faster (only for lzma).-1, --fast
: Compress faster.-9, --best
: Compress better.-e, --extreme
: Extreme compression (only for lzma).
-I, --ignore-case
: Ignore case when matching file selection patterns during creation (ignored during extraction, uses creation setting).-A, --absolute-paths
: Use absolute paths for file names.
-s, --source-dir=DIR
: Set the base directory for source files.-t, --target-dir=DIR
: Specify the directory where extracted files will be placed.-r, --recursive
: Recurse into directories.-T, --trim-path
: Remove all file paths from/to the archive.
-y, --overwrite
: Force overwrite of the output file.-S, --skip-existing-files
: Don't replace existing files when extracting, silently skip over them.
-n, --num-threads=NUM
: Specify the number of threads (default: auto, based on CPU cores).-o, --output-format=FORMAT
: Specify the output format for information display (available formats: json, csv, xml).-v, --verbose
: List processed files in detail.-h, --help
: Show this help.-V, --version
: Show program version.
To build PSARc, you'll need the following dependencies:
- xz (For Windows)
-
Clone this repository:
git clone https://github.com/SplinterGU/PSARc.git cd PSARc
-
Build the project:
mkdir build cd build cmake .. make
-
Run PSARc:
./psar [options] [file]...
This software is provided under the terms of the MIT License. You may freely use, modify, and distribute this software, subject to the conditions and limitations of the MIT License. For more details, please see the LICENSE file included with this software.
- Report bugs to: splintergu@gmail.com
- Home page: PSARc on GitHub