RHCE

How to Configure YUM Server in Linux Using ISO File?

In this article, I will explain how we can configure the yum server in Linux. with the help of  ISO file of RHEL. So to configure yum server in Linux we must have an iso file of RHEL. Iso file is required because we have to mount it in the /mnt directory in the Linux. After mounting it we have to extract the SERVER Directory in the root directory. So to understand complete process please follow the instructions given below-

What is Server Directory and Use of Server directory?

It is mapping directory provide lookup services to Network resources and addresses. It is the main file of an ISO file which allows user to communicate through the internet.

Mount ISO file of Linux in /mnt directory

[root@rdsaini^]#mount -o loop rhel54iso.iso /mnt

Change your directory root to /mnt

[root@rdsaini^]# cd  /mnt

Copy Server directory to root directory.

[root@rdsaini^]# cp -rv Server /root

YUM Server Configuration

Create a repository file with extension .repo

[root@rdsaini^]#vim /etc/yum.repos.d/a.repo

(Note – 1. a.repo is the name of the file.

2. vim is the editor and also used to create a new file. 

3. /etc/yum.repos.d   is the default repository file of YUM server.

 Make a file named a.repo with help of Vim Editor and type below command

Press I for insert and now type below command in vim editor.

[a]
baseurl=file:///root/Server
gpgcheck=0

(Now save above commands through below command)
Press ESC
:wq!
(type :, w for write or save file, q for quit, ! for forcefully)

Now you have successfully configured  YUM Server in Linux. You can check it by installing any package or repo. file

What is VIM Editor?

Vim is CLI (Command Line Interface) text editor used to edit textfiles. It is the most powerful editor tool in Linux. It is the advanced version of VI editor from UNIX. It has pre-set of instruction to operate it through the command line. In Linux the alternative of VIM editor like NANO, JOE, ECHO,etc.. 

To Download any package through  YUM Server.

[root@rdsaini^] yum install package* -y 

For example, if you want to install telnet package then you have to type below command

[root@rdsaini^] yum install telnet* -y 

 

In this post, we have learned How can we configure YUM Server in Linux. So, with the help of ISO file, we can configure YUM Server in Redhat. Guys if you have doubts or any queries with this post then don’t hesitate to contact me. And if you have any suggestions for me then please write to me in the comment box. I’ll get back to you as soon as possible. If you like my posts please share it with your friends

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s