LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-09-2015, 05:52 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
[YUM] Remove a package without removing it's father?


Hi,

I have a package A, which is depended from package B. Now I want to remove the package B. I was told the package A will be removed as well. But this is not what I want.

How can I just remove the package B?
 
Old 04-09-2015, 06:33 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
I have a package A, which is depended from package B. Now I want to remove the package B. I was told the package A will be removed as well. But this is not what I want.
As it said A is dependent on package B, so if you will remove package B then A will be useless without that. It is something like you are cutting legs of a chair and still want seating space of the chair to remain high.

Technically it is possible but not sure what it will screw up on the system. You can use --force with rpm to remove package B. Example:

Code:
rpm -e --force <package B>
The reason it is complaining about dependency is to make sure that system integrity is intact.
 
Old 04-09-2015, 06:38 AM   #3
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Original Poster
Rep: Reputation: 33
I try your command, but I got following:
Code:
# rpm -e --force guava-libraries
rpm: only installation, upgrading, rmsource and rmspec may be forced
 
Old 04-09-2015, 06:40 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Sorry my mistake, try:

Code:
rpm -e --nodeps guava-libraries
 
  


Reply


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
I used yum to try to remove a package and it started removing everything.. jmunjr Linux - Software 7 12-21-2013 08:12 PM
[SOLVED] how can i remove a package that is a dependency without removing anything else gujedan Debian 4 03-20-2011 05:55 AM
remove a package along with its dependencies with yum digsecurity Linux - Newbie 4 08-13-2010 05:17 AM
package remove through yum ? LinuxLover Linux - Server 1 04-12-2008 05:29 AM
Remove dependencies when removing a package kushalkoolwal Debian 6 06-28-2007 02:53 PM

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

All times are GMT -5. The time now is 10:40 PM.

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
Open Source Consulting | Domain Registration