Bạn có thể tìm thấy mô tả loại bỏ , autoremove , thanh lọc , dọn dẹp và autoclean , cũng như cú pháp trong các trang hướng dẫn cho apt-get : man apt-get.
Nếu bạn vẫn không chắc chắn sau khi đọc nó (tôi đã), cách tốt nhất để làm rõ nó là dùng thử.
Dưới đây là một ví dụ về cây phụ thuộc đầy đủ cho vim :

Bạn có thể lấy nó với:
apt-rdepends -d vim > vim.dot
dotty vim.dot
Bạn cũng có thể nhận danh sách các phụ thuộc ngay lập tức bằng cách sử dụng apt-cache depends(xem Khai báo mối quan hệ giữa các gói để biết thêm):
$ apt-cache depends vim
vim
  Depends: vim-common
  Depends: vim-runtime
  Depends: libacl1
  Depends: libc6
  Depends: libgpm2
  Depends: libselinux1
  Depends: libtinfo5
  Suggests: <ctags>
    exuberant-ctags
  Suggests: vim-doc
  Suggests: vim-scripts
Vì vậy, có vẻ như vim phụ thuộc vào một số gói, hãy thử cài đặt nó apt-get installvà xem điều gì xảy ra:
$ sudo apt-get install vim
...
The following extra packages will be installed:
  vim-common vim-runtime
Suggested packages:
  ctags vim-doc vim-scripts
The following NEW packages will be installed:
  vim vim-common vim-runtime
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
After this operation, 25.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Để làm cho vim hoạt động, chúng ta cần các gói vim-common và vim-runtime và apt-getsẽ chăm sóc nó. Chúng tôi có thể xác minh nó với dpkg -s pkg...(xem man dpkgđể biết thêm thông tin về các trạng thái):
$ sudo dpkg -s libc6
Package: libc6
Status: install ok installed        // we already have it, no need to install
$ sudo dpkg -s vim-common
Package: vim-common
Status: deinstall ok config-files   // we don't have it, have to install
Giống như chúng tôi đã kiểm tra những gì vim phụ thuộc vào, chúng tôi cũng có thể kiểm tra những thứ khác phụ thuộc vào cùng các gói như vim sử dụng apt-cache rdepends. Chúng ta sẽ thấy vim trong số (có thể) những thứ khác:
$ apt-cache rdepends vim-common
vim-common
Reverse Depends:
  vim-latexsuite
  vim-addon-manager
  vim-tiny
  vim-nox
  vim-gtk
  vim-gnome
 |vim-dbg
  vim-athena
  vim                               // there it is
Hãy tiếp tục cài đặt. Một khi chúng ta đã cài đặt vim chúng ta có thể trải nghiệm sự khác biệt giữa loại bỏ và autoremove . Hãy thử xóa trước:
$ sudo apt-get remove vim
...
The following packages will be REMOVED:
  vim
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1,922 kB disk space will be freed.
Do you want to continue [Y/n]? n
apt-get removesau đó sẽ loại bỏ vim nhưng không phụ thuộc vào nó . Bây giờ chúng ta hãy cố gắng loại bỏ một trong các phụ thuộc của vim :
$ sudo apt-get remove vim-runtime
...
The following packages will be REMOVED:
  vim vim-runtime
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue [Y/n]? n
Điều này sẽ loại bỏ vim-runtime  phụ thuộc cũng như gói phụ thuộc vào nó , cụ thể là vim . Vì tò mò, chúng ta hãy xem điều gì sẽ xảy ra nếu chúng ta loại bỏ một phụ thuộc thấp hơn trên cây phụ thuộc của vim :
$ sudo apt-get remove libgpm2
...
The following packages were automatically installed and are no longer required:
  libgtkglext1 libqtassistantclient4 libtiff-tools libtiff5 python-qt4
  python-sip python-sqlalchemy python-sqlalchemy-ext
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  anki cheese gimp gimp-gmic gimp-plugin-registry gnome-control-center      // !
  gnome-media gnome-video-effects gstreamer0.10-plugins-good libaa1         // !
  libcheese-gtk21 libcheese3 libgpm2 mplayer quodlibet vim vlc w3m          // !
0 upgraded, 0 newly installed, 18 to remove and 0 not upgraded.
After this operation, 63.1 MB disk space will be freed.
Do you want to continue [Y/n]? n
Nó sẽ loại bỏ vim và rất nhiều goodies!
Hãy tiếp tục apt-get remove vimsau đó. Một khi chúng ta đã làm nó, chúng ta nên có một số thức ăn thừa. Nếu bây giờ chúng ta thử autoremove, chúng ta có thể thấy:
$ sudo apt-get autoremove
...
The following packages will be REMOVED:
  vim-common vim-runtime
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 23.2 MB disk space will be freed.
Do you want to continue [Y/n]? y
Đây là hai gói apt-get removecòn lại mặc dù không có gì khác cần chúng.
Đã thử nghiệm với apt-get 0.9.7.9.
               
              
apt-get remove libreoffice