View previous topic :: View next topic |
Author |
Message |
Shadow r00fler n00b
Joined: 17 Feb 2004 Posts: 39 Location: Rochester, New York, USA
|
Posted: Tue May 11, 2004 3:32 pm Post subject: RPM problems; *this* is a dependency? |
|
|
OK... I was told that "/bin/sh" is a dependency needed by RPM when attempting to install the VMware GSX server 3.0 package. /bin/sh obviously exists on my system, so what gives?
Code: | bash-2.05b$ rpm -ivh VMware*.rpm
error: Failed dependencies:
/bin/sh is needed by VMware-gsx-3.0.0-7592
|
Last edited by Shadow r00fler on Tue May 11, 2004 3:37 pm; edited 2 times in total |
|
Back to top |
|
|
Celtis l33t
Joined: 05 Jul 2003 Posts: 737
|
Posted: Tue May 11, 2004 3:35 pm Post subject: |
|
|
IIRC RPM's keep a database of all the installed packages, because you didn't install it through an RPM it doesn't know you have it |
|
Back to top |
|
|
Shadow r00fler n00b
Joined: 17 Feb 2004 Posts: 39 Location: Rochester, New York, USA
|
Posted: Tue May 11, 2004 3:55 pm Post subject: |
|
|
Wait... so I'm supposed to install an rpm of the shell? Excuse thine n00bness, but this is not quite making sense. |
|
Back to top |
|
|
Celtis l33t
Joined: 05 Jul 2003 Posts: 737
|
Posted: Tue May 11, 2004 4:08 pm Post subject: |
|
|
No, if you're sure you've covered all the dependencies just use "rpm -ivh --nodeps VMWare*.rpm" to install the server without checking for those dependencies. |
|
Back to top |
|
|
Celtis l33t
Joined: 05 Jul 2003 Posts: 737
|
Posted: Tue May 11, 2004 4:19 pm Post subject: |
|
|
Sorry, just reread my original post and thought I'd better explain it better.
RPM based systems install all (or most) of their software through RPMs. When an RPM is installed a record of it is kept in a database. As you're using a source based distro (and installed /bin/sh from source) you won't have an RPM database. The best way round it is to use "rpm -qpR /path/to/RPM" to get a list of dependencies, install the dependencies as required, then use "rpm -Uvh --nodeps /path/to/RPM" to install it. |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Tue May 11, 2004 4:23 pm Post subject: |
|
|
This can also be one of your first experiences of 'dependancy hell'. Like...
'Cannot install (package), libperl-5.8.3 is not installed.' or 'Cannot install samba-3.0.2a, samba-3.0.2a is not installed.' _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
Shadow r00fler n00b
Joined: 17 Feb 2004 Posts: 39 Location: Rochester, New York, USA
|
Posted: Tue May 11, 2004 4:30 pm Post subject: |
|
|
Code: | bash-2.05b# rpm -e VMware*3.0*
error: package VMware-gsx-3.0.0-7592.i386.rpm is not installed
bash-2.05b# rpm -ivh VMware*3.0*.rpm
Preparing... ########################################### [100%]
package VMware-gsx-3.0.0-7592 is already installed
bash-2.05b# rpm -i --replacepkgs VMware*3.0*.rpm
error: %pre(VMware-gsx-3.0.0-7592) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping VMware-gsx-3.0.0-7592
|
|
|
Back to top |
|
|
franzf Advocate
Joined: 29 Mar 2005 Posts: 4565
|
Posted: Wed Apr 20, 2005 5:43 pm Post subject: |
|
|
Shadow r00fler wrote: | Code: | bash-2.05b# rpm -e VMware*3.0*
error: package VMware-gsx-3.0.0-7592.i386.rpm is not installed
bash-2.05b# rpm -ivh VMware*3.0*.rpm
Preparing... ########################################### [100%]
package VMware-gsx-3.0.0-7592 is already installed
bash-2.05b# rpm -i --replacepkgs VMware*3.0*.rpm
error: %pre(VMware-gsx-3.0.0-7592) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping VMware-gsx-3.0.0-7592
|
|
if you do so (you are in the directory where you saved the Vmware-rpm) rpm will uninstall the package VMware-gsx-3.0.0-7592.i386.rpm.
But in the rpm-database, the name of the package saved is VMware-gsx-3.0.0-7592 (!!without .i386.rpm!!). An "rpm -q vmware" will show you the exact name of the package.
You can uninstall it with "rpm -e VMware-gsx-3.0.0-7592".
For a fast uninstalling, you can do a "rpm -e $(rpm -q vmware)", but ATTENTION! this will not ask for permission. if you do the files are gone (even if other packages math the searchterm).
But so it's quite easy to uninstall e.g. openoffice-beta, which installs several (8-10) packages. With only one "rpm -e $(rpm -q openoffie)" you can uninstall the rpm with only 1 command!!
Hope i could help
Franz
And sorry for my english |
|
Back to top |
|
|
|