How to use yum in Redhat, Fedora, CentOS
Posted: Mon Jun 14, 2010 10:40 pm
To update system. Update of the system with all the dependencies that are necessary:
Searches. To make a search of some package or term in the data base in some of the formed deposits yum in the system:
Example:
I hope this will help you understand how to use yum more effeciently. Any erros in this how please notify me.
Consultation of information. To consult the information contained in a package in individual:
Example:
Installation of packages. Installation of paqueterÃa with automatic resolution of dependencies:
Example.
Uninstalling packages. Desinstalación of packages along with everything what it depends on these:
Example.
Listing Packages. The following thing will list all the packages available in the data base yum and that can settle:
The following thing will list all the packages installed in the system:
The following thing will list all the packages installed in the system and that can (they must) be updated:
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 data base. In order to make the corresponding cleaning, the following thing can be executed:
Group install
Don't forget the quotation marks for group install.
To install a set of application that starts with a common prefix. To install gkrellm, gkrellm-plugins, gkrellm-misc-plugins,
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.
Example
To get the name of the package containing a given file:
example:
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:
To enable a repository which is disabled in the configuration:
example:
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.
To install such a group:
Example:
And to update a group
And remember folks, you can always use -y to say yes to everything, and -C to use the cache only.
Code: Select all
yum updateCode: Select all
yum search any-packageCode: Select all
yum search httpdConsultation of information. To consult the information contained in a package in individual:
Code: Select all
yum info any-packageCode: Select all
yum info httpdCode: Select all
yum install any-packageCode: Select all
yum install gkrellmCode: Select all
yum remove any-packageCode: Select all
yum remove gkrellmCode: Select all
available yum list|lessCode: Select all
yum list installed|lessCode: Select all
yum list updates|lessYum 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 data base. In order to make the corresponding cleaning, the following thing can be executed:
Code: Select all
yum clean allCode: Select all
yum groupinstall "groupname"To install a set of application that starts with a common prefix. To install gkrellm, gkrellm-plugins, gkrellm-misc-plugins,
Code: Select all
yum install gkrellm*Code: Select all
yum list somethingCode: Select all
yum list mozillaCode: Select all
yum provides filenameCode: Select all
yum provides /usr/bin/mozillaTo get a list of packages updated/added to any of your repositories recently:
Code: Select all
yum list recentCode: Select all
yum --enablerepo=reponame install packagenameCode: Select all
yum --enablerepo=dag install j2reCode: Select all
yum grouplistCode: Select all
yum groupinstall "groupname"Code: Select all
yum groupinstall "GNOME Desktop Environment"Code: Select all
yum groupupdate "GNOME Desktop Environment"