Linux系統下 -bash: apt-get: command not found

apt-get: command not found,這個的出現是因為系統的原因。

Linux系統分為兩種:
1.RedHat系列:Redhat、Centos、Fedora等

2.Debian系列:Debian、Ubuntu等

RedHat系列的包管理工具是yum

Debian系列的包管理工具是apt-get

查看系統版本:

cat /proc/version

Linux version 3.10.0-862.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018

可以看出我的系统是Red hat 所以使用的包管理工具是yum

Share :

Add New Comment

 Your Comment has been sent successfully. Thank you!   Refresh
Error: Please try again