Cette traduction est plus ancienne que la page originale et est peut-être dépassée. Voir ce qui a changé.
fr:howtos:general_admin:setting_up_a_slackware_chroot - SlackDocs
The Wiki has moved to new hardware, and the old server died.

Welcome to the Slackware Documentation Project

Configurer Slackware chroot

TRADUCTION en cours — Cedric M. 2016/0807 6:02

Objectif: Je souhaite configurer Slackware en chroot afin de construire les packages 32 bits sur mon système 64 bits.

Obtenir l'installation de Slackware de l'architecture ciblée

For a 32 bit chroot I downloaded installation disks 1 and 2 from http://www.slackware.com/getslack/ via torrent.

Installing the packages

Create a folder which will contain the chroot.

Mount the installation ISO(s). After they have been mounted the packages in them (found under the slackware folder) can be installed to the chroot folder with:

installpkg –root <chroot-folder> a/*.t?z ap/*.t?z l/*.t?z n/*.t?z

installpkg –root <chroot-folder> d/*.t?z k/*.t?z t/*.t?z tcl/*.t?z

(additional sets can be installed in a similar way)

An elegant script for the above: http://dawoodfall.net/files/scripts/bash/mkchroot


After the chroot folder has been populated with packages we can proceed to chroot into it (volume_mounting).

Updating packages

After that I setup slackpkg and updated the packages (configure_a_package_manager).

Mounting partitions

I needed to mount the partition which contained the SlackBuilds for which I wanted to make a package, I used the command:

mount -B <slackware-host-mount-point> <chroot-mount-point>


Then I built the package by executing the Slackbuild as follows:

ARCH=i686 ./<my-package>.SlackBuild

Exit and unmounting

Finally I exited the chroot by pressing Ctrl+d, and unmounted the mount points I had mounted earlier.


Wrote a small script to automate these steps.



Autres langues
Traductions de cette page?:
QR Code
QR Code fr:howtos:general_admin:setting_up_a_slackware_chroot (generated for current page)