"Yum and rpm" personal use of the method to record

Source: Internet
Author: User

"Yum and rpm" personal use of the method to record

Yum and RPM are profound, and I have not studied it in detail except for simple usage. 1, search and query Yum search zabbix use the specified repo source to search: yum search --disablerepo= ' * '  --enablerepo= office zabbix    Query system installed RPM Package: Rpm -qa |grep mysql Query RPM Package whether there is bugfix:rpm -q  --changelog openssl |more query A list of files within a RPM: [[EMAIL PROTECTED] PKGS]# RPM -QPL  office-repo-latest-6-1.el6.x86_64.rpm /etc/yum.repos.d/local-office.repo query for information within a RPM:[[email  protected] pkgs]# rpm -qpi office-repo-latest-6-1.el6.x86_64.rpm  name         : office-repo-latest            Relocations: / Version     : 6                                   vendor: [email protected]release     : 1.el6                          build  Date: Thu 06 Aug 2015 04:53:26 PM CSTInstall Date:  (not  installed)                 build host: tvm-saltmastergroup       : default                         Source RPM: office-repo-latest-6-1.el6.src.rpmSize         : 2392                              License:  unknownsignature   :  (None) packager    : pcurl          : http://example.com/no-uri-givensummary     : provide file:  [local-office.repo] for local users. include: centos-base, eple,  user-define rpmsdescription :p rovide file: [local-office.repo] for local  USERS. INCLUDE: CENTOS-BASE, EPLE, USER-DEFINE RPMS2, installation Yum install lrzsz  screenyum groupinstall  "Development tools" yum --enablerepo=epel install  Iftop Install local RPM files: rpm -ivh xxx.rpm  --nodeps parameter, do not check dependencies between software:rpm -ivh --nodeps  xxx.rpm 3, update Yum -y update openssl If yum udpate, prompt timeout,errno 12  Then update when prompted not to have an upgrade package available, No packages marked for update might as well try:yum clean allyum  Makecache Update an RPM package: RPM -UVH XXX.RPM&NBsp; 4, uninstall Yum remove lrzsz If you encounter dependencies, you can also force the deletion: rpm -e --nodeps xxx 5, Usage of other repoquery:[[email protected] ~]# repoquery --plugins --queryformat  '%{NAME} _|-%{version}_|-%{release}_|-%{arch}_|-%{repoid} '  --disablerepo= ' * '  --enablerepo= ' Office,base,repo '   --all --quiet --whatprovides phpphp_|-5.3.3_|-40.el6_6_|-x86_64_|-basephp_|-5.3.3_| -40.el6_6_|-x86_64_|-base


"Yum and rpm" personal use of the method to record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.