emacs 23 관련 패키지를 제거하고 설치된 emacs 24를 유지하는 방법

emacs 23 관련 패키지를 제거하고 설치된 emacs 24를 유지하는 방법

emacs 24설치 했는데 Linux Mint 16제거하고 싶습니다 emacs 23.

나는 sudo apt-get remove emacs23그것으로 충분하다고 생각했지만 그렇지 않았습니다. 여기에 관련 패키지 목록이 있습니다 emacs.

$ sudo dpkg --get-selections | grep emacs
emacs                       install
emacs23                     deinstall
emacs23-bin-common              install
emacs23-common                  install
emacs23-common-non-dfsg             install
emacs23-lucid                   install
emacs24                     install
emacs24-bin-common              install
emacs24-common                  install
emacs24-common-non-dfsg             install
emacs24-el                  install
emacsen-common                  install

을 제거하기 위해 emacs 23시도했습니다 $ sudo apt-get remove emacs23*. 하지만 삭제도 됩니다 emacs 24.

The following packages will be REMOVED:
  emacs emacs23-bin-common emacs23-common emacs23-common-non-dfsg emacs23-lucid emacs24 emacs24-bin-common emacs24-common emacs24-common-non-dfsg emacs24-el

논증 *으로 쓰면 안되나요 ? 올바르게 제거하는 apt-get방법은 무엇입니까 ?emacs 23

답변1

패키지 작업 명령의 매개 변수는 셸 와일드카드 패턴이 아닌 정규식입니다. 이는 하위 문자열을 포함하는 모든 패키지를 의미합니다 emacs23*(빈 문자열과 일치하기 때문).emacs23*

apt-get remove '^emacs23'

관련 정보