이 Vim을 다운로드했습니다.풀어 주다Ubuntu 16.04에서 tarball의 압축을 풀었습니다. 그런 다음 vim 디렉토리로 전환하고 실행하면 sudo checkinstall
프로그램이 다음과 같이 종료됩니다.
Makefile:2412: recipe for target 'installpack' failed
make[1]: *** [installpack] Error 1
make[1]: Leaving directory '/home/mudde/Downloads/vim-8.0.0326/src'
Makefile:36: recipe for target 'install' failed
make: *** [install] Error 2
**** Installation failed. Aborting package creation.
Restoring overwritten files from backup...OK
Cleaning up...OK
Bye.
오류가 있다고 나와 있지만 시작할 수는 있습니다 /usr/local/bin/vim
.
vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 12 2017 19:18:51)
Included patches: 1-326
이제 제거하고 싶지만 패키지 관리자를 사용할 수 없습니다.
sudo apt-get remove vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'vim' is not installed, so not removed
The following packages were automatically installed and are no longer required:
feh libexif12 libjpeg-progs libjpeg9 linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic
linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic lua-lgi menu rlwrap
vim-gui-common vim-runtime
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
vim을 수동으로 삭제하는 방법은 무엇입니까? 모든 파일과 디렉터리를 삭제할 수 있습니까? 아니면 일부를 제외해야 합니까? 아니면 뭔가 누락된 것이 있습니까?
$ sudo find /etc /usr /lib /var -name "*vim*" -prune
/etc/vim
/usr/share/man/man5/apparmor.vim.5.gz
/usr/share/man/man5/vim-registry.5.gz
/usr/share/man/it/man1/vimdiff.1.gz
/usr/share/man/it/man1/vim.1.gz
/usr/share/man/it/man1/rvim.1.gz
/usr/share/man/it/man1/gvim.1.gz
/usr/share/man/it/man1/gvimtutor.1.gz
/usr/share/man/it/man1/evim.1.gz
/usr/share/man/it/man1/gvimdiff.1.gz
/usr/share/man/it/man1/rgvim.1.gz
/usr/share/man/it/man1/vimtutor.1.gz
/usr/share/man/fr/man1/vimdiff.1.gz
/usr/share/man/fr/man1/vim.1.gz
/usr/share/man/fr/man1/rvim.1.gz
/usr/share/man/fr/man1/gvim.1.gz
/usr/share/man/fr/man1/gvimtutor.1.gz
/usr/share/man/fr/man1/evim.1.gz
/usr/share/man/fr/man1/gvimdiff.1.gz
/usr/share/man/fr/man1/rgvim.1.gz
/usr/share/man/fr/man1/vimtutor.1.gz
/usr/share/man/pl/man1/vimdiff.1.gz
/usr/share/man/pl/man1/vim.1.gz
/usr/share/man/pl/man1/rvim.1.gz
/usr/share/man/pl/man1/gvim.1.gz
/usr/share/man/pl/man1/gvimtutor.1.gz
/usr/share/man/pl/man1/evim.1.gz
/usr/share/man/pl/man1/gvimdiff.1.gz
/usr/share/man/pl/man1/rgvim.1.gz
/usr/share/man/pl/man1/vimtutor.1.gz
/usr/share/man/ru/man1/vimdiff.1.gz
/usr/share/man/ru/man1/vim.1.gz
/usr/share/man/ru/man1/rvim.1.gz
/usr/share/man/ru/man1/gvim.1.gz
/usr/share/man/ru/man1/gvimtutor.1.gz
/usr/share/man/ru/man1/evim.1.gz
/usr/share/man/ru/man1/gvimdiff.1.gz
/usr/share/man/ru/man1/rgvim.1.gz
/usr/share/man/ru/man1/vimtutor.1.gz
/usr/share/man/ja/man1/vimdiff.1.gz
/usr/share/man/ja/man1/vim.1.gz
/usr/share/man/ja/man1/rvim.1.gz
/usr/share/man/ja/man1/gvim.1.gz
/usr/share/man/ja/man1/gvimtutor.1.gz
/usr/share/man/ja/man1/evim.1.gz
/usr/share/man/ja/man1/gvimdiff.1.gz
/usr/share/man/ja/man1/rgvim.1.gz
/usr/share/man/ja/man1/vimtutor.1.gz
/usr/share/man/man1/vimdiff.1.gz
/usr/share/man/man1/vim.1.gz
/usr/share/man/man1/rvim.1.gz
/usr/share/man/man1/vim-addon-manager.1.gz
/usr/share/man/man1/vim-addons.1.gz
/usr/share/man/man1/vimdot.1.gz
/usr/share/man/man1/gvim.1.gz
/usr/share/man/man1/gvimtutor.1.gz
/usr/share/man/man1/evim.1.gz
/usr/share/man/man1/gvimdiff.1.gz
/usr/share/man/man1/rgvim.1.gz
/usr/share/man/man1/vimtutor.1.gz
/usr/share/lintian/overrides/vim-common
/usr/share/lintian/overrides/vim-gui-common
/usr/share/doc/vim-common
/usr/share/doc/vim-addon-manager
/usr/share/doc/vim-gui-common
/usr/share/doc/vim-runtime
/usr/share/doc/mercurial-common/examples/vim
/usr/share/bash-completion/completions/vim-addon-manager
/usr/share/pixmaps/vim-32.xpm
/usr/share/pixmaps/vim-16.xpm
/usr/share/pixmaps/vim-48.xpm
/usr/share/pixmaps/gvim.svg
/usr/share/applications/vim.desktop
/usr/share/applications/gvim.desktop
/usr/share/icons/hicolor/48x48/apps/gvim.png
/usr/share/icons/hicolor/scalable/apps/gvim.svg
/usr/share/icons/locolor/32x32/apps/gvim.png
/usr/share/icons/locolor/16x16/apps/gvim.png
/usr/share/vim
/usr/share/rubygems-integration/all/specifications/vim-addon-manager-0.5.3.gemspec
/usr/share/cmake-3.5/editors/vim
/usr/share/gettext/styles/po-vim.css
/usr/bin/vim-addon-manager
/usr/bin/vim-addons
/usr/bin/vimdot
/usr/bin/gvimtutor
/usr/bin/vimtutor
/usr/lib/mime/packages/vim-common
/usr/lib/mime/packages/vim-gui-common
/usr/lib/ruby/vendor_ruby/vim
/usr/lib/git-core/mergetools/vimdiff2
/usr/lib/git-core/mergetools/vimdiff
/usr/lib/git-core/mergetools/vimdiff3
/usr/lib/git-core/mergetools/gvimdiff
/usr/lib/git-core/mergetools/gvimdiff2
/usr/lib/git-core/mergetools/gvimdiff3
/usr/src/linux-headers-4.4.0-57-generic/include/config/video/vim2m.h
/usr/src/linux-headers-4.4.0-59-generic/include/config/video/vim2m.h
/usr/src/linux-headers-4.4.0-62-generic/include/config/video/vim2m.h
/usr/local/share/awesome/lib/awful/hotkeys_popup/keys/vim.lua
/usr/local/share/man/man1/vim.1
/usr/local/share/man/man1/vimtutor.1
/usr/local/share/man/man1/vimdiff.1
/usr/local/share/man/man1/evim.1
/usr/local/share/doc/awesome/doc/libraries/awful.hotkeys_popup.keys.vim.html
/usr/local/share/vim
/usr/local/bin/vim
/usr/local/bin/vim.rm
/usr/local/bin/vimtutor
/lib/modules/4.4.0-57-generic/kernel/drivers/media/platform/vim2m.ko
/lib/modules/4.4.0-59-generic/kernel/drivers/media/platform/vim2m.ko
/lib/modules/4.4.0-62-generic/kernel/drivers/media/platform/vim2m.ko
/var/lib/dpkg/info/vim-common.list
/var/lib/dpkg/info/vim-common.conffiles
/var/lib/dpkg/info/vim-common.preinst
/var/lib/dpkg/info/vim-common.md5sums
/var/lib/dpkg/info/vim-addon-manager.list
/var/lib/dpkg/info/vim-addon-manager.prerm
/var/lib/dpkg/info/vim-addon-manager.md5sums
/var/lib/dpkg/info/vim-addon-manager.preinst
/var/lib/dpkg/info/vim-addon-manager.postinst
/var/lib/dpkg/info/vim-addon-manager.postrm
/var/lib/dpkg/info/vim-latexsuite.postrm
/var/lib/dpkg/info/vim-latexsuite.list
/var/lib/dpkg/info/vim-gui-common.list
/var/lib/dpkg/info/vim-gui-common.conffiles
/var/lib/dpkg/info/vim-gui-common.md5sums
/var/lib/dpkg/info/vim-runtime.list
/var/lib/dpkg/info/vim-runtime.postrm
/var/lib/dpkg/info/vim-runtime.postinst
/var/lib/dpkg/info/vim-runtime.preinst
/var/lib/dpkg/info/vim-runtime.md5sums
/var/lib/dpkg/info/vim-tiny.list
/var/lib/vim
/var/cache/apt/archives/vim-runtime_2%3a7.4.1689-3ubuntu1.2_all.deb
/var/cache/apt/archives/vim_2%3a7.4.1689-3ubuntu1.2_amd64.deb
/var/cache/apt/archives/vim-addon-manager_0.5.5_all.deb
/var/cache/apt/archives/vim-latexsuite_20141116.812-2_all.deb
/var/cache/apt/archives/vim-gui-common_2%3a7.4.1689-3ubuntu1.2_all.deb
/var/cache/apt/archives/vim-gtk_2%3a7.4.1689-3ubuntu1.2_amd64.deb
답변1
checkinstall
예데비안 방식configure
전달하고 빌드할 수 있는 패키지를 데비안 패키지 관리자가 인식하도록 만드세요 make && make install
. 분명히 설치 중에 문제가 발생하여 checkinstall
빌드가 설치된 패키지로 제대로 등록되지 않았습니다.
여러 가지 방법으로 소프트웨어를 제거할 수 있습니다. 일부 패키지는 대상 uninstall
(예: make uninstall
. 그렇지 않은 경우 해당 파일을 수동으로 삭제해야 합니다. find
적합 -mtime
하거나 -mmin
아마도 가장 유망한 것을 사용 하고 찾으십시오. 그렇지 않은 경우 vim을 임시 기본 디렉터리에 설치하고 결과를 패턴으로 사용하여 삭제할 파일을 검색할 수 있습니다.
답변2
패키지 관리자를 통해 vim을 설치하지 않았으므로 이 방법으로 vim을 제거할 수 없습니다. 많은 파일이 설치되지 않으므로 찾기 /usr/local
가 쉬워집니다 .vim