Results 1 to 5 of 5

Thread: Package Management- Installing/Uninstalling/depends/reverse-depends

  1. #1
    Join Date
    May 2010
    Beans
    124

    Package Management- Installing/Uninstalling/depends/reverse-depends

    Maybe someone can help me understand a little about package management. Namely, when uninstalling a package how do I know exactly what other pkgs, originally installed as dependencies, I can uninstall? For example:

    A -> installs -> B and C; C in turn installs -> D.

    At some time later, I install A' which depends on C (and thereby, D).

    Now, I want to uninstall A and all packages that were installed as dependencies but are unused by any subsequently installed package (in this case, B). How do I figure this out?

    A parallel question is whether I can find a tree not just of all packages and their (reverse)/dependencies, but of the packages that I specifically installed (and their dependencies).
    Last edited by DiagonalArg; March 5th, 2013 at 05:15 PM.

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Package Management- Installing/Uninstalling/depends/reverse-depends

    Code:
    sudo apt-get autoremove
    Will remove any packages on your system that were originally installed as dependencies but are no longer needed.
    Cheesemill

  3. #3
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Package Management- Installing/Uninstalling/depends/reverse-depends

    When you run

    Code:
    sudo apt-get remove package
    it figures out dependencies that would be redundant and removes those as well. If for some reason it misses some (or later package removal makes the dependencies unnecessary) running apt-get autoremove will, as Cheesmill said remove them.

  4. #4
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Package Management- Installing/Uninstalling/depends/reverse-depends

    All installation operations that happen using apt-get or Ubuntu Software Center are stored in /var/log/apt/history.log. The history.log file contains all the operations performed on your system using apt-get. Specifically a Start-Date and End-Date for the operation, the operation performed and
    additional information about the operation.
    Please mark your thread as solved if you get a satisfactory response.
    Linux user #556334 | Ubuntu user #35168

  5. #5
    Join Date
    May 2010
    Beans
    124

    Re: Package Management- Installing/Uninstalling/depends/reverse-depends

    Great advice! Thanks, all!

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
  •