[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) <security@centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-2.1511.el7.centos.2.10.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libbasicobjects-0.1.1-25.el7.x86_64 1/18
Installing : libtirpc-0.2.4-0.6.el7.x86_64 2/18
Installing : libref_array-0.1.5-25.el7.x86_64 3/18
Installing : libcollection-0.6.2-25.el7.x86_64 4/18
Installing : libtalloc-2.1.2-1.el7.x86_64 5/18
Installing : libtevent-0.9.25-1.el7.x86_64 6/18
Installing : libverto-tevent-0.2.5-4.el7.x86_64 7/18
Installing : rpcbind-0.2.0-32.el7.x86_64 8/18
Installing : libnfsidmap-0.25-12.el7.x86_64 9/18
Installing : 1:quota-nls-4.01-11.el7.noarch 10/18
Installing : keyutils-1.5.8-3.el7.x86_64 11/18
Installing : libevent-2.0.21-4.el7.x86_64 12/18
Installing : libpath_utils-0.2.1-25.el7.x86_64 13/18
Installing : libini_config-1.2.0-25.el7.x86_64 14/18
Installing : gssproxy-0.4.1-7.el7.x86_64 15/18
Installing : tcp_wrappers-7.6-77.el7.x86_64 16/18
Installing : 1:quota-4.01-11.el7.x86_64 17/18
Installing : 1:nfs-utils-1.3.0-0.21.el7.x86_64 18/18
Verifying : libini_config-1.2.0-25.el7.x86_64 1/18
Verifying : tcp_wrappers-7.6-77.el7.x86_64 2/18
Verifying : libverto-tevent-0.2.5-4.el7.x86_64 3/18
Verifying : libtalloc-2.1.2-1.el7.x86_64 4/18
Verifying : libcollection-0.6.2-25.el7.x86_64 5/18
Verifying : 1:nfs-utils-1.3.0-0.21.el7.x86_64 6/18
Verifying : libpath_utils-0.2.1-25.el7.x86_64 7/18
Verifying : libevent-2.0.21-4.el7.x86_64 8/18
Verifying : keyutils-1.5.8-3.el7.x86_64 9/18
Verifying : libref_array-0.1.5-25.el7.x86_64 10/18
Verifying : rpcbind-0.2.0-32.el7.x86_64 11/18
Verifying : libtirpc-0.2.4-0.6.el7.x86_64 12/18
Verifying : gssproxy-0.4.1-7.el7.x86_64 13/18
Verifying : 1:quota-nls-4.01-11.el7.noarch 14/18
Verifying : 1:quota-4.01-11.el7.x86_64 15/18
Verifying : libtevent-0.9.25-1.el7.x86_64 16/18
Verifying : libbasicobjects-0.1.1-25.el7.x86_64 17/18
Verifying : libnfsidmap-0.25-12.el7.x86_64 18/18 Installed:
nfs-utils.x86_64 1:1.3.0-0.21.el7 Dependency Installed:
gssproxy.x86_64 0:0.4.1-7.el7 keyutils.x86_64 0:1.5.8-3.el7
libbasicobjects.x86_64 0:0.1.1-25.el7 libcollection.x86_64 0:0.6.2-25.el7
libevent.x86_64 0:2.0.21-4.el7 libini_config.x86_64 0:1.2.0-25.el7
libnfsidmap.x86_64 0:0.25-12.el7 libpath_utils.x86_64 0:0.2.1-25.el7
libref_array.x86_64 0:0.1.5-25.el7 libtalloc.x86_64 0:2.1.2-1.el7
libtevent.x86_64 0:0.9.25-1.el7 libtirpc.x86_64 0:0.2.4-0.6.el7
libverto-tevent.x86_64 0:0.2.5-4.el7 quota.x86_64 1:4.01-11.el7
quota-nls.noarch 1:4.01-11.el7 rpcbind.x86_64 0:0.2.0-32.el7
tcp_wrappers.x86_64 0:7.6-77.el7 Complete!
[root@localhost yum.repos.d]# rpm -qa nfs-*
nfs-utils-1.3.0-0.21.el7.x86_64
[root@localhost yum.repos.d]# rpm -q nfs-utils
nfs-utils-1.3.0-0.21.el7.x86_64
[root@localhost yum.repos.d]#

本地软件仓库配置及NFS安装的更多相关文章

  1. Yum 软件仓库配置

    Yum 软件仓库的作用是为了进一步简化 RPM 管理软件的难度以及自动分析 所需软件包及其依赖关系的技术. 可以把 Yum 想象成是一个硕大的软件仓库,里面保存有几乎所 有常用的工具 . 第1步:进入 ...

  2. Kubernetes本地私有仓库配置

    实验环境 master 10.6.191.181 node1 10.6.191.182 node2 10.6.191.183 本地私有仓库 10.6.191.184 一.安装本地私有仓库 1.安装do ...

  3. linux光盘使用、rpm软件包、yum软件仓库安装使用

    转至:https://blog.51cto.com/zpeng/1532520 一.光盘文件使用 1,RHEL5(x86_64)光盘结构 Cluster              //集群二进制包 C ...

  4. 使用apt-mirror建立本地debian仓库源

    先介绍一下环境: 主机:Win7 虚拟机:VirtualBox + Debian7 由于软件源的体积比较大,所以我又给虚拟机添加了一块50GB的虚拟硬盘(给虚拟机添加虚拟硬盘的方法参见:http:// ...

  5. YUM仓库配置

    YUM的前身是YUP(Yellow dog Updater,Yellow dog Linux的软件更新器),最初由TSS公司(Terra Soft Solutions,INC.)使用Python语言开 ...

  6. Java开发环境配置(4)--Maven安装 环境变量配置,本地仓库配置---插件安装

    说明在前:本人用过的 luna  mars 等,都已经自带maven插件的了,以下有些文章是很老的,讲到maven插件的安装都可以忽略掉. maven安装eclipse在线配置maven搞定所有插件_ ...

  7. 关于yum网络版仓库(本地yum仓库的安装配置,如果没网了,做一个局域网内的yum仓库)

    2017-11-13 22:49:48 1:两种方式:   a.每一台机器都配一个本地文件系统上的yum仓库 file:///packege/path/ b.在局域网内部配置一台节点(server-b ...

  8. 配置本地 yum 仓库

    配置本地 yum 仓库 # yum 官网 http://yum.baseurl.org/ # yum 手册页 man yum man yum.conf SEE ALSO pkcon (1) yum.c ...

  9. mc02_配置本地git仓库并上传到github

    注册github账号 仔细阅读使用说明便可,这里提一下如何删除一个repository. 点击要删除的repository,打开后点击Settings 然后滚动到页面最下方,点击最后一个按钮 在弹出框 ...

随机推荐

  1. 【WPF】将控件事件中的参数,传递到ViewModel中

    在MVVM模式下,在通常使用命令(Command)绑定的方式的时候 ,使用的是 CommandParameter 属性进行参数的传递. 但是很多时候,有一些事件我们需要使用其中的一些事件里面的参数,以 ...

  2. 善用k8s explain

    使用kubectl explain来快速了解用法 例如 kubectl explain deployment.spec 或 kubectl explain deployment.spec.strate ...

  3. 解决小程序中Data.parse()获取时间戳IOS不兼容

    由于与后台接口必须对比时间戳所以首先得前台获取时间戳.刚开始是获取手机本地时间,但用户改了时间就废了..... 后来就从服务器上获取个时间再转换为时间戳(是不是很操蛋,先从服务器上获取在TM的自己比较 ...

  4. poj2112 二分最大流+Floyd

    题意:      一个农场主有一些奶牛,和一些机器,每台机器有自己的服务上限,就是一天最多能给多少头奶牛挤奶,给你任意两点的距离,问你让所有的奶牛都被挤奶时,奶牛于机器最远距离的最近是多少. 思路: ...

  5. SQLServer的XP_CmdShell提权

    当我们拿到了某个网站SQLServer数据库的SA权限用户密码的话,我们就可以使用XP_CmdShell提权了. 开启xp_cmdshell exec sp_configure 'show advan ...

  6. Portswigger web security academy:WebSockets

    Portswigger web security academy:WebSockets 目录 Portswigger web security academy:WebSockets Lab: Mani ...

  7. Docker为PHP安装gd扩展

    安装扩展库的通常命令 docker-php-ext-install 扩展库名 安装gd库需要特殊照顾,步骤如下 //进入PHP容器 //更新软件源 apt update //安装各种库 apt ins ...

  8. 全套office版本安装教程及下载地址

    1:office 2003 安装教程及下载地址 https://mp.weixin.qq.com/s/HHGFdiLgL-xhDAAlox2axw 2:office 2007 安装教程及下载地址 ht ...

  9. WireShark之抓telnet密码

    背景环境: 涉及到telnet和ssh知识的时候,必须要提的是telnet传输是明文的不安全的,传输的密码都会泄露,有兴趣来做个试验. 一:工具 ·①Windows 7 PC机:②GNS3:③Wire ...

  10. IO系列测试源码

    //IO系列测试源码(需要自取) using System; using System.CodeDom; using System.Collections.Generic; using System. ...