Installing Microsoft Office 2007 on Linux with Wine
If you need to work with Office files (.doc, .docx, .xls, .ppt) on Linux, Wine can run Microsoft Office 2007, though this approach has largely been superseded by cloud-based alternatives and native Linux tools. That said, for specific compatibility requirements, here’s how to set it up.
Install Wine
First, install Wine. Most distributions now package Wine for both 32-bit and 64-bit architectures. For Office 2007 specifically, you’ll need the 32-bit runtime:
On Fedora/RHEL:
sudo dnf install wine wine-core.i686 wine-core.x86_64
On Debian/Ubuntu:
sudo apt install wine wine32 wine64
On Arch:
sudo pacman -S wine
Create a 32-bit Wine Prefix
Office 2007 runs better in a 32-bit Wine environment. Create a dedicated prefix:
WINEARCH=win32 WINEPREFIX=~/.wine-office2007 winecfg
This creates a new Wine prefix at ~/.wine-office2007 with 32-bit architecture. In the configuration dialog that opens, set the Windows version to “Windows XP Service Pack 3” or “Windows 7” depending on what works best for your Office build.
Install Office 2007
Navigate to your Office 2007 installation media and run the setup:
WINEPREFIX=~/.wine-office2007 wine setup.exe
Follow the installer prompts. Installation typically takes 10-15 minutes. Note the installation path — by default it goes to .wine-office2007/drive_c/Program Files/Microsoft Office/Office12/.
Running Office Applications
Word:
WINEPREFIX=~/.wine-office2007 wine ~/.wine-office2007/drive_c/Program\ Files/Microsoft\ Office/Office12/WINWORD.EXE
Excel:
WINEPREFIX=~/.wine-office2007 wine ~/.wine-office2007/drive_c/Program\ Files/Microsoft\ Office/Office12/EXCEL.EXE
PowerPoint:
PowerPoint requires a DLL override to function properly. Configure it first:
WINEPREFIX=~/.wine-office2007 winecfg
Go to the Libraries tab, enter riched20 in the text field under “New override for library”, click Add, then select the riched20 entry and set it to native. Click Apply and OK.
Then run PowerPoint:
WINEPREFIX=~/.wine-office2007 wine ~/.wine-office2007/drive_c/Program\ Files/Microsoft\ Office/Office12/POWERPNT.EXE
Create Wrapper Scripts
To simplify launching, create shell scripts in a directory on your PATH:
~/.local/bin/word2k7:
#!/bin/bash
WINEPREFIX=~/.wine-office2007 wine ~/.wine-office2007/drive_c/Program\ Files/Microsoft\ Office/Office12/WINWORD.EXE "$@"
~/.local/bin/excel2k7:
#!/bin/bash
WINEPREFIX=~/.wine-office2007 wine ~/.wine-office2007/drive_c/Program\ Files/Microsoft\ Office/Office12/EXCEL.EXE "$@"
~/.local/bin/ppt2k7:
#!/bin/bash
WINEPREFIX=~/.wine-office2007 wine ~/.wine-office2007/drive_c/Program\ Files/Microsoft\ Office/Office12/POWERPNT.EXE "$@"
Make them executable:
chmod +x ~/.local/bin/{word2k7,excel2k7,ppt2k7}
Now you can open files directly:
word2k7 ./document.doc
excel2k7 ./spreadsheet.xls
ppt2k7 ./presentation.ppt
Alternatives to Consider
Before committing to Office 2007 under Wine, evaluate these options:
- LibreOffice — handles most .doc, .xls, and .ppt files natively with good fidelity
- OnlyOffice — proprietary but excellent Microsoft format compatibility
- Microsoft 365 Online — cloud-based Office works in any browser
- Collabora Online — open-source cloud office suite
These avoid the complexity and potential stability issues of running legacy Windows software through Wine.
Troubleshooting
Office won’t start: Verify your Wine installation is 32-bit compatible. Some systems have library conflicts. Try creating a fresh prefix with a different path.
Fonts look wrong: Install Windows core fonts:
WINEPREFIX=~/.wine-office2007 winetricks corefonts
Excel crashes on launch: Ensure the riched20 override is set to native, not builtin.
Performance is sluggish: Disable visual themes and animation in Wine’s graphics settings via winecfg.
2026 Best Practices and Advanced Techniques
For Installing Microsoft Office 2007 on Linux with Wine, understanding both the fundamentals and modern practices ensures you can work efficiently and avoid common pitfalls. This guide extends the core article with practical advice for 2026 workflows.
Troubleshooting and Debugging
When issues arise, a systematic approach saves time. Start by checking logs for error messages or warnings. Test individual components in isolation before integrating them. Use verbose modes and debug flags to gather more information when standard output is not enough to diagnose the problem.
Performance Optimization
- Monitor system resources to identify bottlenecks
- Use caching strategies to reduce redundant computation
- Keep software updated for security patches and performance improvements
- Profile code before applying optimizations
- Use connection pooling and keep-alive for network operations
Security Considerations
Security should be built into workflows from the start. Use strong authentication methods, encrypt sensitive data in transit, and follow the principle of least privilege for access controls. Regular security audits and penetration testing help maintain system integrity.
Related Tools and Commands
These complementary tools expand your capabilities:
- Monitoring: top, htop, iotop, vmstat for system resources
- Networking: ping, traceroute, ss, tcpdump for connectivity
- Files: find, locate, fd for searching; rsync for syncing
- Logs: journalctl, dmesg, tail -f for real-time monitoring
- Testing: curl for HTTP requests, nc for ports, openssl for crypto
Integration with Modern Workflows
Consider automation and containerization for consistency across environments. Infrastructure as code tools enable reproducible deployments. CI/CD pipelines automate testing and deployment, reducing human error and speeding up delivery cycles.
Quick Reference
This extended guide covers the topic beyond the original article scope. For specialized needs, refer to official documentation or community resources. Practice in test environments before production deployment.

厉害,不知道能不能在RHEL 6.3中安装成功,我试试看。收藏了。
Always glad to know any further results.
在RHEL 6.3中安装成功并运行流畅,PowerPoint仍需要添加riched20(native)后才可运行。
Sounds great! Thanks for sharing.
明天我试试Office 2010能否安装上去……
How could I launch a doc document (MSWord) directly (click on it). I have installed office 2007 enterprise under wine (PUPPY LINUX), and it’s very tedious to find it with the open file dialog on word.
The command to open an word file, say file.doc by Word under wine is:
From this, I believe you can configure the file manager to open a document by double/single clicking it.
I have problems in entering Chinese in POWERPOINT using ibus or scim under Fedora 17 (32bits and 64bits) and Ubuntu 12.10.
Using latest wine 15.x to run Office 2007 would have problems in crashing when closing the office applications.
Just to tell you : Thanks!
The “riched20 trick” is very usefull!
For reference, the solution described here (Wine + Office 2007) works fine for me on Fedora 19 with wine 1.7.8:
$ wine –version
wine-1.7.8
$ uname -r
3.12.9-201.fc19.x86_64
I don’t want to run PwrPnt- I just want to remove Office 2007 from my Ubuntu 14.04; I’m also using Wine (1.6.2) to run my Roots Magic, and my PAF5 programs.
Thank you, powerpoint only worked after selecting riched20o native.
Thank you so much ………
Now it’s 2021 and with wine 7.0 this is still the correct solution to open powerpoint