![Forrest logo](/images/logo.png)
makepkg:tldr:f9acc
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.