Difference between revisions of "Multilib"

From ArchWiki
Jump to: navigation, search
(Undo revision 293775 by Matklad (talk) everybody-1 knowing what "uncomment" means is still enough not to mention how to actually do it)
(update link(s) (avoid redirect))
Line 11: Line 11:
== Enabling ==
== Enabling ==
To use the [[Official_Repositories#multilib|multilib]] repository, uncomment the {{ic|[multilib]}} section in {{ic|/etc/pacman.conf}}:
To use the [[Official repositories#multilib|multilib]] repository, uncomment the {{ic|[multilib]}} section in {{ic|/etc/pacman.conf}}:

Revision as of 11:54, 24 February 2014

Enabling the multilib repository allows the user to run and build 32-bit applications on 64-bit installations of Arch Linux. multilib creates a directory containing 32-bit instruction set libraries inside /usr/lib32/, which 32-bit binary applications may need when executed.

Directory structure

A 64-bit installation of Arch Linux with multilib enabled follows a directory structure similar to Debian. The 32-bit compatible libraries are located under /usr/lib32/, and the native 64-bit libraries under /usr/lib/.


To use the multilib repository, uncomment the [multilib] section in /etc/pacman.conf:

Include = /etc/pacman.d/mirrorlist

You will then need to update the package list by running pacman with the -Syyu switch.


To revert to a pure 64-bit system, uninstalling multilib:

Execute the following command to remove all packages that were installed from multilib:

# pacman -R `LANG=C pacman -Sl multilib | grep installed | cut -d ' ' -f 2`

If you have conflicts with gcc-libs reinstall the 64-bit versions and try the previous command again:

# pacman -S gcc-libs base-devel

Comment out the [multilib] section in /etc/pacman.conf:

#Include = /etc/pacman.d/mirrorlist

Update your package list by running pacman with the -Syy switch.

See also