How to configure CentOS 5.2 to use RPMForge and YUM

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
yum update
 
Yum install [package name]
Yup info [package name]
Yum remove [package name]
 
The following thing will list all the packages installed in the system and that can (they must) be updated:
Code:
yum list updates|less
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.
 
One tip, you can use also joker-signs as * or ? e.g.
Code:
 
yum install gkrellm*
Posted on Categories Linux

Leave a Reply

Your email address will not be published. Required fields are marked *