https://github.com/terroo/extract
Automatically recognizes and extracts various types of mime formats from compressed files. If it is installed, otherwise it says Failed to unpack: '[type]'. and you will need to install the appropriate software later
https://github.com/terroo/extract
command-line cpp cpp23 extract wrapper
Last synced: 4 months ago
JSON representation
Automatically recognizes and extracts various types of mime formats from compressed files. If it is installed, otherwise it says Failed to unpack: '[type]'. and you will need to install the appropriate software later
- Host: GitHub
- URL: https://github.com/terroo/extract
- Owner: terroo
- License: gpl-3.0
- Created: 2025-02-03T20:39:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-04T12:12:15.000Z (over 1 year ago)
- Last Synced: 2025-02-11T21:19:10.885Z (over 1 year ago)
- Topics: command-line, cpp, cpp23, extract, wrapper
- Language: C++
- Homepage: https://terminalroot.com/
- Size: 73.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `extract`
Automatically recognizes and extracts various types of mime formats from compressed files. If it is installed, otherwise it says **Failed to unpack: '[type]'.** and you will need to install the appropriate software later

---
## Dependencies
+ C++ compiler: [GNU GCC](https://gcc.gnu.org/) or [Clang/LLVM](https://clang.llvm.org/)
+ [CMake](https://cmake.org/)
Example on Ubuntu:
```bash
sudo apt install build-essential cmake
```
---
## Instalation
```sh
git clone https://github.com/terroo/extract
cd extract
cmake -B build .
cmake --build build/
sudo cmake --install build/
```
---
## Usage
+ Show the help:
```sh
extract --help
```
> Or only: `extract -h`
+ Show the manual:
```sh
man extract
```
+ Extract file:
> Example to *tbz2*
```sh
extract file.tbz2
```
+ Extract file in verbose mode:
> Example to *lzma*
```sh
extract file.tbz2 --verbose
```
> Or only: `extract file.tbz2 -v`. The verbose needs to be the last command!
+ Lists commands to compress and uncompress:
```sh
extract --list
```
> Or only: `extract -l`
---
## Notice
If the decompressor is not installed, there will be output: **Failed to unpack: '[type]'.** To resolve, install the appropriate software.
---
## License
Copyright © 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .
---
## Uninstalation
```sh
git clone https://github.com/terroo/extract
cd extract
cmake -B build .
cmake --build build/
cd build/
sudo xargs rm < install_manifest.txt
```