User Tools

Site Tools


mywiki:linux:chrootenv

How to set up a chroot environment with RedHat Linux 6.2

Set up chroot environment via backup from real system

  • C library (libc/glibc)
  • Resolver for nameservices (DNS, NIS, …)
  • Authentication information (/etc/passwd, group, shadow, …)
  • Additional libraries like libz, …
  • If You want to run CGI scripts, additionally
  • Shells (bash, tcsh, zsh)
  • Perl, Python, whatever scripting language the cgi's use

the more clean approach is to install RPM itself inside the chroot() and afterwards install the whole system using the ready-made binary RPMs. This is the same like what the normal RedHat installation procedure does if You are installing on a new system

Installing the chroot() environment using rpm

mywiki/linux/chrootenv.txt · Last modified: by 127.0.0.1