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 28, 2020 in Linux Administration by akhtar
• 38,260 points
2,160 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 28, 2020 by MD
• 95,460 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, 2020 in Linux Administration by akhtar
• 38,260 points
1,041 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, 2020 in Linux Administration by MD
• 95,460 points
996 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, 2020 in Linux Administration by MD
• 95,460 points
854 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, 2020 in Linux Administration by MD
• 95,460 points
1,745 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
1,180 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,266 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
843 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, 2020 in Linux Administration by MD
• 95,460 points
952 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, 2020 in Linux Administration by MD
• 95,460 points
1,027 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP