




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
一配置本地 YUM 源-1.1 实验环境RHEL6:虚拟机-1.2 挂载光驱rootredhat6 yum.repos.d# mount -o loop /root/Desktop/rhel-server-6.2-x86_64-dvd.iso.iso /mnt 备注:将光盘 ISO 文件挂载到目录 /mnt-1.3 创建本地目录,用来 copy 光盘包rootredhat6 local_repo# mkdir -p /opt/rpm/local_repo-1.4 copy RPM 包到指定目录rootredhat6 log# cd /mnt/Packages/rootredhat6 Packages# cp * /opt/rpm/local_repo-1.5 安装 包-1.5.1根据提示,安装需要的包rootredhat6 local_repo# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpmwarning: deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEYPreparing. # 100% 1:deltarpm # 100%rootredhat6 local_repo#rootredhat6 local_repo#rootredhat6 local_repo# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpmwarning: python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEYPreparing. # 100% 1:python-deltarpm # 100%rootredhat6 local_repo# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpmwarning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEYPreparing. # 100% 1:createrepo # 100% 备注:createrepo 包安装成功-1.6 创建 repo 数据库rootredhat6 local_repo#createrepo -d /opt/rpm/local_repo1944/2804 - MAKEDEV-3.24-6.el6.i686.rpmiso-8859-1 encoding on VilleSkytt?ville.skyttaiki.fi - 2.8.2-22804/2804 - perl-Archive-Extract-0.38-119.el6_1.1.i686.rpmSaving Primary metadataSaving file lists metadataSaving other metadataGenerating sqlite DBsSqlite DBs complete 备注:这个步骤需要点时间。-1.7 编写 /etc/yum.repos.d/local_repo.repo 文件 文件 /etc/yum.repos.d/local_repo.repo 内容如下。rhel-sourcename=Red Hat Enterprise Linux Local repo #仓库描述baseurl=file:/opt/rpm/local_repo #软件仓库位置enabled=1 #是否启用gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release #签名秘钥二 yum 源测试-2.1 查找 ruby 相关包rootredhat6 yum.repos.d#yum search rubyLoaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.Repository rhel-source is listed more than once in the configurationrhel-source | 2.7 kB 00:00 .rhel-source/primary_db | 2.5 MB 00:00 .= N/S Matched: ruby =ruby-irb.i686 : The Interactive Rubyyruby-libs.i686 : Libraries necessary to run Rubyruby-qpid.i686 : Ruby language client for AMQPruby-qpid-qmf.i686 : The QPID Management Framework bindings for rubyruby.i686 : An interpreter of object-oriented scripting languagesaslwrapper.i686 : Ruby and Python wrappers for the cyrus sasl library. Name and summary matches only, use search all for everything.-2.2 安装包 ruby.i68rootredhat6 yum.repos.d#yum install ruby.i686Loaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.Repository rhel-source is listed more than once in the configurationSetting up Install ProcessResolving Dependencies- Running transaction check- Package ruby.i686 0:52-3.el6 will be installed- Processing Dependency: ruby-libs = 52-3.el6 for package: ruby-52-3.el6.i686- Processing Dependency: libruby.so.1.8 for package: ruby-52-3.el6.i686- Running transaction check- Package ruby-libs.i686 0:52-3.el6 will be installed- Processing Dependency: libreadline.so.5 for package: ruby-libs-52-3.el6.i686- Running transaction check- Package compat-readline5.i686 0:5.2-17.1.el6 will be installed- Finished Dependency ResolutionDependencies Resolved=Package Arch Version Repository Size=Installing:ruby i686 52-3.el6 rhel-source 532 kInstalling for dependencies:compat-readline5 i686 5.2-17.1.el6 rhel-source 127 kruby-libs i686 52-3.el6 rhel-source 1.6 MTransaction Summary=Install 3 Package(s)Total download size: 2.3 MInstalled size: 7.7 MIs this ok y/N: yDownloading Packages:-Total 16 MB/s | 2.3 MB 00:00warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEYRetrieving key fromfile:/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseImporting GPG key 0xFD431D51:Userid : Red Hat, Inc. (release key 2) Package: redhat-release-server-6Server-.el6.i686 (anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseIs this ok y/N: yImporting GPG key 0x2FA658E0:Userid : Red Hat, Inc. (auxiliary key) Package: redhat-release-server-6Server-.el6.i686 (anaconda-RedHatEnterpriseLinux-201111171035.i386/6.2)From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseIs this ok y/N: yRunning rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum. Installing : compat-readline5-5.2-17.1.el6.i686 1/3 Installing : ruby-libs-52-3.el6.i686 2/3 Installing : ruby-52-3.el6.i686 3/3Installed products updated.Installed: ruby.i686 0:52-3.el6Dependency Installed: compat-readline5.i686 0:5.2-17.1.el6 ruby-libs.i686 0:52-3.el6Complete! 备注:本地 yum 源配置成功。-2.3 列出已安装的包rootredhat6 yum.repos.d#yum list | grep rubyinRepository rhel-source is listed more than once in the configurationruby.i686 52-3.el6 rhel-sourceruby-libs.i686 52-3.el6 rhel-sourceruby-irb.i686 52-3.el6 rhel-sourceruby-qpid.i686 0.7.946106-2.el6 rhel-sourceruby-qpid-qmf.i686 0.12-6.el6 rhel-source-2.4 查看包信息rootredhat6 yum.repos.d#yum info ruby.i686Loaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.Repository rhel-source is listed more than once in the configurationInstalled PackagesName : rubyArch : i686Version : 52Release : 3.el6Size : 1.8 MRepo : installedFrom repo : rhel-sourceSummary : An interpreter of object-oriented scripting languageURL :/License : Ruby or GPLv2Description : Ruby is the interpreted scripting language for quick and easy : object-oriented programming. It has many features to process text : files and to do system management tasks (as in Perl). It is simple, : straight-forward, and extensible.-2.5 删除 yum 缓存数据rootredhat6 yum.repos.d#yum clean allLoaded plugins: product-i
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 房地产开发项目合作框架协议模板
- 初中化学《金属和金属材料》
- 南宁市劳动合同书
- 顾客心理分析在新零售个性化服务中的应用
- 项目管理基础与工作实践
- 音乐产业中的品牌传播与数据挖掘
- 顾客服务在新零售中的重要作用及其对消费者忠诚度的影响
- 顾客体验提升新零售技术驱动下的转变
- 项目管理在新产品开发中的关键作用
- 革新购物体验AR试衣间的设计与用户体验分析
- 新疆维吾尔自治区竣工验收备案表格模板
- 边坡巡检记录表完整优秀版
- 《创新与创业基础》课程思政优秀教学案例(一等奖)
- 原子荧光分析(汞)原始记录2
- 北师大版五下书法《第6课戈字旁》课件
- 铁路TBT3089SNS柔性防护网技术手册
- (高清正版)T_CAGHP 054—2019 地质灾害治理工程质量检验评定标准(试行)
- 物流招标文件模板(完整版)
- 关于地理高考四大能力要求解读
- 空气动力学PPT课件
- 广西地方标准《闽楠栽培技术规程》(征求意见稿)
评论
0/150
提交评论