linux foundation - Essay 06_ classroom management software package

Package management

rpm

包和包管理器

  • Package consisting of:
      binary files, library files, configuration files, help files
  • Package Manager:
      Debian: deb file, dpkg package manager
      redhat: rpm file, rpm package manager
      RPM: Redhat Package Penalty for Manager
         RPM Package Penalty for Manager

rpm包管理

  • CentOS system using the command rpm package management: installing, uninstalling, upgrading, querying, validation, database maintenance

Installation:
RPM {-i | --install} [the install-Options] PACKAGE_FILE ...
  -v: shows the installation procedure information
  -vv: display more detailed installation information
  -h: # to display the progress of the package Operator


rpm包安装

[Installation options]
  --test: test installation, but does not actually perform the installation, namely dry run mode
  --nodeps: Ignore dependencies
  --replacepkgs | ReplaceFiles
  (covering installation | cover only the files with conflicts)
  --nosignature: Do not check source of legitimacy
  --nodigest: Do not check package integrity
  --noscripts: package script does not execute


rpm包升级

{-U RPM | --upgrade} [the install-Options] PACKAGE_FILE ...
RPM {-F | --freshen} [the install-Options] PACKAGE_FILE ...
  upgrade: legacy package is installed, the "upgrade"
      if not legacy packages exist, the "install"
  freshens a: legacy package is installed, the "upgrade"
      If the package does not exist legacy upgrade operation is performed
  RPM -Uvh PACKAGE_FILE ...
  RPM -Fvh PACKAGE_FILE ...
  --oldpackage : downgrade
  --force: force the installation


包查询

  • rpm {-q | - Query} [options - options] [query - options]
  • [Options - options]
     -a: List all packages
       rpm -qa | grep dst fuzzy search installed packages name with dst packet
     -f: View the file specified by the installation package which generates
     rpm -qf / usr / bin / tree view tree file from which the rpm package to
     -p rpmfile: do query (followed by the file name, rather than the package name) for the package file has not been installed
     --whatprovides CAPABILITY: query specified CAPABILITY which is provided by the package
     --whatrequires cAPABILITY: query specified cAPABILITY be dependent on which package
      (example: rpm -q --whatrequires bash bash dependent on the ability to see the rpm package, after unloading bash bash dependent on the rpm package can not be used)
  • [Options - options] --changelog: Query the rpm package update log
     -c: query program configuration file
     -d: Archie program
     -i: info -l: View the specified program generated after the package install all the files
     - script: the script package comes
     --provides: CAPABILITY specified package lists provided
     -R: query the specified package depends CAPABILITY
  • Common query method
     -qi
     -qpi
     -qa
  • Pack Uninstall
    rpm {-e | --erase} [--allmatches ] [--nodeps] [--noscripts] [--notriggers] [--test] PACKAGE_NAME

rpm数据库:All data records source packets rpm installation, and a list of all files included in the package

  • Database rebuild
     / var / lib / rpm
  • {--initdb RPM | --rebuilddb}
     initdb: Initialization
      If the database does not exist beforehand, then the newly
      Otherwise, do nothing
     rebuilddb: reconstruction of the installed directory database index header

yum

Basic usage:

1, the installation rpm package:
yum the install package the RPM

2, delete the rpm package, including the package has a dependency package:
yum the Remove the package name

3, check for updates rpm package:
yum-Update Check

4, update all rpm packages:
yum Update

5, update the specified rpm package:
yum Update package name

6, large-scale upgrade version:
yum upgrade

7, listing all the information repository can install or update rpm package: yum info

8, lists the specific repository and can be installed or updated information has been installed rpm package:
yum info package name

9, lists all the information repository can update rpm package:
yum info the Updates

10, lists all installed rpm packages of information:
yum info Installed

11, lists the installed rpm package but does not include the information in the repository:

yum info package name

12, lists the repository can update all rpm packages:
yum the Updates List

13, lists all installed rpm package:
yum List Installed

14, lists have been installed but is not included in the rpm package repository:
yum List Extras

15. List all can be installed or updated repository rpm package:
yum List

16, lists the specific repository can be installed or updated and installed rpm package:
yum package name List

17, search for matching details of the specific character of the rpm package:
yum package name Search

18, search for a specific file name contains the rpm package:
yum the Provides package name

19, remove the temporary file rpm package:
yum Clean Packages Standard Package

20, remove the temporary head of the rpm file:
yum Clean headers

21, remove the old temporary storage of old files rpm:
yum Clean oldheaders

22, remove the temporary files in the old head and rpm package file:
yum yum clean all or Clean

Guess you like

Origin www.cnblogs.com/qige-11/p/10963163.html
Recommended