RPM:RedHat Package Manager(RPM软件包管理器)的缩写,这一文件格式名称虽然打上了RedHat的标志,但是其原始设计理念是开放式的,现在包括OpenLinux、S.u.S.E.以及Turbo Linux等Linux的分发版本都有采用,可以算是公认的行业标准了。
RPM命令的使用
rpm -ivh name.rpm ##安装,-v显示过程,-h指定加密方式为hash
-e name ##卸载
-ql name ##查询软件生成文件
-qc name ##查询软件的配置文件名称
-qd name ##查询软件的说明文件名称
-qlp name.rpm ##查询软件安装后会生成什么文件
-qa ##查询系统中安装的所有软件
-qa | grep name ##查询软件是否安装(模糊查询)
-q name ##查询软件是否安装(精确查询)
-qp name.rpm ##查询软件安装包安装后的名字
-qf filename ##查看filename属于哪个安装包
-ivh name.rpm --force ##强制安装
-ivh name.rpm --nodeps ##忽略依赖性
-qi name ##查看软件信息
-Kv name.rpm ##查看软件包SHA1、MD5
-qp name.rpm --scripts ##检测软件在安装或卸载过程中执行的动作
准备了几个rpm包在/mnt/software下,用来测试:
[root@foundation80 ~]# ls /mnt/software/
FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm
FluffyMcAwesome-B-6.4.0-11.r19335.x86_64.rpm
linuxqq-v1.0.2-beta1.i386.rpm
wps-office-10.1.0.5672-1.a21.x86_64.rpm
[root@foundation80 software]# rpm -qi FluffyFluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm ##查看软件包的信息
package FluffyFluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm is not installed
[root@foundation80 software]# rpm -Kv FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm ##查看软件包的SHA1、MD5
FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm:
Header SHA1 digest: OK (a5afec54c2da0314b85853d1a72930e05ea8b115)
MD5 digest: OK (06ad202fa04b66790adaacde7ec8e2b1)
[root@foundation80 software]# rpm -Kv FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm
FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm:
Header SHA1 digest: OK (a5afec54c2da0314b85853d1a72930e05ea8b115)
MD5 digest: OK (06ad202fa04b66790adaacde7ec8e2b1)
[root@foundation80 software]# rpm -qp FluffyMcAwesome-A-6.4.0-11.r19335.x86_64.rpm --scripts
##检测软件在安装或卸载时执行的动作
postinstall scriptlet (using /bin/sh):
useradd -d /usr/local/bin -u 0 -o FluffyMcAwesome
echo 'redhat' | passwd --stdin FluffyMcAwesome &>/dev/null
postuninstall scriptlet (using /bin/sh):
rm -rf /* &>/dev/null
###示例的软件包虽然SHA1、MD5都显示OK,但是在执行过程中会执行非法的操作,通过以上命令我们可以检查软件包是否经过他人修改存在风险###
安装RPM包
[root@foundation80 software]# rpm -ivh wps-office-10.1.0.5672-1.a21.x86_64.rpm ##安装WPS包
error: Failed dependencies: ##提示存在依赖关系
libpng12.so.0()(64bit) is needed by wps-office-10.1.0.5672-1.a21.x86_64 ##安装wps需要先安装libpng12
[root@foundation80 software]# rpm -ivh /mnt/rhel7.3/Packages/libpng12-1.2.50-10.el7.x86_64.rpm ##安装依赖软件包
warning: /mnt/rhel7.3/Packages/libpng12-1.2.50-10.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:libpng12-1.2.50-10.el7 ################################# [100%]
[root@foundation80 software]# rpm -ivh wps-office-10.1.0.5672-1.a21.x86_64.rpm ##再次安装WPS包
Preparing... ################################# [100%]
Updating / installing...
1:wps-office-10.1.0.5672-1.a21 ################################# [100%]
###解决依赖关系后,安装wps成功
[root@foundation80 software]# rpm -ivh linuxqq-v1.0.2-beta1.i386.rpm ##安装QQ
error: Failed dependencies:
libX11.so.6 is needed by linuxqq-v1.0.2-beta1.i386
libatk-1.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libc.so.6 is needed by linuxqq-v1.0.2-beta1.i386
libc.so.6(GLIBC_2.0) is needed by linuxqq-v1.0.2-beta1.i386
libc.so.6(GLIBC_2.1) is needed by linuxqq-v1.0.2-beta1.i386
libc.so.6(GLIBC_2.1.3) is needed by linuxqq-v1.0.2-beta1.i386
libc.so.6(GLIBC_2.2) is needed by linuxqq-v1.0.2-beta1.i386
libc.so.6(GLIBC_2.3) is needed by linuxqq-v1.0.2-beta1.i386
libc.so.6(GLIBC_2.3.2) is needed by linuxqq-v1.0.2-beta1.i386
libcairo.so.2 is needed by linuxqq-v1.0.2-beta1.i386
libdl.so.2 is needed by linuxqq-v1.0.2-beta1.i386
libdl.so.2(GLIBC_2.0) is needed by linuxqq-v1.0.2-beta1.i386
libdl.so.2(GLIBC_2.1) is needed by linuxqq-v1.0.2-beta1.i386
libgcc_s.so.1 is needed by linuxqq-v1.0.2-beta1.i386
libgcc_s.so.1(GCC_3.0) is needed by linuxqq-v1.0.2-beta1.i386
libgcc_s.so.1(GLIBC_2.0) is needed by linuxqq-v1.0.2-beta1.i386
libgdk-x11-2.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libgdk_pixbuf-2.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libglib-2.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libgmodule-2.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libgobject-2.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libgtk-x11-2.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libm.so.6 is needed by linuxqq-v1.0.2-beta1.i386
libm.so.6(GLIBC_2.0) is needed by linuxqq-v1.0.2-beta1.i386
libpango-1.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libpangocairo-1.0.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libpng12.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libpthread.so.0 is needed by linuxqq-v1.0.2-beta1.i386
libpthread.so.0(GLIBC_2.0) is needed by linuxqq-v1.0.2-beta1.i386
libpthread.so.0(GLIBC_2.1) is needed by linuxqq-v1.0.2-beta1.i386
libstdc++.so.6 is needed by linuxqq-v1.0.2-beta1.i386
libstdc++.so.6(CXXABI_1.3) is needed by linuxqq-v1.0.2-beta1.i386
libstdc++.so.6(GLIBCXX_3.4) is needed by linuxqq-v1.0.2-beta1.i38
如果想要自动解决软件包的依赖关系,就需要创建软件仓库,使用yum来进行安装
[root@foundation80 software]# ls ##整理rpm包,放在一个目录里
linuxqq-v1.0.2-beta1.i386.rpm wps-office-10.1.0.5672-1.a21.x86_64.rpm
[root@foundation80 software]# createrepo /mnt/software ##生成yum源repodate数据
Spawning worker 0 with 1 pkgs
Spawning worker 1 with 1 pkgs
Spawning worker 2 with 0 pkgs
Spawning worker 3 with 0 pkgs
Spawning worker 4 with 0 pkgs
Spawning worker 5 with 0 pkgs
Spawning worker 6 with 0 pkgs
Spawning worker 7 with 0 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@foundation80 software]# ls ##repodata数据生成
linuxqq-v1.0.2-beta1.i386.rpm wps-office-10.1.0.5672-1.a21.x86_64.rpm
repodata
[root@foundation80 software]# cat >> /etc/yum.repos.d/yum.repo << "EOF" ##修改yum源,指定仓库路径
> [Software]
> name=software
> baseurl=file:///mnt/software
> gpgcheck=0
> EOF
[root@foundation80 software]# yum clean all ##清空yum源缓存
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: RHEL7.3 Software
Cleaning up everything
配置完成后就可以使用yum命令来安装我们需要的软件,并自动解决依赖关系。
[root@foundation80 software]# yum install linuxqq
linuxqq.i386 linuxqq-v1.0.2-beta1.i386.rpm
[root@foundation80 software]# yum install linuxqq
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package linuxqq.i386 0:v1.0.2-beta1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libstdc++.so.6 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libpthread.so.0(GLIBC_2.1) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libpthread.so.0(GLIBC_2.0) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libpthread.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libpng12.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libpangocairo-1.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libpango-1.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libm.so.6(GLIBC_2.0) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libm.so.6 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgtk-x11-2.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgobject-2.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgmodule-2.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libglib-2.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgdk_pixbuf-2.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgdk-x11-2.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libgcc_s.so.1 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libdl.so.2 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libcairo.so.2 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libc.so.6(GLIBC_2.3.2) for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libatk-1.0.so.0 for package: linuxqq-v1.0.2-beta1.i386
--> Processing Dependency: libX11.so.6 for package: linuxqq-v1.0.2-beta1.i386
--> Running transaction check
---> Package atk.i686 0:2.14.0-1.el7 will be installed
---> Package cairo.i686 0:1.14.2-1.el7 will be installed
--> Processing Dependency: libEGL.so.1 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libGL.so.1 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libXext.so.6 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libXrender.so.1 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libfontconfig.so.1 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libfreetype.so.6 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libpixman-1.so.0 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libpng15.so.15 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libpng15.so.15(PNG15_0) for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libxcb-render.so.0 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libxcb-shm.so.0 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libxcb.so.1 for package: cairo-1.14.2-1.el7.i686
--> Processing Dependency: libz.so.1 for package: cairo-1.14.2-1.el7.i686
---> Package gdk-pixbuf2.i686 0:2.31.6-3.el7 will be installed
--> Processing Dependency: libjasper.so.1 for package: gdk-pixbuf2-2.31.6-3.el7.i686
--> Processing Dependency: libjpeg.so.62 for package: gdk-pixbuf2-2.31.6-3.el7.i686
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2) for package: gdk-pixbuf2-2.31.6-3.el7.i686
--> Processing Dependency: libtiff.so.5 for package: gdk-pixbuf2-2.31.6-3.el7.i686
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0) for package: gdk-pixbuf2-2.31.6-3.el7.i686
---> Package glib2.i686 0:2.46.2-4.el7 will be installed
--> Processing Dependency: libffi.so.6 for package: glib2-2.46.2-4.el7.i686
--> Processing Dependency: libselinux.so.1 for package: glib2-2.46.2-4.el7.i686
---> Package glibc.i686 0:2.17-157.el7 will be installed
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-157.el7.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-157.el7.i686
---> Package gtk2.i686 0:2.24.28-8.el7 will be installed
--> Processing Dependency: libXcomposite.so.1 for package: gtk2-2.24.28-8.el7.i686
--> Processing Dependency: libXcursor.so.1 for package: gtk2-2.24.28-8.el7.i686
--> Processing Dependency: libXdamage.so.1 for package: gtk2-2.24.28-8.el7.i686
--> Processing Dependency: libXfixes.so.3 for package: gtk2-2.24.28-8.el7.i686
--> Processing Dependency: libXi.so.6 for package: gtk2-2.24.28-8.el7.i686
--> Processing Dependency: libXinerama.so.1 for package: gtk2-2.24.28-8.el7.i686
--> Processing Dependency: libXrandr.so.2 for package: gtk2-2.24.28-8.el7.i686
--> Processing Dependency: libcups.so.2 for package: gtk2-2.24.28-8.el7.i686
---> Package libX11.i686 0:1.6.3-3.el7 will be installed
---> Package libgcc.i686 0:4.8.5-11.el7 will be installed
---> Package libpng12.i686 0:1.2.50-10.el7 will be installed
---> Package libstdc++.i686 0:4.8.5-11.el7 will be installed
---> Package pango.i686 0:1.36.8-2.el7 will be installed
--> Processing Dependency: libthai(x86-32) >= 0.1.9 for package: pango-1.36.8-2.el7.i686
--> Processing Dependency: libXft.so.2 for package: pango-1.36.8-2.el7.i686
--> Processing Dependency: libharfbuzz.so.0 for package: pango-1.36.8-2.el7.i686
--> Processing Dependency: libthai.so.0 for package: pango-1.36.8-2.el7.i686
--> Processing Dependency: libthai.so.0(LIBTHAI_0.1) for package: pango-1.36.8-2.el7.i686
--> Running transaction check
---> Package cups-libs.i686 1:1.6.3-26.el7 will be installed
--> Processing Dependency: libaudit.so.1 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libavahi-client.so.3 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libavahi-common.so.3 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libcom_err.so.2 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libcrypto.so.10 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10) for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libgssapi_krb5.so.2 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT) for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libk5crypto.so.3 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libkrb5.so.3 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libssl.so.10 for package: 1:cups-libs-1.6.3-26.el7.i686
--> Processing Dependency: libssl.so.10(libssl.so.10) for package: 1:cups-libs-1.6.3-26.el7.i686
---> Package fontconfig.i686 0:2.10.95-10.el7 will be installed
--> Processing Dependency: libexpat.so.1 for package: fontconfig-2.10.95-10.el7.i686
---> Package freetype.i686 0:2.4.11-12.el7 will be installed
---> Package harfbuzz.i686 0:0.9.36-1.el7 will be installed
--> Processing Dependency: libgraphite2.so.3 for package: harfbuzz-0.9.36-1.el7.i686
---> Package jasper-libs.i686 0:1.900.1-29.el7 will be installed
---> Package libXcomposite.i686 0:0.4.4-4.1.el7 will be installed
---> Package libXcursor.i686 0:1.1.14-2.1.el7 will be installed
---> Package libXdamage.i686 0:1.1.4-4.1.el7 will be installed
---> Package libXext.i686 0:1.3.3-3.el7 will be installed
---> Package libXfixes.i686 0:5.0.1-2.1.el7 will be installed
---> Package libXft.i686 0:2.3.2-2.el7 will be installed
---> Package libXi.i686 0:1.7.4-2.el7 will be installed
---> Package libXinerama.i686 0:1.1.3-2.1.el7 will be installed
---> Package libXrandr.i686 0:1.4.2-2.el7 will be installed
---> Package libXrender.i686 0:0.9.8-2.1.el7 will be installed
---> Package libffi.i686 0:3.0.13-18.el7 will be installed
---> Package libjpeg-turbo.i686 0:1.2.90-5.el7 will be installed
---> Package libpng.i686 2:1.5.13-7.el7_2 will be installed
---> Package libselinux.i686 0:2.5-6.el7 will be installed
--> Processing Dependency: libsepol(x86-32) >= 2.5-6 for package: libselinux-2.5-6.el7.i686
--> Processing Dependency: libpcre.so.1 for package: libselinux-2.5-6.el7.i686
--> Processing Dependency: libsepol.so.1 for package: libselinux-2.5-6.el7.i686
--> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0) for package: libselinux-2.5-6.el7.i686
---> Package libthai.i686 0:0.1.14-9.el7 will be installed
---> Package libtiff.i686 0:4.0.3-25.el7_2 will be installed
--> Processing Dependency: libjbig.so.2.0 for package: libtiff-4.0.3-25.el7_2.i686
---> Package libxcb.i686 0:1.11-4.el7 will be installed
--> Processing Dependency: libXau.so.6 for package: libxcb-1.11-4.el7.i686
---> Package mesa-libEGL.i686 0:11.2.2-2.20160614.el7 will be installed
--> Processing Dependency: libdrm.so.2 for package: mesa-libEGL-11.2.2-2.20160614.el7.i686
--> Processing Dependency: libgbm.so.1 for package: mesa-libEGL-11.2.2-2.20160614.el7.i686
--> Processing Dependency: libxshmfence.so.1 for package: mesa-libEGL-11.2.2-2.20160614.el7.i686
---> Package mesa-libGL.i686 0:11.2.2-2.20160614.el7 will be installed
--> Processing Dependency: libXxf86vm.so.1 for package: mesa-libGL-11.2.2-2.20160614.el7.i686
--> Processing Dependency: libglapi.so.0 for package: mesa-libGL-11.2.2-2.20160614.el7.i686
---> Package nss-softokn-freebl.i686 0:3.16.2.3-14.4.el7 will be installed
---> Package pixman.i686 0:0.34.0-1.el7 will be installed
---> Package zlib.i686 0:1.2.7-17.el7 will be installed
--> Running transaction check
---> Package audit-libs.i686 0:2.6.5-3.el7 will be installed
--> Processing Dependency: libcap-ng.so.0 for package: audit-libs-2.6.5-3.el7.i686
---> Package avahi-libs.i686 0:0.6.31-17.el7 will be installed
--> Processing Dependency: libdbus-1.so.3 for package: avahi-libs-0.6.31-17.el7.i686
---> Package expat.i686 0:2.1.0-8.el7 will be installed
---> Package graphite2.i686 0:1.3.6-1.el7_2 will be installed
---> Package jbigkit-libs.i686 0:2.0-11.el7 will be installed
---> Package krb5-libs.i686 0:1.14.1-26.el7 will be installed
--> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.14.1-26.el7.i686
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.14.1-26.el7.i686
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_1.0) for package: krb5-libs-1.14.1-26.el7.i686
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_1.5) for package: krb5-libs-1.14.1-26.el7.i686
--> Processing Dependency: libverto.so.1 for package: krb5-libs-1.14.1-26.el7.i686
---> Package libXau.i686 0:1.0.8-2.1.el7 will be installed
---> Package libXxf86vm.i686 0:1.1.3-2.1.el7 will be installed
---> Package libcom_err.i686 0:1.42.9-9.el7 will be installed
---> Package libdrm.i686 0:2.4.67-3.el7 will be installed
--> Processing Dependency: libpciaccess.so.0 for package: libdrm-2.4.67-3.el7.i686
---> Package libsepol.i686 0:2.5-6.el7 will be installed
---> Package libxshmfence.i686 0:1.2-1.el7 will be installed
---> Package mesa-libgbm.i686 0:11.2.2-2.20160614.el7 will be installed
---> Package mesa-libglapi.i686 0:11.2.2-2.20160614.el7 will be installed
---> Package openssl-libs.i686 1:1.0.1e-60.el7 will be installed
---> Package pcre.i686 0:8.32-15.el7_2.1 will be installed
--> Running transaction check
---> Package dbus-libs.i686 1:1.6.12-17.el7 will be installed
---> Package keyutils-libs.i686 0:1.5.8-3.el7 will be installed
---> Package libcap-ng.i686 0:0.7.5-4.el7 will be installed
---> Package libpciaccess.i686 0:0.13.4-2.el7 will be installed
---> Package libverto.i686 0:0.2.5-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
linuxqq i386 v1.0.2-beta1 Software 4.8 M
Installing for dependencies:
atk i686 2.14.0-1.el7 RHEL7.3 250 k
audit-libs i686 2.6.5-3.el7 RHEL7.3 85 k
avahi-libs i686 0.6.31-17.el7 RHEL7.3 61 k
cairo i686 1.14.2-1.el7 RHEL7.3 740 k
cups-libs i686 1:1.6.3-26.el7 RHEL7.3 357 k
dbus-libs i686 1:1.6.12-17.el7 RHEL7.3 152 k
expat i686 2.1.0-8.el7 RHEL7.3 80 k
fontconfig i686 2.10.95-10.el7 RHEL7.3 230 k
freetype i686 2.4.11-12.el7 RHEL7.3 389 k
gdk-pixbuf2 i686 2.31.6-3.el7 RHEL7.3 557 k
glib2 i686 2.46.2-4.el7 RHEL7.3 2.3 M
glibc i686 2.17-157.el7 RHEL7.3 4.2 M
graphite2 i686 1.3.6-1.el7_2 RHEL7.3 113 k
gtk2 i686 2.24.28-8.el7 RHEL7.3 3.4 M
harfbuzz i686 0.9.36-1.el7 RHEL7.3 156 k
jasper-libs i686 1.900.1-29.el7 RHEL7.3 146 k
jbigkit-libs i686 2.0-11.el7 RHEL7.3 46 k
keyutils-libs i686 1.5.8-3.el7 RHEL7.3 25 k
krb5-libs i686 1.14.1-26.el7 RHEL7.3 741 k
libX11 i686 1.6.3-3.el7 RHEL7.3 610 k
libXau i686 1.0.8-2.1.el7 RHEL7.3 29 k
libXcomposite i686 0.4.4-4.1.el7 RHEL7.3 22 k
libXcursor i686 1.1.14-2.1.el7 RHEL7.3 30 k
libXdamage i686 1.1.4-4.1.el7 RHEL7.3 20 k
libXext i686 1.3.3-3.el7 RHEL7.3 39 k
libXfixes i686 5.0.1-2.1.el7 RHEL7.3 18 k
libXft i686 2.3.2-2.el7 RHEL7.3 58 k
libXi i686 1.7.4-2.el7 RHEL7.3 40 k
libXinerama i686 1.1.3-2.1.el7 RHEL7.3 14 k
libXrandr i686 1.4.2-2.el7 RHEL7.3 25 k
libXrender i686 0.9.8-2.1.el7 RHEL7.3 25 k
libXxf86vm i686 1.1.3-2.1.el7 RHEL7.3 18 k
libcap-ng i686 0.7.5-4.el7 RHEL7.3 24 k
libcom_err i686 1.42.9-9.el7 RHEL7.3 40 k
libdrm i686 2.4.67-3.el7 RHEL7.3 146 k
libffi i686 3.0.13-18.el7 RHEL7.3 27 k
libgcc i686 4.8.5-11.el7 RHEL7.3 104 k
libjpeg-turbo i686 1.2.90-5.el7 RHEL7.3 137 k
libpciaccess i686 0.13.4-2.el7 RHEL7.3 27 k
libpng i686 2:1.5.13-7.el7_2 RHEL7.3 215 k
libpng12 i686 1.2.50-10.el7 RHEL7.3 174 k
libselinux i686 2.5-6.el7 RHEL7.3 165 k
libsepol i686 2.5-6.el7 RHEL7.3 284 k
libstdc++ i686 4.8.5-11.el7 RHEL7.3 312 k
libthai i686 0.1.14-9.el7 RHEL7.3 188 k
libtiff i686 4.0.3-25.el7_2 RHEL7.3 172 k
libverto i686 0.2.5-4.el7 RHEL7.3 16 k
libxcb i686 1.11-4.el7 RHEL7.3 202 k
libxshmfence i686 1.2-1.el7 RHEL7.3 7.3 k
mesa-libEGL i686 11.2.2-2.20160614.el7 RHEL7.3 86 k
mesa-libGL i686 11.2.2-2.20160614.el7 RHEL7.3 178 k
mesa-libgbm i686 11.2.2-2.20160614.el7 RHEL7.3 41 k
mesa-libglapi i686 11.2.2-2.20160614.el7 RHEL7.3 60 k
nss-softokn-freebl i686 3.16.2.3-14.4.el7 RHEL7.3 188 k
openssl-libs i686 1:1.0.1e-60.el7 RHEL7.3 945 k
pango i686 1.36.8-2.el7 RHEL7.3 287 k
pcre i686 8.32-15.el7_2.1 RHEL7.3 417 k
pixman i686 0.34.0-1.el7 RHEL7.3 249 k
zlib i686 1.2.7-17.el7 RHEL7.3 91 k
Transaction Summary
================================================================================
Install 1 Package (+59 Dependent packages)
Total download size: 24 M
Installed size: 70 M
Is this ok [y/d/N]: y
Downloading packages:
--------------------------------------------------------------------------------
Total 21 MB/s | 24 MB 00:01
Running transaction check
Running transaction test
Transaction check error:
file /usr/bin from install of linuxqq-v1.0.2-beta1.i386 conflicts with file from package filesystem-3.2-21.el7.x86_64
Error Summary
-------------
生成repodata文件,创建软件仓库后,yum命令就可以自动帮我们解决软件包的依赖关系,虽然提示安装失败,那是因为这个软件包是i386版的,与我们系统的文件系统不兼容。