Skip to content

Latest commit

 

History

History
66 lines (38 loc) · 1.84 KB

README.md

File metadata and controls

66 lines (38 loc) · 1.84 KB

mock-4.1解析笔记

Something I hope you know before go into the coding~
First, please watch or star this repo, I'll be more happy if you follow me.
Bug report, questions and discussion are welcome, you can post an issue or pull a request.

简介

Mock is a simple program that will build source RPMs inside a chroot. It doesn't do anything fancy other than populating a chroot with the contents specified by a configuration file, then build any input SRPM(s) in that chroot.

闪电入门

$ mock -r rocky-8-x86_64 package.src.rpm
...
Finish: rpmbuild packagei-1.98-1.fc35.src.rpm
Finish: build phase for package-1.98-1.fc35.src.rpm
INFO: Done(package.src.rpm) Config(fedora-35-x86_64) 2 minutes 14 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-35-x86_64/result
$  ls /var/lib/mock/fedora-35-x86_64/result
build.log  package-1.98-1.fc35.noarch.rpm  package-1.98-1.fc35.src.rpm  hw_info.log  installed_pkgs.log  root.log  state.log

$ mock -r centos-stream+epel-9-s390x package.src.rpm
...
$ mock -r alma+epel-8-x86_64 package.src.rpm
...

目录