1 <chapter id="installing">
2 <title>Installing or uninstalling Wine</title>
5 A standard Wine distribution form (which you probably downloaded
6 according to chapter <link linkend="getting-wine">Getting Wine</link>)
7 includes quite a few different programs, libraries
8 and configuration files. All of these
9 must be set up properly for Wine to work well. In order to
10 achieve this, this chapter will guide you through the necessary steps
12 installed on your system. It will <emphasis>not</emphasis>
13 deal with how to get Wine's Windows environment
14 <emphasis>configured</emphasis>; that's what the next chapter
19 When installing Wine, you should make sure that it doesn't happen
20 to overwrite a previous Wine installation (as this would cause
21 an overwhelming amount of annoying and fatal conflicts);
22 uninstalling any previous Wine version (as explained in this chapter)
23 to avoid this problem is recommended.
27 <title>Installing or uninstalling Wine packages</title>
30 Now that you have downloaded the Debian or RPM or whatever Wine
31 package file, probably via the instructions given in the
32 previous chapter, you may be wondering "What in the world do I
34 This section will hopefully be able to put an end to your
35 bewildered questioning, by giving detailed install instructions
36 for all sorts of well-known package types.
40 <title>Debian Linux</title>
43 In case you haven't downloaded and automatically installed the
44 Wine package file via <command>apt-get</command> as described
45 in the <link linkend="getting-wine">Getting Wine</link>
46 section, you now need to use <command>dpkg</command> to
47 install it. Switch to the directory you downloaded the Debian
48 .deb package file to. Once there, type these commands,
49 adapting the package file name as required:
52 <prompt>$ </><userinput>su -</>
54 <prompt># </><userinput>cd /home/user</>
55 <prompt># </><userinput>dpkg -i wine_<replaceable>0.0.20030115-1</>.deb</>
58 (Type the root password at the "Password:" prompt)
62 You may also want to install the
63 <systemitem>wine-doc</systemitem> package, and if you are
64 using Wine from the 2.3 distribution (Woody), the
65 <systemitem>wine-utils</systemitem> package as well.
69 Uninstalling an installed Wine Debian package can be done by
73 <prompt># </><userinput>dpkg -l|grep wine</>
76 The second column of the output (if any) of this command will
77 indicate the installed packages dealing with "wine".
78 The corresponding packages can be uninstalled by running:
81 <prompt># </><userinput>dpkg -r <replaceable><package_name></></>
84 where <package_name> is the name of the Wine-related package
85 which you want to uninstall.
89 <title>Red Hat (RPM) Linux</title>
92 Switch to the directory you downloaded the RPM package file to.
93 Once there, type this one command as root, adapting the
94 package file name as required:
97 <prompt># </><userinput>rpm -ivh wine-<replaceable>20020605-2.i386</>.rpm</>
100 You may also want to install the
101 <systemitem>wine-devel</systemitem> package.
104 Uninstalling an installed Wine RPM package can be done by
108 <prompt># </><userinput>rpm -qa|grep -i wine</>
111 This command will indicate the installed packages dealing with "wine".
112 The corresponding packages can be uninstalled by running:
115 <prompt># </><userinput>rpm -e <replaceable><package_name></></>
118 where <package_name> is the name of the Wine-related package
119 which you want to uninstall.
125 <title>Installing or uninstalling a Wine source code tree</title>
128 If you are in the directory of the Wine version that you just
129 compiled (e.g. by having run <command>make depend && make</command>), then you may now install this Wine version by running as <glossterm>root</glossterm>:
132 <prompt># </><userinput>make install</>
135 This will copy the Wine binary files to their final destination
136 in your system. You can then proceed to the <link
137 linkend="config-wine-main">Configuration chapter</link> to
138 configure the Wine environment.
142 If instead you want to uninstall the currently installed Wine
143 source code version, then change to the main directory of this
144 version and run as <glossterm>root</glossterm>:
147 <prompt># </><userinput>make uninstall</>
152 <!-- Keep this comment at the end of the file
155 sgml-parent-document:("wine-user.sgml" "set" "book" "chapter" "")