Thursday, March 5, 2009

Using Yum (common yum tasks)

To update system. Update of the system with all the dependencies that are necessary:
Code:
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:
Code:
 yum search any-package
Example:
Code:
yum search httpd
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:
Code:
 yum info any-package
Example:
Code:
yum info httpd
Installation of packages. Installation of paquetería with automatic resolution of dependencies:
Code:
 yum install any-package
Example.
Code:
yum install gkrellm
Uninstalling packages. Desinstalación of packages along with everything what it depends on these:
Code:
yum remove any-package
Example.
Code:
yum remove gkrellm
Listing Packages. The following thing will list all the packages available in the data base yum and that can settle:
Code:
 available yum list|less
The following thing will list all the packages installed in the system:
Code:
 yum list installed|less
The following thing will list all the packages installed in the system and that can (they must) be updated:
Code:
 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 data base. In order to make the corresponding cleaning, the following thing can be executed:
Code:
 yum clean all
Group install
Code:
yum groupinstall "groupname"
Dont forget the quotation marks for group install.

I hope this will help you understand how to use yum more effeciently. I did this for our newbies that may want to uninstall packages which is not mention in the fedora FAQ. For more info on yum go here: http://www.fedorafaq.org/#installsoftware


MORE:

One tip, you can use also joker-signs as * or ? e.g.
Code:
yum install gkrellm*
will install gkrellm, gkrellm-plugins, gkrellm-misc-plugins etc.

And to install/remove you have to be root! Not for searching.

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.
Code:
yum list something
Example
Code:
yum list mozilla
To get the name of the package containing a given file:
Code:
yum provides filename
example:
Code:
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:
Code:
yum list recent
To enable a repository which is disabled in the configuration:
Code:
yum --enablerepo=reponame install packagename
example
Code:
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.
Code:
yum grouplist
To install such a group:
Code:
yum groupinstall "groupname"
Example:
Code:
yum groupinstall "GNOME Desktop Environment"
And to update a group
Code:
yum groupupdate "GNOME Desktop Environment"

And remember folks, you can always use -y to say yes to everything, and -C to use the cache only.

No comments: