/*********************************************************************
* Author : Samson
* Date : 03/01/2014
* Test platform:
* Linux ubuntu 3.2.0-58-generic-pae
* GNU bash, version 4.2.39
* *******************************************************************/
/var/cache/apt/archives文件夹中的文件是使用sudo apt-get install appname时下载的安装文件,这些文件是可以清理的,若你系统空间不足的时候,可以想到从此处进行清理而获得空间。在我的PC下的文件有,如下:
/var/cache/apt/archives $ ls
acct_6.5.5-1ubuntu4_amd64.deb libnss3-tools_2%3a3.15.4-0ubuntu0.13.10.1_amd64.deb
aptdaemon_1.1.1-0ubuntu4_all.deb libntrack0_016-1.1_amd64.deb
aptdaemon-data_1.1.1-0ubuntu4_all.deb libntrack-qt4-1_016-1.1_amd64.deb
at-spi2-core_2.10.1-0ubuntu0.1_amd64.deb libodbc1_2.2.14p2-5ubuntu4_i386.deb
avahi-autoipd_0.6.31-2ubuntu4.1_amd64.deb libogg0_1.3.1-1_i386.deb
avahi-daemon_0.6.31-2ubuntu4.1_amd64.deb libopenal1_1%3a1.14-4ubuntu1_i386.deb
avahi-utils_0.6.31-2ubuntu4.1_amd64.deb libopencc1_0.4.0-1_amd64.deb
bind9-host_1%3a9.9.3.dfsg.P2-4ubuntu1.1_amd64.deb liborc-0.4-0_1%3a0.4.17-2_i386.deb
bluez-alsa_4.101-0ubuntu8b1_i386.deb libotf0_0.9.13-1_amd64.deb
cpp-4.8_4.8.1-10ubuntu9_amd64.deb libp11-kit0_0.18.3-2ubuntu1_i386.deb
cups_1.7.0~rc1-0ubuntu5.1_amd64.deb libpam0g_1.1.3-8ubuntu3_i386.deb
cups_1.7.0~rc1-0ubuntu5.2_amd64.deb libpam-gnome-keyring_3.8.2-0ubuntu3.1_amd64.deb
cups-bsd_1.7.0~rc1-0ubuntu5.1_amd64.deb libpam-winbind_2%3a3.6.18-1ubuntu3.1_i386.deb
cups-bsd_1.7.0~rc1-0ubuntu5.2_amd64.deb libpango-1.0-0_1.32.5-5ubuntu1_i386.deb
cups-client_1.7.0~rc1-0ubuntu5.1_amd64.deb libpango1.0-0_1.32.5-5ubuntu1_i386.deb
cups-client_1.7.0~rc1-0ubuntu5.2_amd64.deb libpangocairo-1.0-0_1.32.5-5ubuntu1_i386.deb
cups-common_1.7.0~rc1-0ubuntu5.1_all.deb libpangoft2-1.0-0_1.32.5-5ubuntu1_i386.deb
cups-common_1.7.0~rc1-0ubuntu5.2_all.deb libpangox-1.0-0_0.0.2-4_i386.deb
cups-daemon_1.7.0~rc1-0ubuntu5.1_amd64.deb libpangoxft-1.0-0_1.32.5-5ubuntu1_i386.deb
cups-daemon_1.7.0~rc1-0ubuntu5.2_amd64.deb libpciaccess0_0.13.2-1_i386.deb
cups-ppdc_1.7.0~rc1-0ubuntu5.2_amd64.deb libpcre3_1%3a8.31-2_i386.deb
cups-server-common_1.7.0~rc1-0ubuntu5.1_all.deb libphonon4_4%3a4.7.0really4.6.0-0ubuntu2_amd64.deb
cups-server-common_1.7.0~rc1-0ubuntu5.2_all.deb libpinyin2_0.8.0-2_amd64.deb
desktop-file-utils_0.21-1ubuntu3_amd64.deb libpixman-1-0_0.30.2-1ubuntu0.1_amd64.deb
dnsutils_1%3a9.9.3.dfsg.P2-4ubuntu1.1_amd64.deb libpixman-1-0_0.30.2-1ubuntu0.1_i386.deb
docbook-xsl_1.78.1+dfsg-1_all.deb libplasma3_4%3a4.11.3-0ubuntu0.1_amd64.deb
duplicity_0.6.21-0ubuntu4.1_amd64.deb libplasma3_4%3a4.11.5-0ubuntu0.1_amd64.deb
enigmail_2%3a1.5.2-0ubuntu1_amd64.deb libpng12-0_1.2.49-4ubuntu1_i386.deb
eog_3.8.2-1ubuntu1.1_amd64.deb libpolkit-qt-1-1_0.103.0-1ubuntu1_amd64.deb
esound-common_0.2.41-11_all.deb libpoppler-qt4-4_0.24.1-0ubuntu1_amd64.deb
espeak-data_1.47.11-1ubuntu0.1_amd64.deb libpostproc52_6%3a0.8.10-0ubuntu0.13.10.1_amd64.deb
fbterm_1.7-2_amd64.deb libprocps0_1%3a3.3.3-2ubuntu9_amd64.deb
fcitx_1%3a4.2.8.1-3_all.deb libproxy1_0.4.11-0ubuntu4_i386.deb
fcitx-anthy_0.2.0-1_amd64.deb libpulse0_1%3a4.0-0ubuntu6_i386.deb
fcitx-bin_1%3a4.2.8.1-3_amd64.deb libpulsedsp_1%3a4.0-0ubuntu6_i386.deb
fcitx-chewing_0.2.1-1_amd64.deb libpulse-mainloop-glib0_1%3a4.0-0ubuntu6_i386.deb
fcitx-config-common_0.4.7-1_all.deb libpurple0_1%3a2.10.7-0ubuntu4.1.13.10.1_amd64.deb
fcitx-config-gtk_0.4.7-1_amd64.deb libpurple-bin_1%3a2.10.7-0ubuntu4.1.13.10.1_all.deb
fcitx-config-gtk2_0.4.7-1_amd64.deb libqapt2_2.0.65-0ubuntu1_amd64.deb
fcitx-data_1%3a4.2.8.1-3_all.deb libqapt2-runtime_2.0.65-0ubuntu1_amd64.deb
fcitx-dbg_1%3a4.2.8.1-3_amd64.deb libqca2_2.0.3-4_amd64.deb
fcitx-frontend-all_1%3a4.2.8.1-3_all.deb libqt4-dbus_4%3a4.8.4+dfsg-0ubuntu18.1_amd64.deb
fcitx-frontend-fbterm_0.2.0-2_amd64.deb libqt4-dbus_4%3a4.8.4+dfsg-0ubuntu18.1_i386.deb
fcitx-frontend-gtk2_1%3a4.2.8.1-3_amd64.deb libqt4-declarative_4%3a4.8.4+dfsg-0ubuntu18.1_amd64.deb
fcitx-frontend-gtk3_1%3a4.2.8.1-3_amd64.deb libqt4-declarative_4%3a4.8.4+dfsg-0ubuntu18.1_i386.deb
fcitx-frontend-qt4_1%3a4.2.8.1-3_amd64.deb libqt4-designer_4%3a4.8.4+dfsg-0ubuntu18.1_amd64.deb
fcitx-frontend-qt5_0.1.1-1_amd64.deb libqt4-designer_4%3a4.8.4+dfsg-0ubuntu18.1_i386.deb
fcitx-googlepinyin_0.1.6-1_amd64.deb libqt4-help_4%3a4.8.4+dfsg-0ubuntu18.1_amd64.deb
fcitx-hangul_0.3.0-1_amd64.deb libqt4-network_4%3a4.8.4+dfsg-0ubuntu18.1_amd64.deb
清理的方法很简单:
/var/cache/apt/archives $ sudo apt-get clean
再次查看的时候,*.deb文件都不存在了
/var/cache/apt/archives $ /var/cache/apt/archives$ ll
total 28
drwxr-xr-x 3 root root 20480 2月 28 20:04 ./
drwxr-xr-x 3 root root 4096 2月 28 20:04 ../
-rw-r----- 1 root root 0 1月 15 06:54 lock
drwxr-xr-x 2 root root 4096 2月 28 19:45 partial/