linux 自学系列:debian更新软件列表、更改源

apt-get update 获取最新软件列表

apt-get install packageName 安装一个包

apt-cache search package_name 搜索软件包

更改源:

修改/etc/apt/sources.list

如更改163源:

在sources.list文件最顶加入下面信息

deb http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free

deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free

deb http://http.us.debian.org/debian wheezy main contrib non-free
deb http://non-us.debian.org/debian-non-US wheezy/non-US main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free

原文地址:https://www.cnblogs.com/bjdxy/p/3092217.html