[SGVLUG] How do you use yum/dnf across major versions?

Matthew Campbell dvdmatt at gmail.com
Thu Apr 21 10:33:26 PDT 2016


I have a currently maintained Perl manifest that is required by an
application orphaned by vendor realignment.  The Perl package is
maintained in the RHEL6 and Fedora 23 lines but is not in the RHEL7
repositories.

It does exist in the rpmforge repository, but only as a rh6 package.

--> What is the magic incantation to reset the yum major version
number for a single yum/dnf run?

The package is fully functional on 7 (I installed manually and tested)
but I would like to automate installation from puppet/chef.  I did get
it working by hard coding the couple dozen dependencies but looking at
the resulting code consider that approach unmaintainable.  Once
installed the packages are managed correctly by dnf.

I have spent an undue amount of time online trying to unearth a
solution, has anyone run across this before?

Thanks for any thoughts,

Matt

% ssh oldserver
% cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
% yum search perl-Net-SSH
 * rpmforge: mirror.chpc.utah.edu
...
perl-Net-SSH.noarch : Perl extension for secure shell

% ssh newserver
% cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
% yum search perl-Net-SSH --releasever=6
* rpmforge: mirror.chpc.utah.edu
...
'nada'

---------
Matthew Campbell
Storage and Cloud Strategy
Office of the CTO

Kaiser Permanente
99 S. Oakland
Pasadena, CA 91101

626-564-7228 (office)
8-338-7228 (tie-line)
818-314-9897 (mobile phone)
Green Center 3-North, 031W29
---------
kp.org/thrive



More information about the SGVLUG mailing list