Difference between revisions of "Multilib"

From ArchWiki
Jump to: navigation, search
(Never use -Sy/-Syy on Arch without -u. This is not supported. Also replaced pacman -Sl with the tool designed for this and is part of pacman, `paclist`)
Line 25: Line 25:
 
Execute the following command to remove all packages that were installed from ''multilib'':
 
Execute the following command to remove all packages that were installed from ''multilib'':
  
  # pacman -R $(paclist -q multilib)`
+
  # pacman -R $(paclist -q multilib)
  
 
If you have conflicts with gcc-libs reinstall the 64-bit versions and try the previous command again:
 
If you have conflicts with gcc-libs reinstall the 64-bit versions and try the previous command again:
Line 36: Line 36:
 
  #Include = /etc/pacman.d/mirrorlist
 
  #Include = /etc/pacman.d/mirrorlist
  
Update your package list by running {{ic|pacman}} with the {{ic|-Syy}} switch.
+
Then update the package list and upgrade with {{ic|pacman -Syu}}.
  
 
== See also ==
 
== See also ==

Revision as of 14:30, 1 April 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/.

Enabling

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

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

Then update the package list and upgrade with pacman -Syu.

Note: Arch Linux doesn't support partial upgrades so -u is necessary.

Disabling

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 $(paclist -q multilib)

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:

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

Then update the package list and upgrade with pacman -Syu.

See also