Find the answer to your Linux question:
Results 1 to 5 of 5
hey guyz, i'm kinda new to linux, and i'm having a problem on removing packages that came with the redhat installation. i'm planning on replacing the mysql, php and apache ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Location
    Electric BlueBallz
    Posts
    4

    how to remove a package with dependencies on red hat 8


    hey guyz,

    i'm kinda new to linux, and i'm having a problem on removing packages that came with the redhat installation.

    i'm planning on replacing the mysql, php and apache packages in favor of their more customizeable source codes. Of course, you have to remove the packages first. Removing PHP was a breeze but when it came to removing mysql, an error popped out stating the there is a dependency with another package, perl-DBD-something. I tried removing the perl package but it also stated an error, iterating its dependency back to mysql! So how can i remove these packages?

    Thanks in advance guyz!

  2. #2
    Linux User
    Join Date
    Feb 2003
    Location
    Norway, Asker
    Posts
    267
    you can use --nodeps and/or --force

    Good luck

  3. #3
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    I'd recommend not breaking any dependencies. It can have cause dramatic devestation in your computer.
    The best things in life are free.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    If you want to operate on cyclic depencies (it sounds like such a case to me), just specify all the packets in one command to rpm. Then it will detect that all will be alright when the operations have completed, and decide to do it.

  6. #5
    Just Joined!
    Join Date
    Jun 2003
    Location
    Electric BlueBallz
    Posts
    4
    Thanks for the replies guyz, i really appreciate it...

    What i did is i removed both dependent packages from one command -
    # rpm -e mysql perl-DBD-mysql, and it worked, no side effects whatsoever...

    I'm now into compiling my downloaded sources and if sumthin goes wrong i'll let you guyz know... :P

    Thanks a million!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •