Skip to content

Instantly share code, notes, and snippets.

@urbansky
Last active Jun 29, 2016
Embed
What would you like to do?
CentOS commands
# Start|Stop network devices
# configuration in '/etc/sysconfig/network-scripts'
ifup eth0
ifdown eth0
service network start (start|stop|restart)
# Edit init-scripts
ntsysv
# -------------------------
# Package manager
# -------------------------
# Search keyword
yum search
# Show information
yum info PACKAGE
# Install
yum install PACKAGE
# Remove
yum erase PACKAGE
# Install local package file
yum localinstall FILENAME
# List installed packages
rpm -qa
# Refresh package list
yum check-update
# Install updates
yum update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment