Quick and Dirty DEB/RPM with Checkinstall
To create a quick and dirty Debian or RPM package, check out
checkinstall! Be forewarned though that this isn’t the recommended way of creating packages. This post on AskUbuntu gives good reasons for why. Though if it is between running a
make install or running this utility, I would consider running
This program works by tracking all the files installed by a
make install equivalent. This makes it easy to remove later on.
To install on a debian based distribution,
sudo apt install checkinstall
Then you can go to the directory that you normally
make install and instead run the following to make a Debian package.
sudo checkinstall -D --install=no --nodoc
It will ask you to fill in various metadata such as name and author, and then it will create a package you can install!
sudo dpkg -i filename.deb
You can later remove it with apt.
sudo apt remove package_name
If the application does not use
make install, then you can add extra arguments to denote its equivalent
sudo checkinstall -D --install=no --nodoc ./customInstallScript
||Create a Debian package|
||Create a RPM package|
||Create a Slackware package|
||Don’t install package|
||Do not include documentation filesq|