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

后端 未结 12 601
旧巷少年郎
旧巷少年郎 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:29

    If you have a manifest file which lists all the files that were installed with make install you can run this command which I have from another answer:

    cat install_manifest.txt | xargs echo rm | sh
    

    If you have sudo make install you will need to add a sudo to your uninstall:

    cat install_manifest.txt | xargs echo sudo rm | sh
    

提交回复
热议问题