LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mock

builds RPMs in clean chroot environments

TLDR

Build package in chroot
$ mock -r [fedora-39-x86_64] [package.src.rpm]
copy
Initialize chroot
$ mock -r [fedora-39-x86_64] --init
copy
Clean chroot
$ mock -r [fedora-39-x86_64] --clean
copy
Shell into chroot
$ mock -r [fedora-39-x86_64] --shell
copy
Build from spec
$ mock -r [fedora-39-x86_64] --spec [package.spec] --sources [sources/]
copy
Rebuild SRPM
$ mock -r [fedora-39-x86_64] --rebuild [package.src.rpm]
copy

SYNOPSIS

mock [options] srpm

DESCRIPTION

mock builds RPMs in clean chroot environments. It isolates builds from the host system.The tool creates reproducible builds. Used for Fedora/RHEL package building.

PARAMETERS

SRPM

Source RPM to build.
-r CONFIG
Chroot configuration.
--init
Initialize chroot.
--clean
Clean chroot.
--shell
Enter chroot shell.
--rebuild
Rebuild SRPM.
--help
Display help information.

INSTALL

sudo dnf install mock
copy

CAVEATS

Fedora/RHEL focused. Requires mock group membership. Needs chroot configs.

HISTORY

Mock was created by the Fedora project for building RPM packages in isolated environments.

SEE ALSO

rpmbuild(8), dnf(8), koji(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid