Useful YUM Variables

Posted in Linux

Useful yum Variables

The following is a list of variables you can use for both yum commands and yum configuration files.

(/etc/yum.conf and .repo files).

$releasever
This is replaced with the package’s version, as listed in distroverpkg. This defaults to the version of the redhat-release package.

$arch
This is replaced with your system’s architecture, as listed by os.uname() in Python.

$basearch
This is replaced with your base architecture. For example, if $arch=i686 then $basearch=i386.

$YUM0-9
This is replaced with the value of the shell environment variable of the same name. If the shell environment variable does not exist, then the configuration file variable will not be replaced.

package-125x125

Problems

If you’re having problems sorting out what’s happening when you try yum update or yum install someapp, try using -d9 in the command to turn on verbose debugging messages.

If you want to know what’s been added to a repository in the last 7 days, but you don’t know exactly what you’re looking for, try listing recent. yum list recent
recent
number of days back to look for ‘recent’ packages added to a repository. Used by the ‘list recent’ and generate-rss commands. Default is 7 days.

Make sure includepkgs is NOT listed in your client’s repo definition file. If it is, whatever is listed is all that you can see. This is the complete opposite of a blacklist.

Posted by admica   @   17 June 2010

Related Posts

Like this post? Share it!

Digg Twitter StumbleUpon Delicious Technorati Facebook RSS

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Name

Email

Website

Previous Post
« What do Old School Nintendo NES and the F-35 Joint Strike Fighter have in common?
Next Post
Eve Online - Alliance Tournament Finals »
Powered by Wordpress   |   Lunated designed by ZenVerse