Today I picked up Redhat again for the RHCE exam is coming soon.
After installing the basic system, meet problem, I need to do some DNS practice. But I don't like install the rpm package from DVD, I just want to yum it from the ISO source. So in order to make a good practice environment. I did the following steps:
1. mount the ISO file first and make it startup by system every time.
[root@redhat ~]# mkdir /mnt/win # I want to mount windows partition to win folder
[root@redhat ~]# mkdir /mnt/iso # I want to mount RHEL5 ISO to iso folder
[root@redhat ~]# chmode -R 777 /mnt/win /mnt/iso # make sure there's enough privilage to access these two folders
[root@redhat ~]# fdisk -l # Display all the partition
From the /etc/fstab, add this line:
/dev/hda1 /mnt/win ntfs umask=000 0 0 # This means to mount the NTFS partition when system startup
in /etc/rc.d/rc.local, add this line:
mount -o loop /mnt/win/ISO/rhel-5-server-i386-dvd.iso /mnt/iso # This means to mount ISO file to /mnt/iso folder when system startup
[root@redhat ~]# mount -a
[root@redhat ~]# /etc/rc.local # These two lines means to mount NTFS partition to /mnt/win first, then mount ISO file to /mnt/iso
2. Edit the repo file to make iso as yum source.
[root@redhat ~]# cd /etc/yum.repos.d
[root@redhat ~]# cp rhel-debuginfo.repo rhel-debuginfo.repo.bak # Backup the default repo file
[root@redhat ~]# vim rhel-debuginfo.repo
edit the repo file like this:
[Server]
name=Red Hat Enterprise Linux ISO image
baseurl=file:///mnt/iso/Server/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=VT
baseurl=file:///mnt/iso/VT/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Please pay attention to the path. After finish the repo file. you can use yum, but first you must check the update
[root@redhat ~]# yum check-update # If you find there are several 100% and no error, then everything will be fine!
[zz]http://zhouxuesong1980.blog.163.com/blog/static/76945154200932821525820/
分享到:
相关推荐
redhat7可用yum安装包和yum源
总的来说,`redhat7.9 + yum.repos.d` 和相关的`.repo`文件是RHEL 7.9系统管理和维护的重要组成部分。正确配置这些仓库可以帮助用户更高效地管理他们的系统,获取最新的安全更新,以及安装所需的软件包。
从描述中看到,提供的压缩包文件名是"RedHat9安装gcc.rar",这应该是包含GCC源码的压缩文件。你需要解压该文件,然后进入解压后的目录。 2. 使用`./configure`命令来配置GCC的编译环境,这个步骤会检测系统环境并...
#### 一、卸载RedHat自带的yum组件 首先,需要卸载RedHat系统自带的`yum`组件。这是因为原生的`yum`组件可能存在与后续安装的组件不兼容的问题。可以通过以下命令来完成卸载: ```bash rpm -qa | grep yum | xargs...
redhat6 版本yum安装所需要的依赖包,解决yum安装过程的问题
标题"Redhat 6.9 yum源的替换"表明我们要讨论如何为RHEL 6.9替换默认的yum源。描述中提到的“郁闷源”可能指的是官方源已经不再提供支持,而“163.repo”则是一个第三方的yum源,通常由网易提供,它包含了大量的...
### RedHat本地yum源配置及国内镜像源配置 #### 一、RedHat本地yum源配置 ##### 1. 环境准备与检查 **背景介绍:** Red Hat Enterprise Linux(RHEL)是一款广泛使用的Linux发行版,在企业级应用环境中非常受...
linux的在线更新包可使用 rpm -ivh yum-*.rpm安装 安装完之后比如你要安装GCC编译器:yum install gcc
在Red Hat Enterprise Linux (RHEL) 5操作系统中,`yum`(Yellowdog Updater, Modified)是默认的包管理器,它允许用户方便地安装、更新和管理软件包。这个压缩包文件“centos5--64”可能包含的是为RHEL 5的64位版本...
内含需要安装的rpm包和修改后的yum源配置。 python-urlgrabber-3.9.1-11.el6.noarch.rpm yum-3.2.29-40.el6.centos.noarch.rpm yum-metadata-parser-1.1.2-16.el6.i686.rpm yum-metadata-parser-1.1.2-16.el6.x86_64...
整理的可用于Redhat 7.5 的yum源,直接放到/etc/yum.repos.d 即可下载最新的yum
linux redhat yum 上海交大的CentOS更新源
在redhat9下直接安装yum ,不需其他关联文件
3. **上传镜像文件:** 将 Redhat 6.5 的 ISO 镜像文件通过 FTP 方式(确保为二进制模式)上传至 `/yum` 目录下。 #### 三、备份原有配置 在开始修改 Yum 的配置之前,首先需要备份现有的配置文件。这是因为如果新...
Red Hat Linux 配置 YUM 详解 Red Hat Linux 配置 YUM 详解是指在 Red Hat Linux 系统中,如何配置 YUM 软件包管理器,以便更好地管理系统中的软件包。YUM(Yellow dog Updater, Modified)是一款基于 RPM 包管理器...
自动化安装redhat yum 工具,省去寻找开源镜像,修改配置文件等繁琐过程,直接自动安装。 使用前请先自己将系统自带yum卸载, 卸载命令: rpm -qa|grep yum|xargs rpm -e -–nodeps
RedHat 6.2 yum 源配置方法 RedHat 6.2 是一个稳定且流行的 Linux 发行版,而 yum 是其默认的包管理器,用于安装、更新和卸载软件包。配置 yum 源是使用 yum 的前提条件,本文将指导您如何配置 RedHat 6.2 的 yum ...
在Linux操作系统中,尤其是Red Hat Enterprise Linux (RHEL)及其衍生版如CentOS,`yum`是用于管理和安装软件包的重要工具。然而,默认的yum源可能位于国外,导致下载速度较慢,影响了系统的更新和维护效率。因此,将...
根据提供的文件信息,本文将详细解析与“RedHat虚拟ISO下载地址”相关的知识点,包括RedHat Linux的基本介绍、ISO镜像文件的概念、选择合适版本的重要性以及如何安全地下载RedHat Linux ISO镜像等内容。 ### 一、...
RedHat7修改Yum源 RedHat 7 操作系统中,Yum 源是非常重要的组件之一。Yum 源提供了软件包的下载和安装功能,但是在某些情况下,可能需要修改 Yum 源来解决问题或提高下载速度。阿里云镜像站是一个非常流行的镜像...