Installing or uninstalling Wine A standard Wine distribution form (which you probably downloaded according to chapter Getting Wine) includes quite a few different programs, libraries and configuration files. All of these must be set up properly for Wine to work well. In order to achieve this, this chapter will guide you through the necessary steps to get the Wine files installed on your system. It will not deal with how to get Wine's Windows environment configured; that's what the next chapter will talk about. When installing Wine, you should make sure that it doesn't happen to overwrite a previous Wine installation (as this would cause an overwhelming amount of annoying and fatal conflicts); uninstalling any previous Wine version (as explained in this chapter) to avoid this problem is recommended. Installing or uninstalling Wine packages Now that you have downloaded the Debian or RPM or whatever Wine package file, probably via the instructions given in the previous chapter, you may be wondering "What in the world do I do with this thing?". This section will hopefully be able to put an end to your bewildered questioning, by giving detailed install instructions for all sorts of well-known package types. Debian Linux In case you haven't downloaded and automatically installed the Wine package file via apt-get as described in the Getting Wine section, you now need to use dpkg to install it. Switch to the directory you downloaded the Debian .deb package file to. Once there, type these commands, adapting the package file name as required: $ su - Password: # cd /home/user # dpkg -i wine_0.0.20030115-1.deb (Type the root password at the "Password:" prompt) You may also want to install the wine-doc package, and if you are using Wine from the 2.3 distribution (Woody), the wine-utils package as well. Uninstalling an installed Wine Debian package can be done by running: # dpkg -l|grep wine The second column of the output (if any) of this command will indicate the installed packages dealing with "wine". The corresponding packages can be uninstalled by running: # dpkg -r <package_name> where <package_name> is the name of the Wine-related package which you want to uninstall. Linux Red Hat, Mandrake, SUSE and other distributions using RPM Most distributions provide a graphical tool for installing RPM packages, you can use it by simply clicking (Or double clicking, depending on your system settings) on the RPM. If you don't have a graphical RPM manager installed, using a shell, switch to the directory where you downloaded the RPM package file to. Once there, type this one command as root, adapting the package file name as required: # rpm -ivh wine-20031212.i386.rpm You may also want to install the wine-devel package. If you've installed wine graphically, you can uninstall it using your graphical RPM manager (Gnorpm, Kpackage, Yast, Mandrake Control Center and so on), alternatively, uninstalling a installed Wine RPM package can be done from a shell, by running: # rpm -qa|grep -i wine This command will indicate the installed packages dealing with "wine". The corresponding packages can be uninstalled by running: # rpm -e <package_name> where <package_name> is the name of the Wine-related package which you want to uninstall. Installing or uninstalling a Wine source code tree If you are in the directory of the Wine version that you just compiled (e.g. by having run make depend && make), then you may now install this Wine version by running as root: # make install This will copy the Wine binary files to their final destination in your system. You can then proceed to the Configuration chapter to configure the Wine environment. If instead you want to uninstall the currently installed Wine source code version, then change to the main directory of this version and run as root: # make uninstall