How to configure yum in RedHat system?

0 votes

Hi Guys,

I am new in RedHat operating system. Can anyone tell me how can I configure the yum server in my system?

Jul 27 in Linux Administration by akhtar
• 25,030 points
76 views

1 answer to this question.

0 votes

Hi@akhtar,

By default, RedHat has one ISO file. Inside this, you can find lots of Softwares. You just need to create one repository for these Softwares inside /etc/yum.repos.d/ folder.

[root@localhost ~]# vim /etc/yum.repos.d/yum.repo
[dvd]
baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-x86_64/AppStream
gpgcheck=0
[dvd1]
baseurl=file:///run/media/root/RHEL-8-0-0-BaseOS-x86_64/BaseOS
gpgcheck=0

To check the yum server is installed properly or not, you can use the yum repolist command.

[root@localhost ~]# yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use su                                                                                        bscription-manager to register.
Repository 'dvd' is missing name in configuration, using id.
Repository 'dvd1' is missing name in configuration, using id.
Last metadata expiration check: 0:03:39 ago on Mon 27 Jul 2020 11:11:38 PM IST.
repo id                                 repo name                         status
dvd                                                                       4,672
dvd1                                                                      1,658

answered Jul 27 by MD
• 56,480 points

Related Questions In Linux Administration

0 votes
1 answer

How to configure SSH server in RHEL/CentOS?

Hi@MD, To configure SSH server to your system, ...READ MORE

answered Mar 30 in Linux Administration by akhtar
• 25,030 points
95 views
+1 vote
1 answer

How to configure NFS server in Linux?

Hi@akhtar, To configure NFS server in your system, ...READ MORE

answered May 27 in Linux Administration by MD
• 56,480 points
99 views
0 votes
1 answer

How to install MySQL in Linux system?

Hi@akhtar, You need to install the software for ...READ MORE

answered Jul 26 in Linux Administration by MD
• 56,480 points
54 views
0 votes
1 answer

How to check permissions of a file in the Linux system?

Hi@akhtar, If you prefer using the command line, ...READ MORE

answered Aug 13 in Linux Administration by MD
• 56,480 points
69 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
184 views
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
155 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
104 views
0 votes
1 answer

How to configure FTP server in Linux System?

Hi@akhtar, You need to install vsftpd software in ...READ MORE

answered Jul 9 in Linux Administration by MD
• 56,480 points
65 views
0 votes
1 answer

How to install python-poster in RedHat?

Hi@akhtar, To install python-poster in RedHat/CentOs, you can ...READ MORE

answered Feb 11 in Linux Administration by MD
• 56,480 points
105 views