Compilation Directory Still Exists#
After running make install
, there will be a file named install_manifest.txt in the directory, which records all the installed contents.
xargs rm < install_manifest.txt
Alternatively, use `make uninstall`
, but this depends on whether the author has included the uninstall command in the Makefile.
Compilation Directory is Gone#
Download the current version of git again in a temporary folder, compile and install, then proceed with the uninstallation.
Recommendations for Compiled Software Installation#
Use -prefix with configure to Specify Path#
./configure --prefix=/usr/local/linuxidctest
All installed resource files will be placed in the /usr/local/linuxidctest directory.
Another benefit of using the --prefix option is for easy software uninstallation or portability.
When a software installation is no longer needed, simply delete the installation directory to completely uninstall the software;
For software portability, just copy the entire directory to another machine (under the same operating system).