0

How to remove a Single package Without its dependencies on CentOS

Hello,

Is there any possibilty to remove the package alone by excluding its dependencies on centos?How can that be done.

remove command RPM Add a comment
caden
asked Sep 25 2019

Answer

0

Using YUM package manager with --noautoremove option, you can remove a single package without its dependencies. Follow these steps:

  1. Open your CentOS terminal.
  2. Run the command: sudo yum remove --noautoremove [package name]
    (Replace [package name] with the actual name of the package you want to remove)
  3. Enter the user password.
    Also, there is --setopt option that you can use to ignore dependencies. You can look into this articleRemove package without dependencies for a detailed explanation.
Add a comment
chocolate
asked Sep 19 2023
edited Sep 20 2023
Post your Answer