[SOLVED] Removing a Package without removing Dependency using RPM
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Removing a Package without removing Dependency using RPM
Hi All,
Im trying to remove a package which is not needed,
but it seems to be deleting the dependent package which uses the file from the package.
please see below the output, it should not delete either the .so file or the package like gnome-vfs2-smb,gvfs-smb
[root@xxxxx ssea1]# rpm -e --test libsmbclient
error: Failed dependencies:
libsmbclient.so.0()(64bit) is needed by (installed) gnome-vfs2-smb-2.24.2-6.el6.x86_64
libsmbclient.so.0()(64bit) is needed by (installed) gvfs-smb-1.4.3-18.el6.x86_64
libsmbclient >= 3.0.8-0.pre1.3 is needed by (installed) gnome-vfs2-smb-2.24.2-6.el6.x86_64
does nodeps really works? example: rpm -e --nodeps <package>
in the manpage it is given as below, it means to be deleting the .so files which are needed by other packages.
--nodeps
Don’t check dependencies before uninstalling the packages.
Hi All,
Im trying to remove a package which is not needed, but it seems to be deleting the dependent package which uses the file from the package. please see below the output, it should not delete either the .so file or the package like gnome-vfs2-smb,gvfs-smb
[root@xxxxx ssea1]# rpm -e --test libsmbclient
error: Failed dependencies:
libsmbclient.so.0()(64bit) is needed by (installed) gnome-vfs2-smb-2.24.2-6.el6.x86_64
libsmbclient.so.0()(64bit) is needed by (installed) gvfs-smb-1.4.3-18.el6.x86_64
libsmbclient >= 3.0.8-0.pre1.3 is needed by (installed) gnome-vfs2-smb-2.24.2-6.el6.x86_64
does nodeps really works? example: rpm -e --nodeps <package> in the manpage it is given as below, it means to be deleting the .so files which are needed by other packages.
--nodeps
Don’t check dependencies before uninstalling the packages.
Both the man page and the documentation on the RPM website tell you that the --nodeps flag does exactly what you're after. But again, the system is doing what you TELL IT to , and that is, removing that one package...and it will break those OTHER packages. The fact that it's telling you that those other packages will be broken, means what you're trying to delete IS NEEDED. You can't selectively keep a few files out of a package.
And it will break those other packages.. Ok got it tbone.
Let me know if those .so files can be saved before removing main rpm and then be used to fix the broken packages.
No, they CANNOT, unless you copy them manually. And what you're trying to do is an absolutely BAD IDEA. RPM and package managers work for a REASON...leaving junk laying around with no package that it references is only going to lead to trouble. Try to think about it....what happens when those packages you KEEP get updated? That's right...they WON'T...because something they DEPEND ON is not in the package database, and even IF the package gets updated, the new program will be looking at OLD libraries, which will cause all sorts of problems.
Why do you want to remove it in the first place? Linux is not Windows: there's no registry, so having things you don't use doesn't trouble the system in any way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.