don't dream your life, live your dreams !
Mock creates chroots and builds packages in them. Its only task is to reliably populate a chroot and attempt to build a package in that chroot.
Fedora projects
I assume that you have a Centos installation.
You can copy/paste this script and use it to configure automatically your server.
404: Not Found
First have a look to /etc/mock/. You will see all version you can use.
Important! You must login as ‘builder’ (or any user that belongs to ‘mock’ group).
Then type:
/usr/bin/mock -r my-version --init |
Environment is here : /var/lib/mock/my-version
You can open a shell for the environment:
/usr/bin/mock -r my-version --shell |
If you want to install package:
/usr/bin/mock -r my-version install yum |
If you want to execute a command:
/usr/bin/mock -r my-version chroot "commands" |
Copyright © 2026 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.
admin