V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
kongruxi
V2EX  ?  问与答

汗一个...竟然不会卸载程序

  •  
  •   kongruxi · 2011-07-07 19:59:46 +08:00 · 4969 次点击
    这是一个创建于 4689 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用了几个月的linux,慢慢习惯了,今天突然发现原来我还不会卸载程序

    google一下,有些文章说直接删除安装目录就可以了,很疑惑,不敢乱试

    所以来这里问一下,用源码来安装的程序要怎样卸载?
    8 条回复  ?  1970-01-01 08:00:00 +08:00
    fanzeyi
        1
    fanzeyi  
       2011-07-07 20:11:50 +08:00
    # make uninstall

    对于大多数的 Makefile 来说.. 一般都有的..
    kongruxi
        2
    kongruxi  
    OP
       2011-07-07 20:16:27 +08:00
    [root@Hung nginx-1.0.2]# make uninstall
    make: *** 没有规则可以创建目标“uninstall”。 停止。

    @fanzeyi 试过了,不行啊。我是要卸载nginx
    TheOnly92
        3
    TheOnly92  
       2011-07-07 20:19:30 +08:00
    # whereis nginx
    然后删除就行了吧
    kongruxi
        4
    kongruxi  
    OP
       2011-07-07 20:23:01 +08:00
    [hungyuhei@Hung conf]$ whereis nginx
    nginx: /usr/local/nginx

    @TheOnly92 就是把/usr/local/nginx整个目录直接删除?
    dongsheng
        5
    dongsheng  
       2011-07-07 20:33:05 +08:00
    如果makefile里没定义uninstall任务的话删除就很麻烦,安装的时候/usr/local/nginx只是可执行文件,还可有有些header和lib文件在别的目录。不知你用的是什么发行版,安装软件最好还是用包管理工具。
    kongruxi
        6
    kongruxi  
    OP
       2011-07-07 20:38:36 +08:00
    @dongsheng 我用fedora,nginx是下载源码安装的,因为想用最新版
    TheOnly92
        7
    TheOnly92  
       2011-07-07 21:23:51 +08:00
    源码安装文件都应该在 /usr/local/nginx 目录,nginx 也没有什么 lib 和 header 吧,就整个目录删除就可以了
    dongsheng
        8
    dongsheng  
       2011-07-07 22:04:43 +08:00
    @TheOnly92 @kongruxi

    刚才查了下我的,确实没有header和lib,只要把/etc/nginx和/usr/share/doc/nginx删掉就行了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3485 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:36 · PVG 19:36 · LAX 04:36 · JFK 07:36
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com