Ask Your Question

Is it possible to install Fedora from a chroot in a way analogous to Arch Linux?

asked 2017-12-25 07:19:41 -0500

I would like to build a Fedora system from the ground up and I'm wondering if there's a lesser known chroot method for installing Fedora. If it is possible I think the most interesting part of it would be how to install a base system into which one can chroot. The only way I can come up with is getting the base file system from a Fedora netinstall ISO image.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-12-25 16:08:07 -0500

Rabin gravatar image

I never tried this but teoreticly you should be able to use dnf --installroot= to install fedora base system to a different location. you can create a new LVM to use existing partition and mount it to a new folder and use the command above to install fedora into it, and then use systemd-nspawn to access it.

see here for a example using yum instead dnf

edit flag offensive delete link more


I tried this and gave up because it was a lot of work, but I think this is a possible way (not sure though).

Give it a try.

abadrinath gravatar imageabadrinath ( 2017-12-25 16:53:20 -0500 )edit

answered 2017-12-26 22:56:46 -0500

davidva gravatar image

updated 2017-12-26 23:01:20 -0500

mmm you can to use mock... "mock" makes chroots... example running "mock shell" you can install packages, remove; edit the chroot... Other alternative is Docker...

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-12-25 07:19:41 -0500

Seen: 779 times

Last updated: Dec 26 '17