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.
oracle linux public yum
ReplyDeletehttp://public-yum.oracle.com/
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
yum list | grep pattern
ReplyDeleterepository file location: /etc/yum.repos.d