Skip to content

Instantly share code, notes, and snippets.

@apolloclark
Last active May 9, 2022 01:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save apolloclark/6a8f4f9dd6b5bcde076c766ae9123b6e to your computer and use it in GitHub Desktop.
Save apolloclark/6a8f4f9dd6b5bcde076c766ae9123b6e to your computer and use it in GitHub Desktop.
Redhat LInux cheat sheet

Redhat No-Cost Developer Subscription

https://developers.redhat.com/blog/2016/03/31/no-cost-rhel-developer-subscription-now-available/

https://developers.redhat.com/articles/frequently-asked-questions-no-cost-red-hat-enterprise-linux-developer-subscription/

  • one physical install, with up to 8 processor sockets
  • unlimited number of guest VM's

Redhat EOL dates

https://access.redhat.com/support/policy/updates/errata

Redhat ISO

https://access.redhat.com/solutions/104063

https://access.redhat.com/downloads/content/69/ver=/rhel---7/7.5%20Beta/x86_64/product-software

Redhat service control

http://www.linuxmail.info/how-to-start-stop-services-centos-6/

check RHEL version

cat /etc/redhat-release

uname -r

hostnamectl

check Virtualbox Guest Additions version

ls /opt | grep "VBox"

upgrade packages

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/chap-keeping_your_system_up-to-date

yum update

yum update --security

list services

/sbin/chkconfig ––list

register and active Red Hat subscription on the CLI

https://www.tecmint.com/enable-redhat-subscription-reposiories-and-updates-for-rhel-7/

subscription-manager register --username --password

ID = 213447f6-290f-4699-9c48-c4c59a0602cf

subscribe to repos

subscription-manager list --available

subscription-manager subscribe --pool=<pool_id>

subscription-manager subscribe --pool=8a85f98c615810120161582177020497

list all repos available for subscription

subscription-manager repos --list

list all repos available

yum repolist all

list all repos enabled

yum repolist

edit repo activation list

vi /etc/yum.repos.d/redhat.repo

yum cheat sheet

https://access.redhat.com/articles/yum-cheat-sheet

show installed packages

yum list installed

search for a package

yum search nano

show basic package info

yum list nano

show detailed package info

yum info nano

show available versions of a package

yum --showduplicates list nano

install a package, auto-yes

yum install -y nano

install a package, specific version, auto-yes

yum install -y -

install a package, using a local .rpm file

yum localinstall <package.rpm>

update all packages

yum update -y

update specific package

yum update -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment