Yum package handling

From Bitbull Wiki
Jump to navigation Jump to search

install package and deps

yum install httpd

remove package and deps

yum remove php-mysql

update entire system and deps

yum upgrade

update all packges

yum update

update one package without question

yum -y update httpd

clean package cache

yum clean all

search for name in package-name and description

yum search gstream

search for name in package-name

yum list '*http*'

search for package which provides this comand

yum provides '*fortune'

list all package groups

yum grouplist

install package group

yum groupinstall XFCE

remove package group

yum remove "PostgreSQL Database"

downgrade package

yum --showduplicates list samba-common
yum downgrade package1 package2

version lock for package

yum -y install yum-versionlock
yum versionlock add samba\*

vi /etc/yum.conf
exclude=*samba* libsmb* libwbclient*