Linux Package Management (12)

RPM package management:

  RPM (RedHat Package Manager), is under RedHat early release due to more fire, so slowly running on the releases (such as suse, centos, etc.).

  It generates a file with the extension .RPM, similar to the windows of setup.exe.

  【Inquire】

  = "Query list of installed rpm rpm -qa | grep xx

  

  = "Query package information rpm -qi package name

  = "Query packages which are installed file path and package name rpm -ql

  = "Query file belongs package rpm -qf / etc / passwd

  

  [Unloading]

  = "Uninstall the rpm package: rpm -e RPM package name

    1) If another software package depends on the software package you want to uninstall, uninstall it will produce an error message

    2) To forcibly removed, you can increase the parameter --nodeps, but generally not recommended. rpm -e --nodeps RPM package name

  【installation】

  = "An RPM: rpm -ivh RPM package full path name

    i = install installation; v = verbose prompts; h = hash progress bar

YUM package management:

  YUM is a shell front-end package manager. Based on RPM packages can be automatically downloaded from the server specified RPM package and installed automatically handle dependencies and install all dependent packages.

  In a networked environment must use yum

  【Inquire】

  = "Yum query the server for software to be installed: yum list | grep xx

  【installation】

  = "Specifies the installation package yum: yum install xxx

Guess you like

Origin www.cnblogs.com/az4215/p/11433025.html