I have install p7zip-full and p7zip-rar packages to help me in this situation, but default archive of Ubuntu file-roller can not open "Windows 7 theme pack" files, which uses .themepack extensions. How can I open this type of file or is there any known method to do that in Ubuntu. In Windows "7zip" program can open this kind of file easily. I am using Ubuntu 11.10
- 77,855
4 Answers
After trying several hours and links, I think, I've finally got the right solution, that allow me to open a .themepack file with file-roller.
- First install
cabextractpackage, by entering the command onterminal.- Press
super+akey on Unity, typeterminalon dash and click on the terminal icon. - Type
sudo apt-get install cabextractcommand on the terminal, provide your password and hit enter.
- Press
Then type again in the terminal
sudo apt-get install assogiate, this will install theassogiateprogram on computer. (alternatively, you can install it through "Software Center".Then open the assogiate program, by pressing
alt+f2and typingassogiateon the 'Run a command' box.- This will open
assogiateprogram in graphical window. On the left hand side pane, click on Search Results. then typecabon the bottom text box on the right pane. - Double Click on the desired application name. ( In this case, it is vnd.ms-cab-compressed ).
- On the new Edit type application/vnd.ms-cab-compressed window, Click on Filenames tab. Then click on Add button, type
*.themepackon the new Add filename rule dialog window. Click close, and then Exit the program.
- This will open
Now you should open any *.themepack extensions file with file-roller just like any other compressed tar, zip etc files.
If you want this settings persists globally (system wide), you should open the program in the step 2 as gksu assogiate, all other procedure is same.
Credit goes to MistreLion, answerer of this post.
Update
I recently upgraded my Ubuntu to 12.04 and in this version, you need only to install p7zip-full package.
Open a terminal, type the following command , provide password and hit enter. That's the all required (of course, after connecting to the internet).
sudo apt-get install p7zip-full
A .themepack file for Windows 7 is actually a CAB archive (like a .cab file). You can open such a file with cabextract. To get it, install the cabextract package.
Then either run cabextract name.themepack (replacing name with the name of the theme pack filename before the .themepack extension), or configure the Archive Manager to open .cab files and open it graphically from Nautilus.
- 119,640
If you change the .themepack extension to .lzx, the preinstalled Archive Manager can extract if just fine. (Thanks to 7zip for dispaying the compression type in its file list.)
However, MistreLion's solution would avoid the annoyance of renaming a file each time. (I simply prefer not to install additional software on my system if I don't need to.)
If there's a way to make Archive Manager aware that the .themepack extension is actually .lzx, it would be a far more elegant approach.
- 61
If you download a file with a themepack extension, to use the images all you have to do is extract the contents using cabextract. Nothing else is needed.