???????????CentOS??????????RedHat???????棬??????????????????????????RedHat??????£????CentOs??е??????????????????rpm??yum?????
????RPM??????
????rpm????????????????????á??????????rpm?????RedHat????з??????????????????RedHat Package Managemer????????????????????????????????Linux???г???????????????????????????????rpm?????????RPM Package Manager??
??????????????CentOS??????yum????????rpm?????????????????????????yum?????????????????Щ????????????????????????????????????????????rpm????????????????rpm???а????????ú??
???????
????rpm {-i|–install} [install-options] PACKAGE_FILE…
????#???????????????????????rpm??????????
????-v:  ?????????????
????-h:  ??# ??????????????н???
????–test:  ??????????????????а????dry run ??
????–nodeps ?????????????
????–replacepkgs | replacefiles ???滻??????????????
????–nosignature:  ?????????????
????–nodigest ??????????????
????–noscripts ??????г???????
????????/????
????rpm {-U|–upgrade} [install-options]  PACKAGE_FILE …
????rpm {-F|–freshen} [install-options]   PACKAGE_FILE …
????upgrade ??????о??????????“????”?????????????????????“???”
????freshen ??????о??????????“????”????????????????????????????????
????–oldpackage ??????
????–force : ?????
?????????Linux????????????汾??????棬?????Щ????????????????????????????????????????汾??????????л???????????????????????У??????????????????????????????°???????????汾???????棬???????????????????????
???????
????rpm {-q|–query} [select-options] [query-options] [select-options]
????-a:  ?????????????????
????-f:  ???????????????????????????????
????-p??????δ???????????????в???????????-p???
????–whatprovides CAPABILITY ??????????CAPABILITY???????????
????–whatrequires CAPABILITY ?????????? CAPABILITY ?????????????
????–changelog ?????rpm ????changelog
????-c:  ???????????????
????-d:  ???????????
????-i: information
????-l:  ????????????????????? ???????
????–scripts ?????????? ????
????-R|–requires:  ???????????????????? CAPABILITY
????–provides:  ?г??????????????? CAPABILITY
????ж??
????rpm {-e|–erase}[–allmatches][–nodeps][–noscripts][–notriggers][–test] PACKAGE_NAME…
????У??
????rpm {-V|–verify} [select-options] [verify-options]  ??????????????У??
????У?????????????壺
????S  ?????С???????
????M  Mode ???(???????????????)
????5  MD5У?鷢?????
????D  ?豸??????
????L  readLink(2) ·???????
????U  User ??????????
????G  Group ??????????
????T  mTime ???
????P  capabilities ???????
????rpm -K|checksig rpmfile ??????????У?飬????????????????
????rpm –import / etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
????YUM???????
??????ù?yum?????????????????????rpm?????????????????????????yum???????????????????е???????????????????????????“???”??????????????????????б???????????y??????????????????????yum????????????????????????????????????????
????YUM: Yellowdog Update Modifier????Yellowdog?????????????rpm????????????????????????????е????????????Yum???????rpm????????????????rpm??yum?????????????????????yum?????????????????(??????????????????????????????????????????)??yum??????????????????????(????沿????????????)??
??????????????
????yum install package1 [package2] […]  ?????????????????????????????????????
????yum reinstall package1 [package2] […]  ???°??
????–nogpgcheck ?????????gpg check
????-y:  ???????“yes”
????-q ???????
????–noplugins ?????????в??
???????????????
????yum update [package1] [package2] […]
????yum downgrade package1 [package2] […]   ????
????????????????
????yum check-update
????ж????????
????yum remove | erase package1 [package2] […]
???????????????????????
????yum localinstall rpmfile1 [rpmfile2] […]   ( ??install ???)
????yum localupdate rpmfile1 [rpmfile2] […]  ( ??update ???)
???????????????????
????yum groupinstall group1 [group2] […]
????yum groupupdate group1 [group2] […]
????yum grouplist [hidden] [groupwildcard] […]
????yum groupremove group1 [group2] […]
????yum groupinfo group1 […]