{"id":46695292,"url":"https://github.com/selmf/unarr","last_synced_at":"2026-03-09T05:03:05.393Z","repository":{"id":31218097,"uuid":"34779172","full_name":"selmf/unarr","owner":"selmf","description":"A decompression library for rar, tar, zip and 7z archives","archived":false,"fork":false,"pushed_at":"2026-01-17T13:52:21.000Z","size":536,"stargazers_count":85,"open_issues_count":13,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-18T00:15:29.669Z","etag":null,"topics":["7z","cb7","cbr","cbt","cbz","decompression-library","rar","tar","zip"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selmf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-04-29T07:36:59.000Z","updated_at":"2026-01-14T19:48:03.000Z","dependencies_parsed_at":"2023-01-14T18:34:49.060Z","dependency_job_id":"a09b799e-04b2-437d-b87e-baafff00828c","html_url":"https://github.com/selmf/unarr","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/selmf/unarr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmf%2Funarr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmf%2Funarr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmf%2Funarr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmf%2Funarr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selmf","download_url":"https://codeload.github.com/selmf/unarr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmf%2Funarr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30283703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["7z","cb7","cbr","cbt","cbz","decompression-library","rar","tar","zip"],"created_at":"2026-03-09T05:03:02.732Z","updated_at":"2026-03-09T05:03:05.379Z","avatar_url":"https://github.com/selmf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"|Build|Status|\n|---|------|\n|Linux|[![Build Status](https://dev.azure.com/licorn0647/licorn/_apis/build/status/selmf.unarr?branchName=master\u0026jobName=Linux)](https://dev.azure.com/licorn0647/licorn/_build/latest?definitionId=2\u0026branchName=master)|\n|MacOS|[![Build Status](https://dev.azure.com/licorn0647/licorn/_apis/build/status/selmf.unarr?branchName=master\u0026jobName=MacOS)](https://dev.azure.com/licorn0647/licorn/_build/latest?definitionId=2\u0026branchName=master)|\n|Windows|[![Build Status](https://dev.azure.com/licorn0647/licorn/_apis/build/status/selmf.unarr?branchName=master\u0026jobName=Windows)](https://dev.azure.com/licorn0647/licorn/_build/latest?definitionId=2\u0026branchName=master)|\n\n# (lib)unarr\n\n**(lib)unarr** is a decompression library for RAR, TAR, ZIP and 7z* archives.\n\nIt was forked from **unarr**, which originated as a port of the RAR extraction\nfeatures from The Unarchiver project required for extracting images from comic\nbook archives. [Zeniko](https://github.com/zeniko/) wrote unarr as an\nalternative to libarchive which didn't have support for parsing filters or\nsolid compression at the time.\n\nWhile (lib)unarr was started with the intent of providing unarr with a proper\ncmake based build system suitable for packaging and cross-platform development,\nit's focus has now been extended to provide code maintenance and to continue the\ndevelopment of unarr, which no longer is maintained.\n\n## Getting started\n\n### Prebuilt packages\n[![Packaging status](https://repology.org/badge/vertical-allrepos/unarr.svg)](https://repology.org/metapackage/unarr)\n\n#### From OBS\n[.deb package](https://software.opensuse.org//download.html?project=home%3Aselmf\u0026package=libunarr)\n[.rpm package](https://software.opensuse.org//download.html?project=home%3Aselmf%3Ayacreader-rpm\u0026package=libunarr)\n\n### Building from source\n\n#### Dependencies\n\n(lib)unarr can take advantage of the following libraries if they are present:\n\n* bzip2\n* xz / libLZMA\n* zlib\n\n#### CMake\n\n```bash\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n... as a static library\n\n```bash\ncmake .. -DBUILD_SHARED_LIBS=OFF\n```\n\nBy default, (lib)unarr will try to detect and use system libraries like bzip2,\nxz/LibLZMA and zlib. If this is undesirable, you can override this behavior by\nspecifying:\n\n```bash\ncmake .. -DUSE_SYSTEM_BZ2=OFF -DUSE_SYSTEM_LZMA=OFF -DUSE_SYSTEM_ZLIB=OFF\n```\n\nInstall\n\n```bash\nmake install\n```\n\n#### Testing\n\nUnarr supports unit tests, integration tests and fuzzing.\n\n\n```bash\ncmake .. -DBUILD_UNIT_TESTS=ON -DBUILD_INTEGRATION_TESTS=ON\n```\n\nTo build the unit tests, the *cmocka* unit testing framework is required.\n\nBuilding the integration tests also enables the *unarr-test* executable\nwhich can be used to run additional tests on user-provided archive files.\n\nBuilding the fuzzer target will provide a coverage-guided fuzzer based\non llvm libfuzzer. It should be treated as a stand-alone target.\n\n```bash\ncmake .. -DBUILD_FUZZER=ON\n```\n\nAll tests can be run using ctest or their respective executables.\n\n## Usage\n\n### Examples\n\nCheck [unarr.h](unarr.h) and [unarr-test](test/main.c) to get a general feel\nfor the api and usage.\n\nThe unarr-test sample application can be used to test archives.\n\nTo build it, use:\n\n```bash\ncmake .. -DBUILD_INTEGRATION_TESTS=ON\n```\n\n## Limitations\n\nUnarr was written for comic book archives, so it currently doesn't support:\n\n* password protected archives\n* self extracting archives\n* split archives\n\n### 7z support\n\n7z support for large files with solid compression is currently limited by a\nknown performance problem in the ANSI-C based LZMA SDK\n(see https://github.com/zeniko/unarr/issues/4).\n\nFixing this problem will require modification or replacement of the LZMA SDK\ncode used.\n\n### Rar support\n\nRAR5 is currently not supported. There are plans to add this in a future version,\nbut as of now this is still work in progress.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmf%2Funarr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselmf%2Funarr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmf%2Funarr/lists"}