Forrest logo
back to the makepkg tool

makepkg:tldr:f9acc

makepkg: Clean up work directories after a successful build.
$ makepkg --clean
try on your machine

The makepkg --clean command is used in Arch Linux to clean the build directory after successfully creating a package using the makepkg command.

When you use makepkg to build a package from source files, it leaves behind temporary build-related files and directories. These files are not required once the package is built and installed successfully. The makepkg --clean command helps to remove these unnecessary files and directories, freeing up disk space.

Typically, after successfully building a package using makepkg, you run the makepkg --clean command to clean the build directory by removing all the intermediate files, logs, and temporary directories associated with the build process.

It is good practice to use makepkg --clean to keep your build environment tidy and remove any unnecessary files that are no longer needed after building the package.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the makepkg tool