Find the answer to your Linux question:
Results 1 to 5 of 5
In other words, for instance, if I want to get rid of gnome and all the packages that came with it how do I go about doing this? I already ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Location
    Nowhere and Everywhere
    Posts
    98

    How to properly get rid of packages???


    In other words, for instance, if I want to get rid of gnome and all the packages that came with it how do I go about doing this? I already tried this:
    Code:
    # emerge --unmerge gnome
    But it still doesn't get rid of the 100+ Mb of extra crap that I don't need, so does anybody know the right way to do this???

  2. #2
    Linux Engineer d38dm8nw81k1ng's Avatar
    Join Date
    Mar 2005
    Location
    Newcastle
    Posts
    793
    maybe
    Code:
    emerge --clean
    or
    Code:
    emerge --depclean
    i've not had access to my computer for a while but i think one of those should work. also:
    Code:
    emerge --help
    should give more details about the options.[/code]
    Here's why Linux is easier than Windows:
    Package Managers! Apt-Get and Portage (among others) allow users to install programs MUCH easier than Windows can.
    Hardware Drivers. In SuSE, ALL the hardware is detected and installed automatically! How is this harder than Windows' constant disc changing and rebooting?

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    The "gnome" package doesn't actually install anything, but rather has as its dependencies all the actual gnome packages.

    So what happens is that "gnome" is added to the world file, and the other packages are just installed.

    "emerge depclean" looks at every package not in the world file and sees if anything still requires it. If not, it will remove that package.

    So to get rid of gnome, you should do:
    Code:
    emerge --unmerge gnome
    emerge depclean -p  <-- Check what you're removing
    emerge depclean
    After doing an 'emerge depclean', you should always run "revdep-rebuild", which will reinstall any libraries that are needed but were accidentally removed (due to odd dependency stuff).

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Sep 2005
    Location
    Nowhere and Everywhere
    Posts
    98
    Works like a charm, thanx .

  6. #5
    Just Joined!
    Join Date
    Dec 2005
    Posts
    54
    Alternatively to just remove gnome, and not remove its dependencies, you could just do this:

    equery list *gnome | grep gnome | xargs emerge --unmerge --pretend (remove pretend after verifying whats being removed)

    You could then delete the gnome directorys if you wanted as there not needed, all they hold is configuration settings which emerge doesnt touch.
    This is useful when upgrading or planning on reinstalling gnome at a later time.

    emerge depclean removes alot of dependencies that will have to be just reinstalled to satisfy other packages.

Posting Permissions

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