LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [YUM] Remove a package without removing it's father? (https://www.linuxquestions.org/questions/linux-software-2/%5Byum%5D-remove-a-package-without-removing-its-father-4175539198/)

thomas2004ch 04-09-2015 05:52 AM

[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?

T3RM1NVT0R 04-09-2015 06:33 AM

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.

thomas2004ch 04-09-2015 06:38 AM

I try your command, but I got following:
Code:

# rpm -e --force guava-libraries
rpm: only installation, upgrading, rmsource and rmspec may be forced


T3RM1NVT0R 04-09-2015 06:40 AM

Sorry my mistake, try:

Code:

rpm -e --nodeps guava-libraries


All times are GMT -5. The time now is 04:27 AM.