树莓派换源
树莓派使用的是国外的镜像源,下载速度非常慢,因此需要换为国内的源。
一、换源
在终端输入命令:
sudo nano /etc/apt/sources.list
进入这个界面:
在下面添加两句:(阿里云源)
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib
按ctrl+o写入.
ctrl + x退出
然后再终端输入命令:
sudo apt-get update && apt-get update -y
即换源成功。
清华源:
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib
中国科技大学源:
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
二、应用软件(下载命令)
apt-get命令
安装软件命令:apt-get install sodtname1 softname2…
卸载软件命令:apt-get remove softname1 softname2…
卸载并清除配置:apt-get -purge remove softname1…
系统升级:apt-get upgrade
更新软件信息数据库:apt-get update
三、查看安装包情况
dpkg 命令
dpkg -l: 查看所有安装包信息(安装是否成功)
dpkg -s: 查看安装包详细信息
太长了.
dpkg -L: 查看系统中安装包的安装文件位置
dpkg -p: 卸载软件包及其配置文件