Linux使用问题——sudo: apt-get: command not found

报错信息sudo: apt-get: command not found

主要原因:当前使用的是CentOS, 下载的时候 使用yum不要用apt-get

在centos下用yum install xxx
yum和apt-get的区别
一般来说著名的linux系统基本上分两大类: 
1.RedHat系列:Redhat、Centos、Fedora等 
2.Debian系列:Debian、Ubuntu等 
RedHat 系列 
1 常见的安装包格式 rpm包,安装rpm包的命令是“rpm -参数” 
2 包管理工具 yum 
3 支持tar包 
Debian系列 
1 常见的安装包格式 deb包,安装deb包的命令是“dpkg -参数” 
2 包管理工具 apt-get 
3 支持tar包

 sudo yum install mplayer

发布了480 篇原创文章 · 获赞 100 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/qq_37909508/article/details/104126014