Skip to content

Instantly share code, notes, and snippets.

@andrewkroh
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewkroh/10339105 to your computer and use it in GitHub Desktop.
Save andrewkroh/10339105 to your computer and use it in GitHub Desktop.
How can we regularly update the system without internet connection?
https://access.redhat.com/site/solutions/29269
# register the system that is connected to RHN, directly or using a http proxy:
rhn_register --nox --proxy=1.2.3.4
# or use
subscription-manager register --user --password --auto-allow ?
# sync updates from channels
reposync -p /somedir --repoid=rhel-x86_64-server-5 -l
createrepo /somdir
tar czf repo.tgz /somedir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment