There are two ways to install a program in Linux: one is to install the program in the source program, according to the README or install file instructions in the installation package, step by step, usually configure,
Make, install trilogy. The other is the RPM package. Similar to the common installation programs in Windows, you can double-click the package in xwin or enter
Rpm-IVH packagename to start installation.
During the installation, run make uninstall with the source program, while RPM is still used for installation.
For me who have been in touch with Linux soon, I always feel that these processes are quite troublesome and may encounter some problems from time to time.
When we installed wine today, we made a mistake and recorded it as a post-identification.
The wine version installed for the first time is too high, and it was accidentally used for federa core during download,
The installation fails. Then, a lower version was re-downloaded, and many error messages were reported due to conflicts with the file of the previous installation package.
"File/usr/lib/wine/shdocvw. dll. So from install
Wine-20040716-1rh9winehq conflicts with file from package
Wine-20050310-1fc1winehq"
In this case, you can only use RPM to uninstall the original wine.
$ Rpm-e wine-20050310-1fc1winehq
Unexpected error:
"Error: % preun (wine-20050310-1fc1winehq) scriptlet failed, exit status 1"
After searching, the solution is to add the -- noscripts mark to delete the RPM. -- Noscripts is equivalent to -- nopre -- nopost
-- Nopreun -- nopostun.
That is, the uninstall command is changed:
$ Rpm-e -- noscripts wine-20050310-1fc1winehq
To view the scripts associated with rpm, use -- script to query the RPM package.
$ Rpm-Q -- scripts package
If multiple installation versions of the same program must be deleted when uninstalling the program, use the -- allmatches tag, as shown in figure
$ Rpm-e -- noscripts -- allmatches wine
After the package is uninstalled, reinstall the new wine package.
$ Rpm-IVH wine-20040716-1rh9winehq.i386.rpm
Now, you can use wine to run the program for windows in Linux.
Reprinted from: http://blog.sina.com.cn/s/blog_49451df101000969.html