Install wine on arch linux

Как установить Wine в Arch Linux/BlackArch. Что такое и как подключить репозиторий Multilib

Для установки Wine в Arch Linux и его производные необходимо включить подключить репозиторий multilib.

Что такое и для чего нужен multilib

Репозиторий multilib – это официальный репозиторий, который позволяет пользователю запускать и собирать 32-битные приложения на 64-битной версии Arch Linux.

Как включить multilib

Чтобы включить multilib, откройте текстовый файл /etc/pacman.conf:

В нём найдите и раскомментируйте строки (убедитесь, что раскомментировали обе строки, иначе изменения не вступят в силу):

[multilib] Include = /etc/pacman.d/mirrorlist

Обновите информацию о пакетах:

чтобы вывести список всех пакетов репозитория multilib. Имена 32-битных пакетов библиотек начинаются с lib32-.

Как отключить multilib

Для возврата к чистой 64-битной системе:

Выполните следующую команду, для удаления всех пакетов, которые были установлены из multilib:

sudo pacman -R $(paclist multilib | cut -f1 -d' ')

Если у вас есть конфликты с gcc-libs, переустановить пакет gcc-libs и группу base-devel.

Закомментируйте секцию [multilib] в /etc/pacman.conf:

#[multilib] #Include = /etc/pacman.d/mirrorlist

Обновите информацию о пакетах:

Как установить Wine в Arch Linux/BlackArch

После включения репозитория Multilib можно установить Wine. Имеется две версии Wine: wine (стабильная) и wine-staging (тестирование). Wine Staging – это патченная версия Wine, которая имеет исправления ошибок и функции (к примеру CSMT патч), которые ещё не были интегрированы в стабильную ветку.

Также рекомендуется установить wine_gecko и wine-mono для приложений, которые зависят, соответственно, от Internet Explorer и .NET. Эти пакеты необязательны, поскольку при необходимости Wine загрузит соответствующие файлы. Тем не менее, заранее имя эти файлы, вы сможете работать офлайн, а также Wine не будет загружать эти файлы для каждого Wine prefix’а, в котором они нужны.

Читайте также:  Linux импорт корневого сертификата

Итак, установка Wine в Arch Linux/BlackArch выполняется следующей командой:

sudo pacman -S wine wine_gecko wine-mono

Также рекомендуется установить пакеты библиотек lib32-mpg123 и lib32-gnutls, поскольку почти наверняка они понадобятся при работе Wine и он будет выдавать сообщения, что не найдены необходимые файлы:

sudo pacman -S lib32-mpg123 lib32-gnutls

WINEPREFIX

По умолчанию, Wine хранит файлы настроек и установленные приложения Windows в каталоге ~/.wine. Этот каталог называется префиксом Wine (Wine prefix). Он создается и обновляется автоматически по необходимости при запуске программ Windows и программ настройки Wine, например winecfg. Каталог префикса также содержит стандартную структуру корневого раздела каталогов Windows, которая представляется программам Windows как диск C:.

Вы можете изменить место расположения префикса, создав переменную окружения WINEPREFIX с указанием нового пути. Это полезно, когда вам необходимо использовать различное окружение для разных приложений Windows. При запуске приложения Windows новый префикс будет автоматически создан на указанном в WINEPREFIX месте, если его до этого не существовало.

Для примера, если вы запускаете одно приложение с

env WINEPREFIX=~/.win-a wine program-a.exe
$ env WINEPREFIX=~/.win-b wine program-b.exe

у каждой программы будет свой раздел C:, соответственно, своя копия всех настроек и реестра. Таким образом, обе программы будут запущены в полностью изолированных друг от друга средах.

Примечание: Тем не менее, префиксы Wine не являются песочницами. Программы, запущенные в Wine могут также получать доступ к оставшейся части системы (например, раздел Z: обычно соответствует корню файловой системы /).

Для создания префикса без запуска каких-либо средств настройки Wine или приложений Windows вы можете использовать команду:

env WINEPREFIX=~/.customprefix wineboot -u

Источник

How to Install Wine on Arch Linux

“Windows software is not compatible with Arch Linux. However, you can still install Windows software on Arch Linux using Wine without using virtual machines. Wine is an open-source layer that you install on Unix-like systems to offer compatibility for installing and running Windows applications on Unix systems, including Arch Linux.

Читайте также:  Linux str to int

Wine works by a forwarding system call to the Linux kernel, making it appear like the Windows applications are getting executed under Linux. That way, you can run Windows graphical user interface programs on Arch Linux like you would on Windows. We will cover the steps for installing Wine on Arch Linux in this guide. Let’s get started!”

Installing Wine on Arch Linux

The easiest way of running Windows applications on Arch Linux is by using Wine.

Here’s a quick cheat sheet for using Wine to install Windows applications.

  1. Download the Windows application that you want to install
  2. Move it to a convenient directory
  3. Open the terminal and change the directory to that containing the downloaded application
  4. Install the application by using the syntax below

Let’s begin by installing Wine on Arch Linux. To install Wine, start by enabling the multilib repository. Doing so ensures you can install 32-bit and 64-bit Windows applications on Arch Linux.

Use an editor of choice and open the /etc/pacman.conf file.

Once opened, uncomment the below two lines by removing the # at the front.

[ Include = / etc / pacman.d / mirrorlist ]

The next thing is to update your system to ensure we have the latest packages when making an installation. The command below will update your Arch Linux.

Wine is available in the Arch Linux repository. Therefore, you can install it alongside its dependencies from the official repository with the command below.

Allow the installation to complete. Once done, you will have the latest version of Wine installed and ready for use on your Arch Linux.

Читайте также:  Linux mint удалить неиспользуемые пакеты

Wine supports .exe files. However, if the programs you want to install are HTML and .NET, you must install two more packages to support that. Use the below command.

Alternatively, you can run the command below, and the configuration panel for Wine will load.

Follow the configuration prompts, and when prompted whether to install Gecko and Mono, accept the installation; you should be able to run .NET and HTML files.

With Wine installed, when you want to install a Windows application, you can search for its executable file online and download it. Once you do, simply right-click the application, and from the menu that appears, select the option to open the application “with windows program loader,” and you will have your Windows application running on Arch Linux.

Conclusion

Running Windows applications on Arch Linux is not difficult, provided you know how to go about it. This guide has covered the various steps to follow when you want to install Wine on Arch Linux. Follow along and when you have Wine installed on Arch Linux, go ahead and start installing Windows applications, both 32-bit and 64-bit on Arch Linux.

About the author

Denis Kariuki

Denis is a Computer Scientist with a passion for Networking and Cyber Security. I love the terminal, and using Linux is a hobby. I am passionate about sharing tips and ideas about Linux and computing.

Источник

Оцените статью
Adblock
detector