簡體   English   中英

如何卸載我檢查已安裝的rpm?

[英]How to uninstall a rpm that I checkinstalled?

我剛剛在checkinstall運行時構建了vim

[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

我怎樣才能做到這一點?

rpm -e不會將全路徑作為參數,而只是包名稱:

rpm -e vim-20141012-1.x86_64

甚至:

rpm -e vim

再次安裝(使用rpm),然后以相同的方式再次卸載。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM