"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