Networker

Re: [Networker] How to upgrade (push) NW client with software dependencies

2009-10-06 19:58:41
Subject: Re: [Networker] How to upgrade (push) NW client with software dependencies
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 6 Oct 2009 18:52:30 -0500
In regard to: [Networker] How to upgrade (push) NW client with software...:

10/06/09 14:04:24:nw_client_install: Install networker packages lgtoman
/usr lgtoclnt /usr ...
10/06/09 14:04:24:Adding package "lgtoman" at location "/usr"...
10/06/09 14:04:25:Package "lgtoman" added at location "/usr"...
10/06/09 14:04:25:Adding package "lgtoclnt" at location "/usr"...
10/06/09 14:04:26:nw_client_install: command "/bin/rpm -i  /tmp/
cp_prmgls01.its.calpoly.edu/    lgtoclnt" failed with: \n error: Failed
dependencies:
       openmotif is needed by lgtoclnt-7.4.5-1.i686
   Suggested resolutions:
       /var/spool/up2dateopenmotif-2.2.3-10.2.el4.i386.rpm
10/06/09 14:04:26:nw_client_install, function add_package failed for package
"lgtoclnt" at location "/usr"...
10/06/09 14:04:26:nw_client_install: Function add_packages failed.

SHOULD I try to put the openmotif in /var/spool?

I'm not sure what you mean by "put the openmotif in /var/spool".  Just
putting the package in /var/spool/up2date won't do any good, you actually
need to get it installed somehow.  There may already be a version of
the openmotif package in that directory, though it might not be the most
recent version of the package.

The nw_client_install utility is just running

        rpm -i /path/to/rpm/lgtoclnt

which will fail because rpm doesn't do dependency searching (so it
doesn't automatically search other sources for the missing dependency).
If there are any missing dependencies for the package you're trying to
install, it just fails unless you do things I wouldn't recommend (like
using --nodeps).

The up2date command *will* do dependency searching, and that's what's
being hinted at by the "Suggested resolutions" line.

Your best bet is to use

        up2date --install openmotif

on the client(s) first, and then try push your networker client install.
Alternately, if you are licensed for the necessary capabilities in Red Hat
NetWork (or your Satellite server, if you have one) you could push the
openmotif package (and its dependencies) to the clients using that
interface.

Note that if nw_client_install is only calling rpm -i to install the
lgtoclnt RPM and is not also then calling

        up2date -p

afterward, your client definition in either Red Hat NetWork or your
Satellite or Spacewalk server will be out of sync with what's actually
installed on the box.

Tim
--
Tim Mooney                                             Tim.Mooney AT ndsu DOT 
edu
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, IACC Building                             701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>