常用命令
apt-get
apt-get 命令适用于 deb 包管理式的 Linux 操作系统
#安装包
apt-get install package_name
#卸载包
apt-get remove package_name
apt-cache
#搜索包的信息
apt-get search package_name
dpkg
#查看已经安装的包
dpkg -l
更换镜像源
编辑sources.list
sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
更新包信息
apt-get update