Separation summary of development environment by chroot of various Linux

Separation summary of development environment by chroot

In cross-platform development with OpenCV, I wanted to separate the Linux development environment from the main body with chroot.

About chroot

https://wiki.archlinux.jp/index.php/Chroot

Debian/Ubuntu Use pbuilder https://www.debian.org/doc/manuals/maint-guide/build.ja.html https://wiki.ubuntu.com/PbuilderHowto

References

https://hnakamur.github.io/blog/2017/09/02/add-repositories-to-pbuilder-chroot-images/

Fedora/RHEL/CentOS Use mock https://github.com/rpm-software-management/mock/wiki

References

https://hnakamur.github.io/blog/2015/12/16/how_to_debug_errors_in_rpm_build_using_mock/ https://hnakamur.github.io/blog/2015/12/18/add_third_party_to_build_on_mock_and_copr/ http://manpages.ubuntu.com/manpages/bionic/man1/mock.1.html https://blog.packagecloud.io/eng/2015/05/11/building-rpm-packages-with-mock/

Slackware/Zenwalk/SalixOS Extract and install from the installation CD to the target directory https://docs.slackware.com/howtos:general_admin:setting_up_a_slackware_chroot

Then follow the normal procedure to chroot

Arch Use the pacstrap command https://wiki.archlinux.jp/index.php/インストールガイド#ベースシステムのインストール

Example


pacstrap /var/tmp/chroot base base-devel

Then follow the normal procedure to chroot

Manjaro Use the basestrap command included in extra / manjaro-tools-base https://wiki.manjaro.org/index.php?title=Manjaro-tools

Example


basestrap /var/tmp/chroot base base-devel

Then follow the normal procedure to chroot

Gentoo Extract the stage3 image to the target directory https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Stage/ja

Then follow the normal procedure to chroot

Sabayon Extract Sabayon_Linux_ . _amd64_tarball.tar.gz to the target directory

Example


mkdir /var/tmp/chroot
cd /var/tmp/chroot
curl -LO http://<Mirror Sabayon directory>/stable/Sabayon_Linux_<Year>.<Month>_amd64_tarball.tar.gz
#The following is for RIKEN mirrors
#curl -LO http://ftp.riken.jp/Linux/sabayon/stable/Sabayon_Linux_19.03_amd64_tarball.tar.gz
tar xpvf Sabayon_Linux_<Year>.<Month>_amd64_tarball.tar.gz --xattrs-include='*.*' --numeric-owner #Deploying the archive

Then follow the normal procedure to chroot

Recommended Posts

Separation summary of development environment by chroot of various Linux
Summary of Linux distribution types
A brief summary of Linux
[Linux] [Initial Settings] Table of Contents for Development Environment Setup
Summary of basic implementation by PyTorch
Summary of various operations in Tensorflow
Summary of restrictions by file system
Addition of local development environment on MacOS
[Linux] Summary of middleware version confirmation commands
Summary of various for statements in Python
Summary of library hosting pages by language
Summary of petit techniques for Linux commands
Summary of SQLAlchemy connection method by DB
Construction of development environment for Choreonoid class
Linux Summary
Until Django application creation by terminal (development environment)
Instantiation of the BOX development environment created earlier
Summary of Java 11 release status of major Linux distributions
Installation of Python3 and Flask [Environment construction summary]
[mypy] Summary of options not enabled by `--strict`
[Django3] Environment construction and various settings summary [Python3]
Set up an Objective-C 2.0 development environment on Linux
Build a mruby development environment for ESP32 (Linux)