1
uninstall any existing version of Wine by running
Code:
sudo apt-get remove wine
2
add the WineHQ repository to your package manager by running the following two commands:
Code:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
(from
http://www.winehq.org/site/download-deb)
3
enable the source repository. to do this, load its config file with a text editor:
Code:
sudo gedit /etc/apt/sources.list.d/winehq.list
and uncomment the second line (remove the # so it begins deb-src). then save it and close the editor.
4
update your package manager's package lists by running
Code:
sudo apt-get update
5
install Wine's build dependencies by running
Code:
wget http://kegel.com/wine/hardy.sh -O- | sudo sh
(the script at that address has a list of the dependencies -- information at
http://wiki.winehq.org/Recommended_Packages)
6
fetch the Wine source code by running
Code:
apt-get source wine
the source will be downloaded to a subdirectory of your current position, so i ran the above in my ~/apps directory, where i keep source for various things i compile manually.
7
move to the source code's directory by running
8
get and apply the patch by running
Code:
wget 'http://bugs.winehq.org/attachment.cgi?id=15366' -O- | patch -p1
9
configure, build and install Wine by running
it'll take a while to configure and then you'll be asked whether you want to switch to root in order to install. answer yes. then it'll take bloody ages to compile.
it took 1h37 to compile on my Eee PC 1000 (Intel Atom at 1.6GHz, 1GB RAM) running 32-bit Ubuntu Hardy Heron.