Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save amalkh5/66e5ce25a6b8c941477a1de3df9140ff to your computer and use it in GitHub Desktop.

Select an option

Save amalkh5/66e5ce25a6b8c941477a1de3df9140ff to your computer and use it in GitHub Desktop.
RHEL cheat sheet
  1. Move the default yum repository to another folder
mv /etc/yum.repos.d/*.repo /tmp/
  1. Create and edit a new config file
sudo nano /etc/yum.repos.d/remote.repo
  1. Add the following in the file
[remote]

name=RHEL Apache

baseurl=http://192.168.1.10

enabled=1

gpgcheck=0

  1. Test the configuration by running the following command
sudo yum install pkg-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment