Use
a Red Hat Enterprise Linux installation DVD as a base software
repository in RHEL-5x & 6x, either in the form of a physical
disc, or in the form of an ISO image file.
- If you are using a physical DVD, insert the disc into your computer.
- Create a mount point for the repository:
[root@yum6
~]# mkdir /home/repo
- where /home/repo is a location for the repository, for example,
- Mount the DVD on the mount point that you just created.
[root@yum6
~]# mount /dev/cdrom /home/repo/
- If you are using an ISO image file of a disc, mount the image file like this:
[root@yum6
~]# mount -o loop /var/ftp/pub/rhel6.iso /home/repo/
- If you are not sure whether a storage device is mounted, run the mount command to obtain a list of current mounts. If you are not sure of the device name or partition number of a storage device, run fdisk -l and try to identify it in the output.
- Create a new repo file in the /etc/yum.repos.d/ directory. The name of the file is not important, as long as it ends in .repo.
[root@yum6
~]# vi /etc/yum.repos.d/ser.repo
[server]
name=pkgs
baseurl=file:///home/repo/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
- save the file
- Now check your base repository with following command.
[root@yum6
~]# yum list | grep bind*
[root@yum6
~]# yum install bind -y
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.