Posted on Thu 21 May 2020
In Общие вопросы.
tags: setup make make install checkinstall
Often we install some software using make. It's not as convenient way of software installation as, say, apt-get, apt or dpkg. However, sometimes it's the only option.
And often after that we need to uninstall the software we just (or not just)
installed. It's ok if the maintainer created a way to uninstall his or her
piece of software like
make unsinstall option, but...
But don't worry, there is a way!
The way is to use CheckInstall package.
Before start installing new software from sources, install:
sudo apt install auto-apt sudo apt-get install checkinstall
Of course, you need to do that just once.
Instead of installing software the usual way like
cd package_folder ./configure make sudo make install
cd package_folder auto-apt run ./configure make sudo checkinstall
checkinstall automatically calls
make install so don't worry about that.
Et voila, you've got your software installed!
checkinstall will tell you the name of the package it created in
case you'd like to uninstall the software.
And if you need to unsinsall it, then...
sudo dpkg -r package_name
Quite simple, isn't it?