What's the opposite of 'make install', i.e. how do you uninstall a library in Linux?

后端 未结 12 608
旧巷少年郎
旧巷少年郎 2020-11-28 17:08

While running

./configure --prefix=/mingw 

on a MinGW/MSYS system for a library I had previously run

\'./configure --pref         


        
12条回答
  •  死守一世寂寞
    2020-11-28 17:44

    make clean generally only cleans built files in the directory containing the source code itself, and rarely touches any installed software.

    Makefiles generally don't contain a target for uninstallation -- you usually have to do that yourself, by removing the files from the directory into which they were installed. For example, if you built a program and installed it (using make install) into /usr/local, you'd want to look through /usr/local/bin, /usr/local/libexec, /usr/local/share/man, etc., and remove the unwanted files. Sometimes a Makefile includes an uninstall target, but not always.

    Of course, typically on a Linux system you install software using a package manager, which is capable of uninstalling software "automagically".

提交回复
热议问题