我想在没有互联网连接的Redhat Linux VM中安装gcc编译器。使用Scp软件我正在下载rpm文件并移动到VM。我想知道什么是依赖rpm文件的gcc安装。我不想构建gcc,因为我是Linux的新手。
任何人都可以帮我解决这个问题吗?
答案 0 :(得分:2)
yum
手册:
<强> deplist 强>
生成所有依赖项的列表以及哪些包为给定的包提供了这些依赖项。
尝试像:
这样的somenthing$ yum deplist gcc
输出:
package: gcc.x86_64 4.8.5-4.el7
dependency: /bin/sh
provider: bash.x86_64 4.2.46-20.el7_2
dependency: /sbin/install-info
provider: info.x86_64 5.1-4.el7
dependency: binutils >= 2.20.51.0.2-12
provider: binutils.x86_64 2.23.52.0.1-55.el7
dependency: cpp = 4.8.5-4.el7
provider: cpp.x86_64 4.8.5-4.el7
dependency: glibc-devel >= 2.2.90-12
provider: glibc-devel.x86_64 2.17-106.el7_2.8
provider: glibc-devel.i686 2.17-106.el7_2.8
dependency: ld-linux-x86-64.so.2()(64bit)
provider: glibc.x86_64 2.17-106.el7_2.8
dependency: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
provider: glibc.x86_64 2.17-106.el7_2.8
dependency: libc.so.6(GLIBC_2.14)(64bit)
provider: glibc.x86_64 2.17-106.el7_2.8
dependency: libdl.so.2()(64bit)
provider: glibc.x86_64 2.17-106.el7_2.8
dependency: libdl.so.2(GLIBC_2.2.5)(64bit)
provider: glibc.x86_64 2.17-106.el7_2.8
dependency: libgcc >= 4.8.5-4.el7
provider: libgcc.x86_64 4.8.5-4.el7
provider: libgcc.i686 4.8.5-4.el7
dependency: libgcc_s.so.1()(64bit)
provider: libgcc.x86_64 4.8.5-4.el7
dependency: libgmp.so.10()(64bit)
provider: gmp.x86_64 1:6.0.0-12.el7_1
dependency: libgomp = 4.8.5-4.el7
provider: libgomp.x86_64 4.8.5-4.el7
provider: libgomp.i686 4.8.5-4.el7
dependency: libgomp.so.1()(64bit)
provider: libgomp.x86_64 4.8.5-4.el7
dependency: libm.so.6()(64bit)
provider: glibc.x86_64 2.17-106.el7_2.8
dependency: libmpc.so.3()(64bit)
provider: libmpc.x86_64 1.0.1-3.el7
dependency: libmpfr.so.4()(64bit)
provider: mpfr.x86_64 3.1.1-4.el7
dependency: libz.so.1()(64bit)
provider: zlib.x86_64 1.2.7-15.el7
dependency: rtld(GNU_HASH)
provider: glibc.x86_64 2.17-106.el7_2.8
provider: glibc.i686 2.17-106.el7_2.8
希望它有帮助!