rpm 命令

#1.安装本地.rpm

yum -y localinstall  *.rpm

yum -y install *.rpm

#2.查看软件安装位置

#先查出软件

[root@db01 /usr/share/grafana13:56:09]# rpm -qa |grep grafana
grafana-7.2.1-1.x86_64

 

 #再查软件安装位置

[root@db01 /usr/share/grafana14:01:38]# rpm -ql grafana-7.2.1-1.x86_64

 

 #再进入到位置点确认信息

[root@db01 /usr/share/grafana14:01:38]# cd /usr/share/grafana/
[root@db01 /usr/share/grafana14:02:57]# ll
total 8
drwxr-xr-x 2 root root 25 Jun 19 10:12 bin
drwxr-xr-x 3 root root 107 Jun 19 10:12 conf
drwxr-xr-x 4 root root 39 Jun 19 10:12 plugins-bundled
drwxr-xr-x 17 root root 226 Jun 19 10:12 public
drwxr-xr-x 2 root root 4096 Jun 19 10:12 scripts
-rw-r--r-- 1 root root 5 Oct 8 2020 VERSION

#3.卸载rpm安装软件

rpm -e *.rpm

例:
 rpm -e grafana-enterprise-9.0.0-1.x86_64

 

posted @ 2022-06-19 14:05  Linux运维-Friend  阅读(41)  评论(0编辑  收藏  举报