เเปลภาษาสำหรับเพจนี้: Français English (สำหรับผู้เเปลภาษา, โปรดดูหน้า Discussion)
อะไรคือ winetricks?
Winetricks คือสคริปต์ช่วยสำหรับดาวน์โหลดเเละติดตั้งรันไทม์ไลบารี่ที่จำเป็นสำหรับการรันโปรเเกรมใน Wine. นี่อาจรวมถึงการเปลี่ยนเเปลงองค์ประกอบของ Wine ที่ใช้ไลบารี่เเบบ closed source
โปรดจำไว้: การใช้งาน winetricks จะเป็นประโยชน์อย่างมากสำหรับการทำให้บางโปรเเกรมของ wine ใช้งานได้ เเต่การกระทำนั้นเป็นการจำกัดการสนับสนุนผ่าน WineHQ โดยทั่วไปการรายงานบัคอาจเป็นไปไม่ได้ถ้าคุณเปลี่ยนเเปลงบางส่วนขอว Wine. โปรดดู รายงานบัคหลังจากใช้งาน Winetricks ข้างล่าง
โปรดจำไว้: Some of the packages listed below may not work well with older versions of Wine. As always we recommend you use the latest version of Wine.
รับ winetricks
สคริปต์นี้รักษาโดย Austin English ที่ https://github.com/Winetricks/winetricks. เวอร์ชั่นล่าสุดที่ https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks. กดคลิปขวาที่ลิ้งเเละเลือก 'Save As' เพื่อทำการบันทึกก็อปปี้.
หรือคุณจะรับ winetricks ด้วย commandline โดยใช้คำสั่งนี้ก็ได้:
cd "${HOME}/Downloads" wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x winetricks
นอกจากนี้บางเเพ็กเกจของ winetricks จำเป็นต้องมีเครื่องมือภายนอกติดตั้งด้วย เช่น: cabextract, unzip, p7zip, wget (หรือ curl). หสับการรองรับ GUI ก็มี zenity or kdialog.
ผู้ใช้งาน Linux สามารถรับเครื่องมือเหล่านี้ได้ผ่านทาง distribution's package management system.
การใช้งาน winetricks
Once you've obtained winetricks you can run it simply by typing sh winetricks at the console. You can also use ./winetricks if you chmod +x winetricks first. If run without parameters, winetricks displays a GUI with a list of available packages. If you know the names of the package(s) you wish to install, you can append them to the winetricks command and it will immediately start the installation process. For example,
sh winetricks corefonts vcrun6
will install both the corefonts and vcrun6 packages.
การปรับเเต่ง
Version 20190912 help text:
Usage: /usr/bin/winetricks [options] [command|verb|path-to-verb] ... Executes given verbs. Each verb installs an application or changes a setting.
การปรับเเต่ง:
--country=CC Set country code to CC and don't detect your IP address --force Don't check whether packages were already installed --gui Show gui diagnostics even when driven by commandline --isolate Install each app or game in its own bottle (WINEPREFIX) --self-update Update this application to the last version --update-rollback Rollback the last self update -k, --keep_isos Cache isos (allows later installation without disc) --no-clean Don't delete temp directories (useful during debugging) -q, --unattended Don't ask any questions, just install automatically -r, --ddrescue Retry hard when caching scratched discs -t --torify Run downloads under torify, if available --verify Run (automated) GUI tests for verbs, if available -v, --verbose Echo all commands as they are executed -h, --help Display this message and exit -V, --version Display version and exit คำสั่ง: list list categories list-all list all categories and their verbs apps list list verbs in category 'applications' benchmarks list list verbs in category 'benchmarks' dlls list list verbs in category 'dlls' games list list verbs in category 'games' settings list list verbs in category 'settings' list-cached list cached-and-ready-to-install verbs list-download list verbs which download automatically list-manual-download list verbs which download with some help from the user list-installed list already-installed verbs arch=32|64 create wineprefix with 32 or 64 bit, this option must be given before prefix=foobar and will not work in case of the default wineprefix. prefix=foobar select WINEPREFIX=/home/$USER/.local/share/wineprefixes/foobar annihilate Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
คำเเนะนำ: As with all Wine commands, winetricks knows about the `WINEPREFIX` environment variable. This is useful for using winetricks with different Wine prefix locations. For example,
env WINEPREFIX=~/.winetest sh winetricks mfc40
installs the mfc40 package in the `~/.winetest` prefix.
คำเเนะนำ: Users with more than one version of Wine on their system (for example, an installed package and an uninstalled Wine built from git) can specify which version winetricks should use. For example,
env WINE=~/wine-git/wine sh winetricks mfc40
installs the mfc40 package using the Wine in the ~/wine-git directory.
รายงานบัคหลังจากใช้งาน Winetricks
Please do not report bugs if you have used winetricks to install native (ie non Wine) files, as we cannot support Microsoft dlls.
Using winetricks to install gecko, mono, and fakeie6 options is acceptable for bug reports - just be sure to mention that's what you've done.
Additionally if you found it necessary to use winetricks for an application please mention it when submitting to the AppDB, mailing lists, and other Wine resources.
รายงานบัค *ใน* Winetricks
Winetricks has a bug tracking system at https://github.com/Winetricks/winetricks/issues, please use it. If you don't want to get an account there to file a bug, posting on the wine user forum may also eventually get noticed.
ลบสิ่งที่ติดตั้งโดย Winetricks
It's easy to install an entire wineprefix, so by default, winetricks installs each app into its own Wine prefix, and offers an easy way to remove wineprefixes and the menu items they created.
Winetricks does not provide a way to uninstall individual apps or DLLs inside a Wine prefix. This is for several reasons, but mainly because the preferred way to uninstall anything in Wine is to simply install into a fresh Wine prefix. (Yes, it would be nice to have uninstallers for everything, but I don't need it myself. Patches welcome.)
If for some reason, you still don't want to fiddle at all with your Wine prefixes, Wine does offer a built-in Uninstaller program. Like the Windows "Add/Remove Programs" applet though, it only recognizes programs installed by well-behaved Windows installers that respect the registry, like InstallShield or WISE. There are no guarantees it will work with a program installed by Winetricks or other installers like .msi packages.
ติดตั้ง winetricks
It's not necessary to install winetricks to use it. You may choose to install winetricks in a global location so you can just type winetricks on the command line. Some Linux distributions include winetricks in their Wine packages, so you don't have to download it separately. You probably do want to follow these steps, if the distributions packaged winetricks version lags behind the current winetricks release (e.g. Debian/Ubuntu users).
To download and install your own copy of winetricks, you can install it manually like this:
cd "${HOME}/Downloads" wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x winetricks sudo cp winetricks /usr/local/bin
To download and install the (separate) BASH completion script for winetricks:
cd "${HOME}/Downloads" wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion sudo cp winetricks.bash-completion /usr/share/bash-completion/completions/winetricks # Standard location for BASH completion scripts (Arch, Gentoo, OpenSUSE, Fedora, Debian/Ubuntu, Solus)
ดูเพิ่มเติม
- http://www.cabextract.org.uk/ -- cabextract is a tool for extracting MS cabinet files under Unix environments.
- http://mike.kronenberg.org/index.php?s=trix (Darwine now comes bundled with trix, a gui that invokes winetricks)