Saturday, April 3, 2010

RPM: Dependency

Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi


Dependency

We may encounter a dependency error while uninstalling or upgrading a package, if any of the installed packages depends on it. The RPM dependency occurs when some package will not work unless other package is already installed. The source code for that package lists other package that it depends on. Let us try the following command:


# rpm -Uvh /mnt/cdrom/RedHat/RPMS/kernel-source-*


It may give the error like following:


error: Failed dependencies:
gcc >= 3.16-95 is needed by kernel-source-2.8.25-10
Suggested resolutions:
gcc-4.1.5-3.i386.rpm


The output suggests us that we first need to install gcc package. We can install both the packages at the same time or install gcc first. If it all seems troublesome, we can use --nodeps option to ignore dependencies. Which is as follows:


# rpm -Uvh --nodeps /mnt/cdrom/RedHat/RPMS/kernel-source-*


And the run the following command:


# rpm -Uvh /mnt/cdrom/RedHat/RPMS/gcc-4*


No comments:

Post a Comment