How to uninstall the software installed under Linux using make install

Source: Internet
Author: User

Linux system command make, clean usage explained

Makefile defines a set of rules that specify which files need to be compiled first, which files need to be compiled, which files need to be recompiled, and even more complex functions, because makefile is like a shell script, which can also execute commands from the operating system.

First look at what is makefile
Makefile defines a set of rules that specify which files need to be compiled first, which files need to be compiled, which files need to be recompiled, and even more complex functionality, because makefile, like a shell script, can execute commands from the operating system.
Makefile brings the advantage is-"automated compilation", once written, only need a make command, the entire project is automatically compiled, greatly improving the efficiency of software development. Make is a command tool, a command tool that interprets instructions in makefile, and in general, most Ides have this command, such as: Delphi's Make,visual C + + NMAKE, GNU under Linux make. Makefile is a compilation method in engineering.
Make 
Compile source code, connect, build target file, executable file according to makefile file.
Make Clean 
clears the object file (the file with the suffix ". O") and the executable file that resulted from the last make command.
Make Install
installs the successfully compiled executable file into the system directory, typically the/usr/local/bin directory.
Make Dist
generates a release package file (that is, distribution packages). This command will package the executable and related files into a tar.gz compressed file to be used as the software package for the release.
it generates a file with a name similar to "package-version.tar.gz" in the current directory. Package and version are the Am_init_automake (package, version) that we defined in configure.in.
Make Distcheck
build and test the release package to determine the correctness of the release package. This will automatically unpack the package file, execute the Configure command, and execute make to confirm that the compilation does not appear to be wrong, and that the package is ready to be released.
Make Distclean
similar to make clean, but it also removes all configure generated files, including the makefile file.



How to uninstall the software installed under Linux using make install

If it is an Ubuntu system, you can use Checkinstall to generate a Deb package to install, and then uninstall

Reference: http://blog.sina.com.cn/s/blog_4178f4bf0101cmt7.html

But the most primitive solution is as follows:

0, note: In the use of make install is to develop the--prefix parameters specify the installation path

1, use the source package installation, please specify the--prefix installation directory when installing, in addition, please use

Make >& log_make &make install >& Log_install &

It is used to save the installation information log so that it is easy to see which files are installed in the system directory, such as the library files under/usr/lib, when uninstalling.

2, the common anti-installation target is:

Make Uninstall/distclean/veryclean

3, look for a temporary directory to reinstall again. Like what

./configure--prefix=/tmp/to_remove && make install

Then traverse the files in the/tmp/to_remove and delete the files from the original installation location. The disadvantage is that some folders may not be deleted (the system is not clear or installed)



How to uninstall the software installed under Linux using make install

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.