Skip to content

7z successfully extracts special RAR 5.0 archives from the terminal, while Engrampa requires proprietary packages to enable this functionality #537

@davidhedlund

Description

@davidhedlund

Engrampa can usually extract RAR 5.0 archives successfully, especially when 7z is installed, including those that contain .nsp files. However, I encountered an edge case where extraction was not possible.

The p7zip-full package provides the command-line tool 7z, a powerful and versatile archiver capable of extracting and managing numerous archive formats, including RAR 5.0 files, even without the non-free p7zip-rar package installed in Ubuntu MATE. Engrampa, the graphical archive manager, depends on p7zip-full and uses 7z to extract RAR archives. Both 7z and Engrampa successfully extract the full set of RAR 5.0 test files available at ssokolow's rar-test-files repository. However, while 7z consistently succeeds, Engrampa fails to extract certain RAR 5.0 archives found across various sources on the internet (see the Sample RAR 5.0 File section below).

Only free packages Extraction Method Read/extract status on sample RAR 5.0 file
Yes Engrampa + 7z (p7zip-full) ❌ Fails
Yes 7z command-line tool (p7zip-full) ✅ Succeeds
No Engrampa + 7z (p7zip-full + p7zip-rar) ✅ Succeeds
No Engrampa + rar package ✅ Succeeds
No Engrampa + unrar package ✅ Succeeds
No rar command-line tool ✅ Succeeds
No unrar command-line tool ✅ Succeeds

The packages unar and unrar-free are excluded from testing due to their lack of support for RAR 5.0. Ensure these packages are not installed, as unar—for example—can cause Engrampa to output errors related to RAR 5.0 incompatibility.

Sample RAR 5.0 File

Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar

The containing file, "Diablo III Eternal Collection [01001B300B9BE800][v1310720]US.nsp" is the root problem

The content in the archive causes the error, not the archive itself
rar a Diablo\ III\ Eternal\ Collection\ \[01001B300B9BE800\]\[v1310720\]\[US\].nsp.rar test.txt

  • Tested to open the rar file in engrampa but it did not work: Same error as before.

rar d Diablo\ III\ Eternal\ Collection\ \[01001B300B9BE800\]\[v1310720\]\[US\].nsp.rar "Diablo III Eternal Collection [01001B300B9BE800][v1310720][US](nsw2u.com).nsp"

  • Tested to open the rar file in engrampa, and this time it worked!

Engrampa + 7z (fails)

Engrampa cannot open "Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar"

Ubuntu 22.04, and 24.04, Archive manager (Engrampa):

Could not open "Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar"

Archive type not supported.

Engrampa + rar package (OK)

  • sudo apt-get -y install rar
  • Opened Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar in Engrampa
  • Click on the "Extract" button
  • Received: "Extraction completed successfully"

Engrampa + unrar package (OK)

  • sudo apt-get -y install unrar
  • Opened Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar in Engrampa
  • Click on the "Extract" button
  • Received: "Extraction completed successfully"

rar (OK)

$ rar x Diablo\ III\ Eternal\ Collection\ \[01001B300B9BE800\]\[v1310720\]\[US\].nsp.rar

Click to expand
RAR 7.00   Copyright (c) 1993-2024 Alexander Roshal   26 Feb 2024
Trial version             Type 'rar -?' for help

Archive comment:
Uploaded By nsw2u.com & Game-2u.com & PS4pkg.com & PS5pkg.net

Switch-xci Moved Now to NSw2u.xyz !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Backup website (nsw2u.org)

Find New Address Of Website Here : https://1fichier.com/dir/iGyYb0EP


Game-2u.com
Download last GAMES FOR PC ISO, XBOX 360, XBOX ONE, PS2, PS3, PS4 PKG, PSP, PS VITA, ANDROID, MAC, NINTENDO WII U, 3DS


nsw2u.com
Download last Nintendo Switch GAMES (Roms) eShop NSP XCI NSZ (Torrent Google Drive Mega Uptobox MediaFire & 1fichier)

Extracting from Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar

Extracting Diablo III Eternal Collection [01001B300B9BE800][v1310720]US.nsp OK
All OK

7z (OK)

$ 7z x "Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar"

Click to expand
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (906E9),ASM,AES-NI)

Scanning the drive for archives:
1 file, 3659985885 bytes (3491 MiB)

Extracting archive: Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar

Path = Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar
Type = Rar5
Physical Size = 3659985885
Solid = -
Blocks = 1
Encrypted = -
Multivolume = -
Volumes = 1
Comment = Uploaded By nsw2u.com & Game-2u.com & PS4pkg.com & PS5pkg.net

Switch-xci Moved Now to NSw2u.xyz !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Backup website (nsw2u.org)

Find New Address Of Website Here : https://1fichier.com/dir/iGyYb0EP


Game-2u.com
Download last GAMES FOR PC ISO, XBOX 360, XBOX ONE, PS2, PS3, PS4 PKG, PSP, PS VITA, ANDROID, MAC, NINTENDO WII U, 3DS


nsw2u.com
Download last Nintendo Switch GAMES (Roms) eShop NSP XCI NSZ (Torrent Google Drive Mega Uptobox MediaFire & 1fichier)

Everything is Ok

Size: 3659984860
Compressed: 3659985885

unrar (OK)

$ unrar x Diablo\ III\ Eternal\ Collection\ \[01001B300B9BE800\]\[v1310720\]\[US\].nsp.rar

Click to expand
UNRAR 7.00 freeware      Copyright (c) 1993-2024 Alexander Roshal

Archive comment:
Uploaded By nsw2u.com & Game-2u.com & PS4pkg.com & PS5pkg.net

Switch-xci Moved Now to NSw2u.xyz !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Backup website (nsw2u.org)

Find New Address Of Website Here : https://1fichier.com/dir/iGyYb0EP


Game-2u.com
Download last GAMES FOR PC ISO, XBOX 360, XBOX ONE, PS2, PS3, PS4 PKG, PSP, PS VITA, ANDROID, MAC, NINTENDO WII U, 3DS


nsw2u.com
Download last Nintendo Switch GAMES (Roms) eShop NSP XCI NSZ (Torrent Google Drive Mega Uptobox MediaFire & 1fichier)

Extracting from Diablo III Eternal Collection [01001B300B9BE800][v1310720][US].nsp.rar

Extracting Diablo III Eternal Collection [01001B300B9BE800][v1310720]US.nsp OK
All OK

Tested distros

  • Ubuntu MATE 22.04
  • Ubuntu MATE 24.04
  • Trisquel 11.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions