在Debian Linux安装软件首先必须配置好安装源。有几个程序可以用来安装软件:apt-get, aptitude, synaptic.apt-get是命令行工具,aptitude是字符图形界面工具,synaptic是图形界面工具。
1. 配置安装源
/etc/apt/sources.list文件可以这样写
deb
ftp://debian.ustc.edu.cn/debian stable main non-free contrib
deb
ftp://debian.ustc.edu.cn/debian testing main non-free contrib
下面我们将以安装firefox浏览器来解释3个安装工具的用法。
2. 使用apt-get安装软件
在终端中输入su和密码后,以root身份运行apt-get update更新软件列表,然后运行apt-get install firefox就可以安装上firefox浏览器了。
3. 使用aptitude安装软件
用apt-get安装软件固然方便,但是,有时候你必须记住软件的全称和具体版本号,用aptitude就不需要了。