By Dhsoni-Oracle on Feb 24, 2014
Yum is a package installer/remover for rpm systems. It can also update your system and is used mainly by the Linux systems such as Oracle Linux to simplify these tasks.
Some simple tasks using yum is to list,install, search, remove the packages on your system.
To list if you've a package installed do:
yum list installed
To list all packages in yum repository:
To search for a package:
yum search pkg; e.g. yum search kernel
To remove a package
yum remove pkg
To install a package(s)
yum install pkg eg. yum install ksh
yum install libpng-devel ; gd-devel; openmotif-devel ; zlib-devel; expat-devel
To setup a proxy for yum ,if you go over vpn do
vi /etc/yum.conf proxy=http://host:80
Any changes yum does to your system gets recorded in a file ,most likely at location /var/log/yum.log . This is very useful to track changes . You can occasionally clean up yum repository from stale files via running yum clean all
Sometimes yum complains of a already running processes. You should wait for it to clear up, if you know for a fact its not running and is an issue, you could just kill the process as mentioned its pid.
If you encounter package kit issue, it can be disabled in gnome via System > Preferences > Startup Applications
Instructions for manually connecting to Oracle Linux Yum Server can be found here:
Finally, few good links on yum for further information:
- http://yum.baseurl.org/ #Yum Site
- http://docs.oracle.com/cd/E37670_01/ #OL6 documentation
- http://www.centos.org/docs/5/html/yum/index.html #YUM in Install guide
- http://linuxgazette.net/issue68/nazario.html ##RPM