Information query software installed

  1. Query installed software information
     problem
  1. List all RPM software currently installed host
  2. View a list of installed firefox package
  3. Queries ifconfig command after which the program is to produce packages installed
  4. View firefox package uses
     program
    queries all rpm packages installed, you can use the command rpm -qa.
    Query a list of software installed, you can use the command rpm -ql software name.
    Query a file which is generated by the package is installed, you can use the command rpm -qf absolute file path. In this problem we must first find, ifconfig commands executable program where you can use which command.
    Use viewing software, you can use the command rpm -qi software name.
     steps
    to achieve this case need to follow the steps below.
    Step One: List all RPM software currently installed host
    command actions are as follows:
    [root @ localhost ~] # RPM -qa
    Step two: Check the list of installed firefox package
    command actions are as follows:
    [root @ localhost ~ ] # rpm -ql firefox
    step three: ifconfig command query program which is produced after the package installation
    command actions are as follows:
    [the root @ localhost ~] # which ifconfig
    / sbin / ifconfig
    RPM [the root @ localhost ~] # -qf / sbin / the ifconfig
    NET-Tools-1.60-110.el6_2.x86_64
    [the root @ localhost ~] #
    step four: See firefox package uses
    command operations as follows:
    [root @ localhost ~] # RPM -qi Firefox
    the Name: Firefox Relocations: (not relocatable)
    Version: 17.0.10 Vendor: Red Hat, Inc.
    Release: 1.el6_4 Build a Date: 2013 Nian 10 Wednesday, 23 October 21:14 minutes and 43 seconds
    Install Date: 2015 Nian 01 Yue 06 Tuesday, 20:59:04 Host Build: x86-027.build.eng.bos.redhat.com
    Group: Applications / Internet Source RPM: Firefox-17.0.10-1 .el6_4.src.rpm
    Size: 30,424,459 License: GPLv2 + or LGPLv2 MPLv1.1 or +
    Signature: RSA / 8, 2013 Nian 10 Tuesday, 29 October 16:20:45, Key ID 199e2f91fd431d51
    Packager: Red Hat, Inc. HTTP: //bugzilla.redhat.com/bugzilla
    the URL of: at http://www.mozilla.org/projects/firefox/
    the Summary: Mozilla Firefox Web Browser
    the Description:
    Mozilla Firefox is an open-source web browser, designed for standards
    compliance, performance and portability.
    [root@localhost ~]#

Guess you like

Origin blog.csdn.net/weixin_45173557/article/details/91410980
Recommended