Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update-alternatives

Status
Not open for further replies.

jockojem

Technical User
Jan 7, 2002
95
GB
Hello!

I am trying to install some .rpm packages for Aplaws (based on the RedHat CMS app) on Advanced Server 2.1. One of the packages produces a dependency warning as follows...

[root@aplaws root]# rpm -Uvh ccm-tools-servlet-resin-2.1.1-2.noarch.rpm
error: failed dependencies:
/usr/sbin/update-alternatives is needed by ccm-tools-servlet-resin-2.1.1-2


After some rooting on the net I gather that I can get this from chkconfig. However I am not sure a. if this is right b. which version is correct.

Failing that - does anyone know which version of apt I can use?

Thanks, once again, in advance.

Jem
 
You really should stop for moment and read up on the whole process of doing RPM installs and updates, using chkconfig, etc. You've got several concepts confused - as I noted in your prior thread here.

Chkconfig does not "get" any RPMs for you nor does it resolve or even contemplate any dependencies. It's a tool to manage the "registration" of daemons into a RedHat system so that their runlevel status can be changed to On or Off. And runlevel ONLY affects what the machine loads at bootup.

Apt-get does 1) keep an updated list of available packages for your consideration, 2) keep a list of the packages you have installed, 3) attempt to resolve dependencies based upon what the packages say they require. When using apt-get the packages themselves may or may not "register" themselves as chkconfig would - more often than not they do.

If you you have a known dependency you should consult RedHat's FTP site for the rpm version that you require. Download the RPM and install it.


 
Thanks thedaver for your help... although I think you misunderstand my dilemma slightly.

As I understand it the rpm I want to install won't install because /usr/sbin/update-alternatives isn't present. I did some reading on this and this appears to be a debian tool for dealing with symbolic links which has somehow now been provisioned into chkconfig. (I am a little hazy on this - but I don't suppose that matters at the moment).

I've already checked on the RedHat ftp site for an AS2.1 version of chkconfig and there doesn't appear to be an obvious candidate. Indeed a look on rpm.pbone.net shows that earlier versions of chkconfig contain /usr/sbin/update-alternatives.

Now the version of ccm I am trying to install is reccomended for AS2.1 so I am assuming this must be resolvable. It is just not apparent to me how.

Thanks again.

Jem

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top