Merge Parts of Rar/7z Package in Linux
When file is too large, we will compress it and split it into several parts.
Now Let me show you how to combine them in Linux command line.
step 1: Install rar command
sudo apt-get install rar
sudo apt-get install p7zip-full
step 2: Merge rar files
rar e filename.rar
7z e filename.7z.001 -tiso.split # split will tell 7z that package is splitted
For example:
➜ mac ls macOS Sierra 10.12 Files.part01.rar macOS Sierra 10.12 Files.part05.rar macOS Sierra 10.12 Files.part02.rar macOS Sierra 10.12 Files.part06.rar macOS Sierra 10.12 Files.part03.rar macOS Sierra 10.12 Files.part07.rar macOS Sierra 10.12 Files.part04.rar ➜ mac rar e macOS\ Sierra\ 10.12\ Files.part01.rar RAR 5.30 beta 2 Copyright (c) 1993-2015 Alexander Roshal 4 Aug 2015 Trial version Type RAR -? for help Extracting from macOS Sierra 10.12 Files.part01.rar Extracting Help.txt OK Extracting Tutorial by wikigain.url OK Extracting VirtualBox Code.txt OK Would you like to replace the existing file Tutorial by wikigain.url 142 bytes, modified on 2016-06-15 10:01 with a new one 142 bytes, modified on 2016-06-15 10:01 [Y]es, [N]o, [A]ll, n[E]ver, [R]ename, [Q]uit A Extracting Tutorial by wikigain.url OK Extracting vmwarebase.dll OK Extracting vmware-vmx-debug.exe OK Extracting vmware-vmx-stats.exe OK Extracting vmware-vmx.exe OK Extracting dumpsmc.exe OK Extracting dumpsmc.py OK Extracting esxi-install.sh OK Extracting esxi-uninstall.sh OK Extracting gettools.exe OK Extracting gettools.py OK Extracting lnx-install.sh OK Extracting lnx-uninstall.sh OK Extracting lnx-update-tools.sh OK Extracting local-template.sh OK Extracting osx-install.sh OK Extracting osx-uninstall.sh OK Extracting darwin.iso.sig OK Extracting VMware Tools.iso OK Extracting Tutorial by wikigain.url OK Extracting unlocker.exe OK Extracting unlocker.py OK Extracting VMX Code For VMware.txt OK Extracting win-install.cmd OK Extracting win-uninstall.cmd OK Extracting win-update-tools.cmd OK Extracting VMware Code.txt OK Extracting VMware Tools.iso OK Extracting macOS Sierra 10.12 by wikigain.vmdk 14% Extracting from macOS Sierra 10.12 Files.part02.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 29% Extracting from macOS Sierra 10.12 Files.part03.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 44% Extracting from macOS Sierra 10.12 Files.part04.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 58% Extracting from macOS Sierra 10.12 Files.part05.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 73% Extracting from macOS Sierra 10.12 Files.part06.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk 88% Extracting from macOS Sierra 10.12 Files.part07.rar ... macOS Sierra 10.12 Files/macOS Sierra 10.12 by wikigain.vmdk OK Extracting macOS Sierra Tutorial for VirtualBox.url OK Extracting macOS Sierra Tutorial for VMware.url OK Extracting Read me.txt OK All OK ➜ mac