Difference between revisions of "Multilib"

From ArchWiki
Jump to: navigation, search
m
(Disabling: "uninstalling multilib" doesn't make sense. you uninstall the _packages_)
 
(32 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[[Category:Arch64]]
 
 
[[Category:Package management]]
 
[[Category:Package management]]
 +
[[es:Multilib]]
 
[[ja:Multilib]]
 
[[ja:Multilib]]
 
[[ru:Multilib]]
 
[[ru:Multilib]]
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 {{ic|/usr/lib32/}}, which 32-bit binary applications may need when executed.
+
[[zh-cn:Multilib]]
 +
{{Related articles start}}
 +
{{Related|Install bundled 32-bit system in Arch64}}
 +
{{Related articles end}}
 +
The ''multilib'' repository is an [[official repositories|official repository]] which allows the user to run and build 32-bit applications on 64-bit installations of Arch Linux.  
  
To use the [[Official_Repositories#.5Bmultilib.5D|[multilib] repository]], uncomment the following from {{ic|/etc/pacman.conf}}:
+
== 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 {{ic|/usr/lib32/}}, and the native 64-bit libraries under {{ic|/usr/lib/}}.
 +
 
 +
== Enabling ==
 +
 
 +
To use the [[Official repositories#multilib|multilib]] repository, uncomment the {{ic|[multilib]}} section in {{ic|/etc/pacman.conf}} (Please be sure to uncomment both lines):
  
 
  [multilib]
 
  [multilib]
SigLevel = PackageRequired
 
 
  Include = /etc/pacman.d/mirrorlist
 
  Include = /etc/pacman.d/mirrorlist
  
You will then need to update the package list by running {{ic|pacman}} with the {{ic|-Sy}} switch.
+
Then update the package list and upgrade with {{ic|pacman -Syu}}.
  
== Directory structure ==
+
{{note|Do not just run {{ic|pacman -Sy}}, see [[System maintenance#Partial upgrades are unsupported]].}}
 +
 
 +
== Disabling ==
 +
 
 +
To revert to a pure 64-bit system:
 +
 
 +
Execute the following command to remove all packages that were installed from ''multilib'':
 +
 
 +
# pacman -R $(paclist multilib | cut -f1 -d' ')
 +
 
 +
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 {{ic|[multilib]}} section in {{ic|/etc/pacman.conf}}:
 +
 
 +
#[multilib]
 +
#Include = /etc/pacman.d/mirrorlist
  
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 {{ic|/usr/lib32/}}, and the native 64-bit libraries under {{ic|/usr/lib/}}.
+
Then update the package list and upgrade with {{ic|pacman -Syu}}.
  
 
== See also ==
 
== See also ==
  
* [[Arch64 FAQ#Multilib Repository - Multilib Project]]
+
* [[Makepkg#Build 32-bit packages on a 64-bit system]]
 +
* [[64-bit FAQ]]
 
* [//mailman.archlinux.org/mailman/listinfo/arch-multilib arch-multilib] mailing list
 
* [//mailman.archlinux.org/mailman/listinfo/arch-multilib arch-multilib] mailing list

Latest revision as of 12:13, 9 April 2016

The multilib repository is an official repository which allows the user to run and build 32-bit applications on 64-bit installations of Arch Linux.

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 (Please be sure to uncomment both lines):

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

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

Note: Do not just run pacman -Sy, see System maintenance#Partial upgrades are unsupported.

Disabling

To revert to a pure 64-bit system:

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

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

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