/ yum

yum

  1. 安装:
yum install postgresql.x86_64
yum -y install postgresql.x86_64
  1. 卸载:
yum remove  postgresql.x86_64
  1. 更新:
yum update postgresql.x86_64
  1. 搜索:
yum search firefox
  1. View all available packages using yum list:
yum list | less
  1. List only the installed packages using yum list installed:
yum list installed | less
  1. Which package does a file belong to? – Use yum provides:
yum provides /etc/sysconfig/nfs
  1. Display additional information about a package using yum info:
yum info git
  1. List available software groups using yum grouplist:
yum grouplist
  1. Install a specific software group using yum groupinstall:
yum groupinstall 'DNS Name Server'
  1. Upgrade an existing software group using groupupdate:
yum groupupdate 'Graphical Internet'
  1. Uninstall a software group using yum groupremove:
yum groupremove 'DNS Name Server'
  1. Display your current yum repositories:
yum repolist
yum repolist all