Thursday, October 6, 2011

yum and rpm

yum list package-name
yum install package-name or yum update package-name/rpm
yum erase package-name
yum search package-name # find package from repository
yum provides command-name # find package according to commmand

rpm -q package-name
rpm -i package-name
rpm -e package-name

yum will not install a package that public key is not imported, but rpm will install it with warning.

2 comments:

  1. oracle linux public yum
    http://public-yum.oracle.com/

    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-el5.repo

    ReplyDelete
  2. yum list | grep pattern

    repository file location: /etc/yum.repos.d

    ReplyDelete