一、apt-get这种方法下载的东西到哪了php
参考网址:http://blog.csdn.net/magic881213/article/details/7692007linux
http://www.linuxdiyf.com/viewarticle.php?id=102978git
【1】apt-get install **这样的命令会下载文件放在 /var/cache/apt/archives目录下,而后安装。这样这个目录所占空间会愈来愈大,因而apt提供了相应的管理工具apt-get clean删除/var/cache/apt/archives/ 和 /var/cache/apt/archives/partial/目录下全部包(锁定的除外)。
注意:apt-get autoclean仅删除再也不能被下载的包. 另外aptitude clean也可删除/var/cache/apt/archives/ 和 /var/cache/apt/archives/partial/目录下全部包(锁定的除外)。github
【2】通常的deb包(包括新立得或者apt-get下载的)都安装在/usr或/usr/share或/usr/local。本身下载的压缩包或者编译的包,有些能够选择安装目录,通常放在/usr/local/,也有在/opt的。若是想知道具体位置,用命令代码:多线程
$ dpkg -L xxx.deb
注意,xxx是deb包的名称,也能够用新立得来查看。eclipse
dpkg -L firefox 可查看Firefox的安装状况;dpkg -L eclipse 可查看Eclipse的安装位置工具
二、加快下载速度:(摘自:http://www.linuxidc.com/Linux/2011-07/38034.htm)spa
apt-fast 是一个用 axel 来加速 apt-get 软件安装的程序,可能不少人都用,能够经过PPA来安装..net
sudo add-apt-repository ppa:tldm217/tahutek.net sudo apt-get update sudo apt-get install apt-fast
另外还有两个Apt-Fast的替代品firefox
apt-proz: 它使用另外一个多线程下载工具 prozilla 做为加速下载工具,用法与 apt-fast 相似。
经过 ppa:tldm217/tahutek.net 就可安装:
sudo sudo apt-add-repository ppa:tldm217/tahutek.net sudo apt-get update sudo apt-get install apt-proz
apt-metalink : 它能够从多个 Ubuntu 源镜像中同时下载 deb 包,使用 Aria2 做为加速下载工具。
安装及使用方法见项目主页: http://github.com/tatsuhiro-t/apt-metalink