Jo Rhett wrote:
On Nov 12, 2007, at 12:10 PM, Chris St. Pierre wrote:
When updating packages, you can _only_ update to the latest version.
It's not possible to update to a specific version.

Are you certain of that?

This is not correct. You can request specific versions of a package, assuming it exists in a configured repository. For example (output abbreviated for space):

# yum install perl-rrdtool

Dependencies Resolved
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 perl-rrdtool            x86_64     1.2.23-1.rf      local              53 k
Installing for dependencies:
 rrdtool                 x86_64     1.2.23-1.rf      local             945 k


[EMAIL PROTECTED] rpsblast]# yum install perl-rrdtool-1.0.50

Dependencies Resolved
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 perl-rrdtool            x86_64     1.0.50-3.el4.rf  local             119 k
Installing for dependencies:
 rrdtool                 x86_64     1.0.50-3.el4.rf  local             453 k



And for quick documentation, how do you specify a local package repository instead of the RH ones?

This requires configuring yum. The common way is to create one or more files in /etc/yum.repos.d/ that indicate the various repositories you want to use. For example, here is the config file for the repo named "local" I use in one of my compute clusters:

  [local]
  name=Centos $releasever - $basearch - Released Updates
  baseurl=http://master/yam/dist/centos$releasever-$basearch/RPMS.local

The variables are auto-populated by Yum, but can be hard coded if you want.

--
Jesse Becker
NHGRI Linux support (Digicon Contractor)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to