centos查找安装包信息

which mvn
rpm -qf /usr/bin/mvn
yum provides  maven

[root@8e2115dc8301 /]# which mvn
/usr/bin/mvn



[root@8e2115dc8301 /]# rpm -qf /usr/bin/mvn
maven-3.0.5-17.el7.noarch



[root@8e2115dc8301 /]# yum provides  maven
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
maven-3.0.5-17.el7.noarch : Java project management and project comprehension tool
Repo        : base



maven-3.0.5-17.el7.noarch : Java project management and project comprehension tool
Repo        : @base



[root@8e2115dc8301 /]# yum provides  mvn
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
maven-3.0.5-17.el7.noarch : Java project management and project comprehension tool
Repo        : base
Matched from:
Filename    : /usr/bin/mvn



maven-3.0.5-17.el7.noarch : Java project management and project comprehension tool
Repo        : @base
Matched from:
Filename    : /bin/mvn



maven-3.0.5-17.el7.noarch : Java project management and project comprehension tool
Repo        : @base
Matched from:
Filename    : /usr/bin/mvn
Published
Categorized as poem

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.