查询当前环境是否已安装软件包,如下命令:

[root@cloud ~]# rpm -qa | grep httpd

httpd-2.4.6-31.el7.centos.1.x86_64

httpd-tools-2.4.6-31.el7.centos.1.x86_64

有列出以上包说明已安装,否则没有安装httpd包。

安装软件包:rpm –ivh httpd

卸载软件包:rpm –e 软件包名

相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2021-06-10
  • 2021-09-16
  • 2021-06-12
  • 2021-05-20
猜你喜欢
  • 2021-07-10
  • 2021-09-03
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案