我的以为,Debian最大的方便在于用apt-get安装软件,apt-get的工做原理大概是这种:/etc/apt/sources.list文件中保存着一些server的设置,在这些server上有大量的可以用于Debian的软件,比方个人sources.list是这个样子(为了简洁,这里先不介绍怎样用vi编辑这个文件,在文章末尾会提到):
deb ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable contrib main non-free
deb http://mirror.dlut.edu.cn/debian unstable main contrib non-free
deb http://mirror.dlut.edu.cn/debian-non-US unstable/non-US main contrib non-free
deb http://mirror.dlut.edu.cn/debian-security stable/updates main
deb http://debian.ustc.edu.cn/debian sid main non-free contrib
deb-src http://debian.ustc.edu.cn/debian sid main non-free contrib
deb http://debian.ustc.edu.cn/debian-non-US sid/non-US main non-free contrib
deb http://debian.ustc.edu.cn/debian-uo sid marillat java misc ustc
假设你是教育网用户,就可以把这些放在本身的sources.list里面;假设你是公众网用户,那么您可能需要向别的网友询问适合本身的server。
保存好本身的sources.list以后,咱们需要以root身份执行一下apt-get update,这个命令的做用是让apt去sources.list中列出的server上下载一些信息到本地缓冲,这些信息使apt知道哪一个server上有哪些软件,版本号各自是什么,之后每次更改sources.list以后最好都执行一次apt-get update,使得更改生效。
安装软件用的命令是apt-get install,比方安装lumaqq(luma用java写的QQ),命令就是apt-get install lumaqq,没错,就是这么简单,全然没必要沉浸于./configure,make,make install的苦海其中。
apt还有一个常常用法就是apt-cache search xxx,这个命令会在本地缓冲里查找和xxx有关的软件。java