1

我只是vimcheckinstall运行构建的:

[root@localhost vim]# checkinstall -R -y --fstrans=no

我看到那里创建了一个 rpm:

[root@localhost vim]# ls /root/rpmbuild/RPMS/x86_64/
checkinstall-20141012-1.x86_64.rpm  vim-20141012-1.x86_64.rpm

vim 工作正常...

:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 12 2014 16:19:20)
Included patches: 1-475
Compiled by statquant
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +clipboard       +cursorshape     +extra_search    -hangul_input    +listcmds        -mouse_gpm       -mzscheme        +python3/dyn     +startuptime     +termresponse    +viminfo         +xsmp_interact
+arabic          +cmdline_compl   +dialog_con_gui  +farsi           +iconv           +localmap        -mouse_jsbterm   +netbeans_intg   +quickfix        +statusline      +textobjects     +vreplace        +xterm_clipboard
+autocmd         +cmdline_hist    +diff            +file_in_path    +insert_expand   +lua             +mouse_netterm   +path_extra      +reltime         -sun_workshop    +title           +wildignore      -xterm_save
+balloon_eval    +cmdline_info    +digraphs        +find_in_path    +jumplist        +menu            +mouse_sgr       +perl            +rightleft       +syntax          +toolbar         +wildmenu        +xpm
+browse          +comments        +dnd             +float           +keymap          +mksession       -mouse_sysmouse  +persistent_undo +ruby            +tag_binary      +user_commands   +windows
++builtin_terms  +conceal         -ebcdic          +folding         +langmap         +modify_fname    +mouse_urxvt     +postscript      +scrollbind      +tag_old_static  +vertsplit       +writebackup
+byte_offset     +cryptv          +emacs_tags      -footer          +libcall         +mouse           +mouse_xterm     +printer         +signs           -tag_any_white   +virtualedit     +X11
+cindent         +cscope          +eval            +fork()          +linebreak       +mouseshape      +multi_byte      +profile         +smartindent     +tcl             +visual          -xfontset
+clientserver    +cursorbind      +ex_extra        +gettext         +lispindent      +mouse_dec       +multi_lang      +python/dyn      -sniff           +terminfo        +visualextra     +xim

由于某种原因,我无法卸载它...

[root@localhost vim]# rpm -e /root/rpmbuild/RPMS/x86_64/vim-20141012-1.x86_64.rpm
error: package /root/rpmbuild/RPMS/x86_64/vim-20141012-1.x86_64.rpm is not installed
[root@localhost vim]# rpm -e vim-20141012-1.x86_64
error: package vim-20141012-1.x86_64 is not installed
[root@localhost vim]# rpm -e vim
error: package vim is not installed

我怎样才能做到这一点?

4

2 回答 2

1

rpm -e不采用完整路径作为参数,只是包名:

rpm -e vim-20141012-1.x86_64

甚至:

rpm -e vim
于 2014-10-12T15:50:45.553 回答
0

再次安装它(使用 rpm)并以同样的方式再次卸载它。

于 2016-02-23T16:44:43.117 回答