tldr/pages/linux/makepkg.md

26 lines
564 B
Markdown
Raw Normal View History

2020-07-05 21:46:19 +01:00
# makepkg
2021-12-05 21:31:22 +00:00
> Create a package which can be used with `pacman`.
> Uses the `PKGBUILD` file in the current working directory by default.
2021-09-16 20:27:17 +01:00
> More information: <https://man.archlinux.org/man/makepkg.8>.
2020-07-05 21:46:19 +01:00
2021-12-05 21:31:22 +00:00
- Make a package:
2020-07-05 21:46:19 +01:00
`makepkg`
- Make a package and install its dependencies:
`makepkg --syncdeps`
2021-12-05 21:31:22 +00:00
- Make a package, install its dependencies then install it to the system:
2020-07-05 21:46:19 +01:00
`makepkg --syncdeps --install`
2021-12-05 21:31:22 +00:00
- Make a package, but skip checking the source's hashes:
2020-07-05 21:46:19 +01:00
`makepkg --skipchecksums`
2021-09-16 20:27:17 +01:00
- Clean up work directories after a successful build:
`makepkg --clean`