APTRepository

WineHQ has its own APT server, hosting the latest .deb packages for various debian-based distributions.

If you are using Debian and want to make sure that apt-get will install the WineHQ Wine package instead of the Debian Wine package (which sometimes confuses APT by having the same version number), then after following the instructions above you will also need to add something like the following entry to /etc/apt/preferences:

Package: wine
Pin: release l=WineHQ APT Repository
Pin-Priority: 1000
  • Building the Wine Package from Source using APT:

APT also allows easy compilation from source of a package. This is useful if there is no binary package available for your architecture, or if you wish to create a fresh .deb file from scratch. To do this, first follow the instructions for installing from the console above, except instead of running apt-get install wine run

apt-get build-dep wine

. This will download the needed development packages for your system to make the wine package. Then, run

apt-get --build source wine

, have a snack, and wait for the compiling to finish.

To install your newly created package (which should be in whatever directory you were in when you ran apt-get --build source), run dpkg -i wine*.deb as root.

  • Package versions:

Version names for packages in the apt repository are done like so:

  • 0.9.12~winehq1~ubuntu~5.10 // breezy
  • 0.9.12~winehq1~ubuntu~6.06 // dapper
  • 0.9.12~winehq1~debian~4.0 // etch

The general idea is that a ~ forces dpkg to assume it's an earlier version. This makes the breezy package upgrade to dapper, the sarge package upgrade to unstable, and the debian packages upgrade to Ubuntu ones, all of which will upgrade to a package with the same major version not in the repository (such as in the official distribution-supplied backports repositories).

APTRepository (last edited 2008-05-11 22:14:49 by nathan.n)