L
L
l4m3r2019-07-11 23:35:16
linux
l4m3r, 2019-07-11 23:35:16

How to uninstall/update a program that was created from source?

I downloaded several source codes of different utilities.
Made as usual ./configure && make, sudo make install
Deleted folders with source codes.
I used it and now I want to remove the programs themselves.
It turns out that I need to re-download the sources and do make uninstall?
Is that what everyone does? Or is it better not to delete the source? Where is it customary to store them then?
I am not strong in Linux and mostly use apt.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Shokhrov, 2019-07-11
@l4m3r

In the penguin community, the simplicity of the mantra is often praised ./configure && make && make install, but there is also a healthy criticism of this method, aimed at the inconvenience of deletion (not everyone is concerned about the implementation make uninstall) and confusion with files when updating.
Therefore, a healthy practice is to build from source into a package that is native to your distribution, and then install it. Tools - either generic ones like checkinstall, or something more specific like debuild.
Source codes, I'm afraid, still have to download. make installturns files from the build folder into regular files scattered across your disk. Partially, probably, you can deal with this by specifying the path prefix for installation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question