* fix: replace sh with shell fix replace terminal with shell fix replace node with js fix replace output with shell fix replace cs with csharp fix replace c++ with cpp fix replace c# with csharp fix replace javasctipt with js fix replace syntax with js fix replace unix with shell fix replace linux with shell fix replace java 8 with java fix replace swift4 with swift fix replace react.js with jsx fix replace javascriot with js fix replace javacsript with js fix replace c++ - with cpp fix: corrected various typos fix: replace Algorithm with nothing fix: replace xaml with xml fix: replace solidity with nothing fix: replace c++ with cpp fix: replace txt with shell fix: replace code with json and css fix: replace console with shell
46 lines
781 B
Markdown
46 lines
781 B
Markdown
---
|
|
title: Setting Up Yum Repositories in RedHat/CentOS Linux
|
|
---
|
|
|
|
YUM Repositories are warehouses of Linux software (RPM package files).
|
|
|
|
RPM package file is a Red Hat Package Manager file and enables quick and easy software installation on Red Hat/CentOS Linux.
|
|
|
|
## Setting Up Yum Repositories in RedHat CentOS Linux
|
|
|
|
Step 1: Check if there are existing repositories or not.
|
|
|
|
```shell
|
|
#yum repolist
|
|
```
|
|
|
|
You will find there is no repositories.
|
|
|
|
Step 2: Change Directory to
|
|
|
|
```shell
|
|
#cd /etc/yum.repos.d
|
|
```
|
|
|
|
Step 3: Create new file
|
|
|
|
```shell
|
|
#vim myrepo.repo
|
|
```
|
|
|
|
Step 4: Type following lines in file
|
|
|
|
```shell
|
|
[file-name]
|
|
name=filename
|
|
baseurl="location of yum repositories"
|
|
gpgcheck=0
|
|
```
|
|
Step 5: Save and Exit
|
|
|
|
Step 6: Repeat Step 1
|
|
|
|
```shell
|
|
You Will find repositories
|
|
```
|