How to use mock

#init
mock –init -r dist*

dist* in /etc/mock
example) centos-7-x86_64

# enter shell
mock -r dist* –shell

# build
mock -r dist* –rebuild package.src.rpm

# copy to mock shell
mock -r dist* –copyin src dst

# copy from mock shell
mock -r dist* –copyout src dst

# install package
mock -r dist* –install ***

# yum
mock -r dist* –yum-cmd ***

カテゴリー: 未分類 パーマリンク