LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-19-2016, 04:06 PM   #1
sathish6105
LQ Newbie
 
Registered: May 2014
Distribution: centos,redhat
Posts: 14

Rep: Reputation: Disabled
Exclamation 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.



Thanks
Sathish
 
Old 04-20-2016, 08:32 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,318

Rep: Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019
Quote:
Originally Posted by sathish6105 View Post
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.
 
1 members found this post helpful.
Old 04-20-2016, 10:11 AM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,360

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
What is the problem you are actually trying to solve? Your question sounds like an "X-Y Problem".
 
Old 04-22-2016, 06:48 AM   #4
sathish6105
LQ Newbie
 
Registered: May 2014
Distribution: centos,redhat
Posts: 14

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-22-2016, 10:44 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,318

Rep: Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019Reputation: 6019
Quote:
Originally Posted by sathish6105 View Post
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.

Either remove them ALL or leave them there.
 
1 members found this post helpful.
Old 04-22-2016, 11:49 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,437

Rep: Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893Reputation: 1893
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.
 
1 members found this post helpful.
  


Reply

Tags
erase, package management, rpm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing GUI and running ubuntu in text mode at every reboot and removing log in also rohaanembedded Ubuntu 4 09-27-2013 01:54 AM
Removing a Package Completely - rpm Command or Anything Else devUnix Linux - General 5 02-16-2012 04:11 PM
[SOLVED] how can i remove a package that is a dependency without removing anything else gujedan Debian 4 03-20-2011 06:55 AM
removing a package without dependency checking whitesuit Debian 1 10-25-2006 01:13 AM
Removing an RPM package from within another RPM package jimwelc Linux - Software 7 05-12-2006 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration