
Openoffice 패키지를 제거하고 싶습니다. 단일 명령이나 정규식을 사용하여 제거하고 싶습니다. 즉,
dpkg -r openoffice-org*
하지만 dpkg는 와일드카드를 허용하지 않습니다.
와일드카드를 사용하여 모든 패키지를 제거하려면 어떻게 해야 하나요?
답변1
와일드카드를 사용 하여 여러 패키지를 삭제하는 한 줄의 방법 dpkg
:
dpkg --list|grep openoffice|awk '{ print $2 }'|xargs sudo dpkg -r
답변2
실제로 dpkg는 와일드카드를 지원하지 않습니다. 따라서 해당 기능이 필요하면 다음이 필요합니다.
dpkg --get-selections | grep "open-office" >list.txt
이 파일에는 구문 분석한 다음 dpkg에 공급하는 데 필요한 패키지와 상태가 포함되어 있습니다.
답변3
당신이 사용할 수있는
sudo apt-get purge openoffice.org-base-core openoffice.org-common openoffice.org-core openoffice.org-style-human uno-libs3 ure openoffice.org-thesaurus-en-au openoffice.org-thesaurus-en-us openoffice.org-hyphenation openoffice.org-hyphenation-en-us openoffice.org-l10n-common
패키지를 제거합니다.
와일드카드를 실행하면 다음도 제거됩니다.
aspell* aspell-en* 사전-공통* hunspell-en-ca* hunspell-en-us* 언어 지원-en* 언어 지원-쓰기-en* myspell-en-au* myspell-en-gb* myspell- en-za* openoffice.org-base-core* openoffice.org-calc* openoffice.org-common* openoffice.org-core* openoffice.org-draw* openoffice.org-emailmerge* openoffice.org-gnome* 오픈오피스. org-gtk* openoffice.org-help-en-us* openoffice.org-impress* openoffice.org-math* openoffice.org-style-human* openoffice.org-writer* python-uno* wbritish*
위의 방법을 사용하는 것이 안전한 방법입니다.