LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RPM: Requring Dependencies? (https://www.linuxquestions.org/questions/linux-software-2/rpm-requring-dependencies-54272/)

BxBoy 04-09-2003 05:43 PM

RPM: Requring Dependencies?
 
I've downloaded the Security Advisory RPMs from redhat's update site, however when I tried applying them I get the following errors:

Quote:

# rpm -Fvh samba-2.2.7-3.7.2.i386.rpm
error: failed dependencies:
samba-common = 2.2.7 is needed by samba-2.2.7-3.7.2
Quote:

# rpm -Fvh samba-common-2.2.7-3.7.2.i386.rpm
error: failed dependencies:
samba-common = 2.2.1a is needed by samba-2.2.1a-4
samba-common = 2.2.1a is needed by samba-client-2.2.1a-4
Quote:

# rpm -Fvh samba-client-2.2.7-3.7.2.i386.rpm
error: failed dependencies:
samba-common = 2.2.7 is needed by samba-client-2.2.7-3.7.2
Why is it asking for these dependencies? What should I do?

currently my system has these:

Quote:

# rpm -qa | grep samba
samba-common-2.2.1a-4
samba-client-2.2.1a-4
samba-2.2.1a-4

yngwin 04-09-2003 06:28 PM

You should upgrade the samba packages to version 2.2.7

aherm 04-09-2003 07:22 PM

If you have a built in automatic rpm installer just click on it (it will install automatically). If not you should install apt-rpm like for your distro to eliminate the dependencies. If you want to do it manually ideally you should uninstall all samba rpms before installing the new ones.

You can add --force and --nodeps as rpm option
rpm -e samba-common-2.2.1a-4 --nodeps
rpm -e samba-client-2.2.1a-4 --nodeps
rpm -e samba-2.2.1a-4 --nodeps

Then install the new rpms.
You can add --force and --nodeps as rpm option
rpm -ivh samba-2.2.7-3.7.2.i386.rpm
rpm -ivh samba-common-2.2.7-3.7.2.i386.rpm
rpm -ivh samba-client-2.2.7-3.7.2.i386.rpm


Have fun :-)

BxBoy 04-09-2003 10:09 PM

But I thought these UPDATES would update the samba packages automatically and they weren't dependent of the old version.

BxBoy 04-09-2003 10:24 PM

Quote:

Originally posted by aherm

You can add --force and --nodeps as rpm option
rpm -e samba-common-2.2.1a-4 --nodeps
rpm -e samba-client-2.2.1a-4 --nodeps
rpm -e samba-2.2.1a-4 --nodeps

Then install the new rpms.
You can add --force and --nodeps as rpm option
rpm -ivh samba-2.2.7-3.7.2.i386.rpm
rpm -ivh samba-common-2.2.7-3.7.2.i386.rpm
rpm -ivh samba-client-2.2.7-3.7.2.i386.rpm

ok, this worked! :D

but I think something broke, I did a 'rpm -qa | grep samba' and it hangs after samba-2.2.7-3.7.2 and samba-client-2.2.1a-4 doesn't display.

Quote:

# rpm -qa | grep samba
samba-common-2.2.7-3.7.2
samba-2.2.7-3.7.2

<hangs>

aherm 04-09-2003 11:46 PM

Try

rpm -Uvh samba-client-(press tab here then enter)


Have a lot more fun :-)

BxBoy 04-10-2003 08:34 PM

Quote:

Originally posted by aherm
Try

rpm -Uvh samba-client-(press tab here then enter)


Have a lot more fun :-)

It has been installed, just that RPM doesn't display it and hangs. I've tried it as a regular use and it works, which is quite weird that it would only hang on root.

Is there a way to rebuild the list index?

aherm 04-10-2003 11:22 PM

There are some ways in SuSE like by running one of these: YaST, Install/Remove Software, SuSEconfig, apt-get, online update...

RH should have one. Look around ;-)


Have fun :-)


All times are GMT -5. The time now is 02:52 AM.