Yellowdog Updater Modified Links: http://www.fedorafaq.org/#installsoftware yum is an interactive, automated update program which can be used for maintaining systems using rpm. yum install package-name package-other yum update package-name package-other yum upgrade package-name package-other yum remove package-name package-other yum erase package-name package-other yum check-update list info install Is used to install the latest version of a package or group of packages while ensuring that all dependencies are satisfied. update If run without any packages, update will update every currently installed package. If one or more packages are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. If the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for distro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9. upgrade update --obsoletes clean Is used to clean up various things which accumulate in the yum cache directory over time. -y Assume yes; assume that the answer to any question which would be asked is yes. yum clean packages Eliminate any cached packages from the system. Note that packages are not automatically deleted after they are downloaded. yum clean headers Eliminate all of the files which yum uses to determine the remote availability of packages. Using this option will force yum to download all the headers the next time it is run. yum clean all Runs yum clean packages and yum clean headers as above. To install/remove you have to be root, but not for searching. You can use -y to say yes to everything, and -C to use the cache only. -------------------------------------------------------------------------------- To update system. Update of the system with all the dependencies that are necessary: yum update Searches. To make a search of some package or term in the data base in some of the formed deposits yum in the system: yum search any-package yum search *package* yum search httpd Consultation of information. To consult the information contained in a package: yum info any-package yum info httpd Installation of packages. Installation with automatic resolution of dependencies: yum install any-package yum install gkrellm Uninstalling packages. Uninstallation of packages along with everything what it depends on: yum remove any-package yum remove gkrellm Listing Packages. The following thing will list all the packages available in the data base yum and that can settle: yum list|less The following will list all the packages installed in the system: yum list installed|less The following thing will list all the packages installed in the system and that can (they must) be updated: yum list updates|less Cleaning of the system. Yum leaves as result of its use, heads and packages RPM stored in the interior of the directory located in the route /var/cache/yum/. Particularly the packages RPM that have settled can occupy much space and is by such reason agrees to eliminate them once no longer they have utility. Also it agrees to do the same with the old heads of packages that no longer are in the database. In order to make the corresponding cleaning, the following can be executed: yum clean all Group install (dont forget the quotation marks for group install): yum groupinstall "groupname" -------------------------------------------------------------------------------- One tip, you can use also wildcards as * or ? e.g. yum install gkrellm* will install gkrellm, gkrellm-plugins, gkrellm-misc-plugins etc. To search in package names only, use yum list. This differs from search in that it's much faster, as it will search package names only, while yum search will search all the package info, including package description. yum list something yum list mozilla To get the name of the package containing a given file: yum provides filename yum provides /usr/bin/mozilla Here's some new goodies in yum 2.2 (Fedora Core 3 and beyond) To get a list of packages updated/added to any of your repositories recently: yum list recent To enable a repository which is disabled in the configuration: yum --enablerepo=reponame install packagename yum --enablerepo=dag install j2re To list available software groups, such as GNOME desktop environment or X window system. This is also available in the Core 2 yum, but servers doesn't use this wonderful feature much. yum grouplist To install such a group: yum groupinstall "groupname" yum groupinstall "GNOME Desktop Environment" And to update a group yum groupupdate "GNOME Desktop Environment" Type 'yum grouplist' to se the list of groups available for groupinstall -------------------------------------------------------------------------------- To use Yumex (short for Yum Extender), a GUI tool, if you use Gnome for your desktop environment, in the Gnome menu, it will be under: Applications -> System Tools Yumex from 'run', type the following: su -c 'yum -y install yumex' Whenever you run Yum in the future for other updates, be sure to run add –exclude=yum to your yum command. (Reason unknown, needs research)...