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 用于删除那些为了满足某些包的依赖关系而自动安装的、不再需要的包

相关内容