Results 1 to 4 of 4

Thread: Remove a package without removing dependencies

  1. #1
    Join Date
    Jun 2010
    Beans
    39
    Distro
    Ubuntu 10.10 Maverick Meerkat

    [Solved] Remove a package without removing dependencies

    I need to remove libgl1-mesa-swx11, as after I installed it, it has slowed down all my graphics. However, in SPM, it says in order to remove it, I have to remove most of my system, it seems as though it's "dependencies" involve everything to do with graphics, which I was running fine and much better before.

    So, how do I remove this package without removing dependencies?
    Last edited by BeWop; June 20th, 2010 at 08:41 PM.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Beans
    535
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Remove a package without removing dependencies

    By dependencies, do you mean packages that libgl-mesa-swx11 depends on or packages that depend upon it.

    You can't uninstall a package without uninstalling all packages that depend on it.

    Just uninstalling it normally shouldn't remove any packages it depends on.
    DMedia - Distributed Media Library
    LaVida - A simulation game for Linux
    AskUbuntu

  3. #3
    James78's Avatar
    James78 is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Sep 2008
    Beans
    Hidden!

    Re: Remove a package without removing dependencies

    How do you remove it without removing the dependencies?

    Code:
    sudo dpkg -r --force-all libgl1-mesa-swx11
    or (purge everything, I prefer this way)
    Code:
    sudo dpkg -P --force-all libgl1-mesa-swx11
    WARNING:: Doing this will probably make your system unusable, DO NOT ATTEMPT UNLESS YOU UNDERSTAND THIS. Don't blame me if your system breaks.
    Last edited by James78; June 20th, 2010 at 11:09 AM.

  4. #4
    Join Date
    Jun 2010
    Beans
    39
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Remove a package without removing dependencies

    Quote Originally Posted by James78 View Post
    How do you remove it without removing the dependencies?

    Code:
    sudo dpkg -r --force-all libgl1-mesa-swx11
    or (purge everything, I prefer this way)
    Code:
    sudo dpkg -P --force-all libgl1-mesa-swx11
    WARNING:: Doing this will probably make your system unusable, DO NOT ATTEMPT UNLESS YOU UNDERSTAND THIS. Don't blame me if your system breaks.
    Thanks, this did the trick. Everything's working again.

Bookmarks

Posting Permissions

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