The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Debian Specific Quick Question

    Discussion in 'Linux Compatibility and Software' started by graycolor, Apr 12, 2010.

  1. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    How do I remove packages including the unnecessary dependencies? apt-get auto remove doesn't work. Lets say for example I wanted to remove empathy. I would type "apt-get remove empathy",but that doesn't uninstall the dependencies.
     
  2. 1ceBlu3

    1ceBlu3 Notebook Deity

    Reputations:
    1,050
    Messages:
    829
    Likes Received:
    17
    Trophy Points:
    31
  3. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    The thing is, the dependencies aren't just limited to use by Empathy, other things depend on them as well.
     
  4. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    deborphan will show you which packages are no longer depended upon, deborphan --guess-all will list more packages, but potential mess up your system if you pipe this into apt-get remove $(deborphan).

    apt-get autoremove should do it, if you use aptitude remove packagename it should automatically remove unneeded dependencies. The equivalents to purge (remove config files etc -- can be dangerous!) would be:
    apt-get --purge autoremove and aptitude --purge-unused remove packagename

    The only way it would end up not removing those dependencies (if they aren't required by some other package) is if you had one set to 'manually installed,' for example if you manually installed a dependency before installing a package that depended on it. There is no easy way to find those. You can have a look at this thread which has some scripts, but they are cheaphax.