Open linuxd3v opened 11 years ago
I'm using openSUSE and there is no "unar" package there. Info-ZIP ("unzip" command) will not extract the ZIP file since it uses format features/extensions that Info-ZIP does not support. I could extract it fine with 7zip though ("7z" command from the "p7zip" package). I think 7zip is a more commonly packaged extractor than Unarchiver; maybe support for 7zip could be added?
Today's version of ievms.sh doesn't download any RAR files, only ZIP files. The only RAR files I encountered were the downloads from microsoft.com, which are outdated compared to the ones offered from modern.ie.
@mthuurne The ones from modern.ie are rar files as well...
@miquelfire Not the ones that ievms.sh downloads: the string "rar" doesn't even occur in that script.
I just saw that issue #136 not only suggests 7zip, but offers a pull request for its support as well. So I think integrating that patch would also provide a solution for this issue.
The mac has unrar available too. We should definitely get rid of unar. It's not even installing on OSX 10.9
:+1:
I had similar problems on Arch Linux, where unar
is not readily available through the Arch package manager pacman
.
It is however in the AUR under unarchiver.
@wyuenho It's unar
not unrar
. It installed fine for me this weekend on both 10.8 and 10.9. What error were you seeing when it wasn't installing for you?
@malthejorgensen I came here this morning to mention the Arch name too, thanks! =)
@xdissent I know it's unar
and not unrar
. I'm saying you COULD use unrar
or 7z
or whatever more common in place of unar
. It just tried the script again and it works fine now. When I tried a couple of weeks ago, it just failed without any error messages. I tried wiping ~/.ievms, still no luck. I had to comment out the check_unar
call at the end and manually download unar
and put it into my path to get the script working.
@wyuenho Gotcha. Originally the VMs were only distributed as zips, not rars. Then some were .cab
s and .archive
or some other nonsense. Then only some of them were converted to rar,. Looking now, it seems there are rar versions for each, but they're self-extracting (.sfx
) which is bleh. Long story short, it's much simpler to rely on the zips. unar
is still necessary due to the large file size of the zips, but at least it works consistently and no one has to completely redownload anything to get a different format.
There isn't an "exists" check for non-Darwin either. The bash script just says "If on Darwin, install. else, bitch until you remove two lines from the installer and keep it from bailing out."
Why unarchiver? Seems to be only rar files there. Why not just unrar? On some Linuxes it's not readily available package. Arch users have to install unarchiver from AUR - something I'd typically rather avoid. Any chance to just use unrar - unless I'm missing the point?