apt-get autoremove 刪除所有內容

apt-get autoremove 刪除所有內容

我正在運行 13.10。我刪除了 emacs,然後運行 sudo apt-get autoremove,但它決定需要刪除所有這些其他東西(其中很多我可能需要)。以下是完整列表:

The following packages were automatically installed and are no longer required:
  ghc ghc-haddock latex-cjk-common libbsd-dev libffi-dev libgail-3-doc
  libgail-doc libgda-5.0-4 libgda-5.0-common libgdk-pixbuf2.0-dev
  libgdk-pixbuf2.0-doc libgdl-3-5 libgdl-3-common libghc-data-default-doc
  libghc-dlist-dev libghc-dlist-doc libghc-mtl-doc libghc-transformers-doc
  libghc-x11-doc libghc-x11-xft-doc libgladeui-2-4 libgladeui-common
  libglib2.0-dev libglib2.0-doc libgmp-dev libgmpxx4ldbl libgstreamer1.0-dev
  libgtk-3-doc libgtk2.0-doc libgtksourceview-3.0-doc libharfbuzz-dev
  libid3tag0 libimlib2 libintl-perl libio-stringy-perl libipc-signal-perl
  libjson-perl liblockdev1 libmime-types-perl libnotify-doc libopts25-dev
  libpango1.0-doc libpcre3-dev libpcrecpp0 libpng12-dev libproc-waitstat-perl
  librecode0 libregexp-assemble-perl libremctl1 libreoffice-report-builder-bin
  libsource-highlight-common libsp1c2 libstdc++5 libtelepathy-glib-doc
  libtext-unidecode-perl libtie-ixhash-perl libvala-0.20-0 libwayland-dev
  libxcb-render0-dev libxcb-shm0-dev libxkbcommon-dev libxml-libxml-perl
  libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl
  libxml-sax-expat-perl libxml-sax-perl libxml2-dev libxml2-doc libxml2-utils
  m-tx manpages-posix manpages-posix-dev mercurial mercurial-common
  mime-construct moreutils musixtex openbsd-inetd pfb2t1c2pfb
  pidgin-encryption plt-scheme pmx policykit-1-doc python-bzrlib
  python-compizconfig python-configobj python-debianbts python-fpconst
  python-keyring python-launchpadlib python-lazr.restfulclient python-lazr.uri
  python-oauth python-reportbug python-scour python-secretstorage
  python-simplejson python-soappy python-wadllib python3-decorator
  python3-magic python3-simplegeneric quilt racket racket-common racket-doc
  remctl-client reportbug schroot-common screen sgml-data sp suckless-tools
  swath tex4ht tex4ht-common texinfo texlive-bibtex-extra
  texlive-fonts-extra-doc texlive-formats-extra texlive-games
  texlive-generic-extra texlive-humanities texlive-humanities-doc
  texlive-lang-african texlive-lang-cjk texlive-lang-cyrillic
  texlive-lang-czechslovak texlive-lang-english texlive-lang-european
  texlive-lang-french texlive-lang-german texlive-lang-indic
  texlive-lang-italian texlive-lang-other texlive-lang-polish
  texlive-lang-portuguese texlive-lang-spanish texlive-math-extra
  texlive-music texlive-omega texlive-plain-extra texlive-publishers
  texlive-publishers-doc texlive-science texlive-science-doc texlive-xetex
  tree valac-0.20 valac-0.20-vapi wmbubble wmbutton wmcalclock wmhdplop
  wmmemload wmnd wmweather xfonts-x3270-misc xmonad xsltproc
Use 'apt-get autoremove' to remove them.

我再次嘗試安裝和刪除 emacs,但它仍然堅持要我刪除所有這些。 libreoffice 和 python-twisted 曾經在這裡,直到我將它們設定為手動安裝。為什麼 Ubuntu 要刪除所有這些?

答案1

您認為需要的任何軟體包只需執行以下操作:

sudo apt-get install package-you-need

這樣您就可以將軟體包標記為手動,然後就可以執行自動刪除。

答案2

不用擔心,你不需要它們

sudo apt-get autoremove

Autoremove 用於刪除為了滿足某些套件的依賴關係而自動安裝但不再需要的套件

相關內容