Extract exe & cab files on Linux

extract_compLinux users can run exe files using wine. What if you want to extract the contents of MS executables or cabinet files on Linux? This article explains the cmdline way and is a follow-up of our earlier article on enabling extra compression formats on Linux.


To extract exe files on Linux, use 7zr (from package p7zip-full or p7zip). To install the package on Ubuntu, run:

$ sudo apt-get install p7zip
// OR
$ sudo apt-get install p7zip-full

To extract an exe, run:

$ 7zr e myexe.exe


You need to install package cabextract on Ubuntu to extract cab files. Run:

$ sudo apt-get install cabextract

To extract a cab file, run:

$ cabextract mycab.cab

Leave a Reply

Your email address will not be published. Required fields are marked *