为什么Centos装上以后,执行apt-get命令提示没有该命令?

999朵玫瑰 2010-03-29 01:42:36
下载地址是:CentOS5.4 http://isoredirect.centos.org/centos/5/isos/i386/
装好以后,执行
# apt-get install gcc
bash: apt-get: command not found
怎么回事呢?
...全文
115409 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
SleepingBug 2012-11-23
  • 打赏
  • 举报
回复
感谢steptodream !我也遇到此问题!
xhao014 2012-03-22
  • 打赏
  • 举报
回复
呵呵,现在都知道了。YUM
  • 打赏
  • 举报
回复
终于有人解开这个菜鸟的谜团。。。哈哈
999朵玫瑰 2010-03-29
  • 打赏
  • 举报
回复
谢谢了
steptodream 2010-03-29
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 onlyonelove 的回复:]

引用 1 楼 steptodream 的回复:

CentOS的软件安装工具不是apt-get 是yum
# yum -y install gcc
在ubuntu下安装SSH可以:
apt-get install openssh-server
就是说在centos上可以这样来安装ssh:
# yum -y install op
enssh-server
[/Quote]
yes
999朵玫瑰 2010-03-29
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 steptodream 的回复:]

CentOS的软件安装工具不是apt-get 是yum
# yum -y install gcc
[/Quote]在ubuntu下安装SSH可以:
apt-get install openssh-server
就是说在centos上可以这样来安装ssh:
# yum -y install openssh-server
steptodream 2010-03-29
  • 打赏
  • 举报
回复
最好一起把g++也装上
# yum -y install gcc gcc-c++ libstdc++-devel
steptodream 2010-03-29
  • 打赏
  • 举报
回复
CentOS的软件安装工具不是apt-get 是yum
# yum -y install gcc

19,618

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧