本文最后更新于 228 天前,其中的信息可能已经有所发展或是发生改变。
系统环境
Windows Subsystem for Linux 2(WSL2)
本期介绍的指令
#Ubutnu,Debian系列
apt
apt-get
#Centos,Redhat系列
yum
#Arch,Manjaro系列
pacman
有何作用
包管理器恐怕是Linux最关键的一个指令了,它负责 安装(install) 卸载(remove,autoremove)更新(update,upgrade)系统的其他软件包,对小白友好,对大佬方便2333 (编译安装直接上)
如何使用
#Ubutnu,Debian系列
#安装
apt install 软件包名
apt-get install 软件包名
#卸载(不移除依赖)
apt remove 软件包名
apt-get remove 软件包名
#卸载(移除依赖)
apt autoremove 软件包名
apt-get autoremove 软件包名
#更新(软件包列表)
apt update
apt-get update
#更新(软件包本体)
apt upgrade
apt-get upgrade
#Centos,Redhat系列
#安装
yum install 软件包名
#卸载
yum remove 软件包名
#更新(软件包列表)
yum update
#更新(软件包本体)
yum upgrade
#Arch,Manjaro系列
#安装
pacman —S 软件包名
#卸载
pacman —R 软件包名
#更新(软件包列表)
pacman —Su
#更新(软件包本体)
pacman —Syu
来水评论了|´・ω・)ノ
留下甲板鸭子的脚印OωO