Linux command
checkinstall 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo checkinstall -y
Example
sudo checkinstall --install=no
Example
sudo checkinstall --nodoc
Example
sudo checkinstall --pkgname [package]
Example
sudo checkinstall --pakdir [path/to/directory]
说明
checkinstall tracks the installation of software from source and produces a binary package that can be managed by the system's native package manager (deb, rpm, or Slackware tgz). Instead of running `make install` directly, running `checkinstall` monitors which files are created during installation and packages them. This allows clean removal and management of locally compiled software.
参数
- -y, --default
- Accept all default values non-interactively
- --install=_yes|no_
- Whether to install the package after creation
- --nodoc
- Don't include documentation in the package
- --pkgname _name_
- Set the package name
- --pakdir _path_
- Directory to save the created package
- -D
- Create a Debian package
- -R
- Create an RPM package
- -S
- Create a Slackware package
- --type _TYPE_
- Choose packaging system: slackware, debian, or rpm
- --pkgversion _VERSION_
- Set the package version
- --pkgrelease _RELEASE_
- Set the package release number
- --requires _DEPS_
- Specify dependencies required by the package
- --gzman
- Compress any man pages found inside the package
- --exclude _PATH_
- Exclude files or directories from the package
- --include _FILE_
- Force inclusion of files/dirs listed in the given file
- --inspect
- Inspect the package's file list before creating it
FAQ
What is the checkinstall command used for?
checkinstall tracks the installation of software from source and produces a binary package that can be managed by the system's native package manager (deb, rpm, or Slackware tgz). Instead of running `make install` directly, running `checkinstall` monitors which files are created during installation and packages them. This allows clean removal and management of locally compiled software.
How do I run a basic checkinstall example?
Run `sudo checkinstall -y` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -y, --default do in checkinstall?
Accept all default values non-interactively