标签:64bit host testing prim ble mirrors res efi localhost
[root@localhost ~]# mount /dev/cdrom /mnt mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]# ls /mnt CentOS_BuildTag GPL LiveOS RPM-GPG-KEY-CentOS-7 EFI images Packages RPM-GPG-KEY-CentOS-Testing-7 EULA isolinux repodata TRANS.TBL [root@localhost ~]# cd /etc/yum.repos.d/ [root@localhost yum.repos.d]# ls CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo [root@localhost yum.repos.d]# mv CentOS-Media.repo a [root@localhost yum.repos.d]# ls a CentOS-Debuginfo.repo CentOS-Vault.repo CentOS-Base.repo CentOS-fasttrack.repo CentOS-CR.repo CentOS-Sources.repo [root@localhost yum.repos.d]# rm -rf C* [root@localhost yum.repos.d]# ls a [root@localhost yum.repos.d]# mv a CentOS-Media.repo [root@localhost yum.repos.d]# vi CentOS-Media.repo file:///media/cdrom/ baseurl=file:///media/CentOS/ # CentOS-Media.repo # # This repo can be used with mounted DVD media, verify the mount point for # CentOS-7. You can use this repo and yum to install items directly off the # DVD ISO that we release. # # To use this repo, put in your DVD and use it with the other repos too: # yum --enablerepo=c7-media [command] # # or for ONLY the media repo, do this: # # yum --disablerepo=\* --enablerepo=c7-media [command] [c7-media] name=CentOS-$releasever - Media baseurl=file:///mnt gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 ~ ~ ~ "CentOS-Media.repo" 20L, 557C written [root@localhost yum.repos.d]# rpm -q nfs-utils package nfs-utils is not installed [root@localhost yum.repos.d]# rpm -qa nfs-* [root@localhost yum.repos.d]# yum -y install nfs-utils Loaded plugins: fastestmirror c7-media | 3.6 kB 00:00 (1/2): c7-media/group_gz | 155 kB 00:00 (2/2): c7-media/primary_db | 2.8 MB 00:00 Determining fastest mirrors Resolving Dependencies --> Running transaction check ---> Package nfs-utils.x86_64 1:1.3.0-0.21.el7 will be installed --> Processing Dependency: libtirpc >= 0.2.3-1 for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: gssproxy >= 0.3.0-0 for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: rpcbind for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: quota for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: keyutils for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.21.el7.x86_64 --> Running transaction check ---> Package gssproxy.x86_64 0:0.4.1-7.el7 will be installed --> Processing Dependency: libverto-tevent for package: gssproxy-0.4.1-7.el7.x86_64 --> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.4.1-7.el7.x86_64 --> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64 --> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64 --> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64 --> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64 ---> Package keyutils.x86_64 0:1.5.8-3.el7 will be installed ---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed ---> Package libnfsidmap.x86_64 0:0.25-12.el7 will be installed ---> Package libtirpc.x86_64 0:0.2.4-0.6.el7 will be installed ---> Package quota.x86_64 1:4.01-11.el7 will be installed --> Processing Dependency: quota-nls = 1:4.01-11.el7 for package: 1:quota-4.01-11.el7.x86_64 --> Processing Dependency: tcp_wrappers for package: 1:quota-4.01-11.el7.x86_64 ---> Package rpcbind.x86_64 0:0.2.0-32.el7 will be installed --> Running transaction check ---> Package libbasicobjects.x86_64 0:0.1.1-25.el7 will be installed ---> Package libcollection.x86_64 0:0.6.2-25.el7 will be installed ---> Package libini_config.x86_64 0:1.2.0-25.el7 will be installed --> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.2.0-25.el7.x86_64 --> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.2.0-25.el7.x86_64 ---> Package libref_array.x86_64 0:0.1.5-25.el7 will be installed ---> Package libverto-tevent.x86_64 0:0.2.5-4.el7 will be installed --> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64 --> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64 --> Processing Dependency: libtevent.so.0()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64 --> Processing Dependency: libtalloc.so.2()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64 ---> Package quota-nls.noarch 1:4.01-11.el7 will be installed ---> Package tcp_wrappers.x86_64 0:7.6-77.el7 will be installed --> Running transaction check ---> Package libpath_utils.x86_64 0:0.2.1-25.el7 will be installed ---> Package libtalloc.x86_64 0:2.1.2-1.el7 will be installed ---> Package libtevent.x86_64 0:0.9.25-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: nfs-utils x86_64 1:1.3.0-0.21.el7 c7-media 370 k Installing for dependencies: gssproxy x86_64 0.4.1-7.el7 c7-media 84 k keyutils x86_64 1.5.8-3.el7 c7-media 54 k libbasicobjects x86_64 0.1.1-25.el7 c7-media 24 k libcollection x86_64 0.6.2-25.el7 c7-media 40 k libevent x86_64 2.0.21-4.el7 c7-media 214 k libini_config x86_64 1.2.0-25.el7 c7-media 59 k libnfsidmap x86_64 0.25-12.el7 c7-media 46 k libpath_utils x86_64 0.2.1-25.el7 c7-media 27 k libref_array x86_64 0.1.5-25.el7 c7-media 26 k libtalloc x86_64 2.1.2-1.el7 c7-media 31 k libtevent x86_64 0.9.25-1.el7 c7-media 32 k libtirpc x86_64 0.2.4-0.6.el7 c7-media 85 k libverto-tevent x86_64 0.2.5-4.el7 c7-media 9.0 k quota x86_64 1:4.01-11.el7 c7-media 176 k quota-nls noarch 1:4.01-11.el7 c7-media 89 k rpcbind x86_64 0.2.0-32.el7 c7-media 57 k tcp_wrappers x86_64 7.6-77.el7 c7-media 78 k Transaction Summary ================================================================================ Install 1 Package (+17 Dependent packages) Total download size: 1.5 M Installed size: 4.3 M Downloading packages: warning: /mnt/Packages/gssproxy-0.4.1-7.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for gssproxy-0.4.1-7.el7.x86_64.rpm is not installed -------------------------------------------------------------------------------- Total 2.8 MB/s | 1.5 MB 00:00 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key)标签:64bit host testing prim ble mirrors res efi localhost
原文地址:https://www.cnblogs.com/987m/p/11080808.html