How to list all packages installed as dependencies in Terminal, and what installed them?

user364819

Is there a way in Terminal to list all programs which have not been installed by me, but other programs as necessary dependencies? And can I at the same time view which programs they were installed by?

A.B.

Using aptitude a high-level interface to the package manager, but you have to install it first

sudo apt-get install aptitude

After that

aptitude search '?installed(?automatic)'

to see a list of automatically installed packages.


And to see at the same time which programs they were installed by:

  • Only Depends

    aptitude -F %p search '?installed(?automatic)' | \
        while read x ; do aptitude why "$x" | awk '/Depends/' ; done
    
  • Or the full list

    aptitude -F %p search '?installed(?automatic)' | \
        while read x ; do aptitude why "$x"; done
    

Sample output

i   texlive-full   Depends lcdf-typetools
i A lcdf-typetools Depends aglfn         
i   python3-apparmor-click Depends apparmor-easyprof
i   aptitude Depends aptitude-common (= 0.6.11-1ubuntu3)
i   arronax Depends arronax-base
i   arronax Depends arronax-nautilus
i   ubuntu-dev-tools Depends    devscripts (>= 2.11.0~)
i   lxc-docker       Depends    lxc-docker-1.7.1
i   gnome-common Depends autopoint
i A nvidia-prime Depends    bbswitch-dkms                    
i   calibre            Depends python-pil | python-imaging      
i A python-pil         Depends mime-support | python-pil.imagetk
i A python-pil.imagetk Depends python-tk (>= 2.7.7-2)           
i A python-tk          Depends blt (>= 2.4z-9)                  
i   bluegriffon Depends bluegriffon-data (= 1.7.2-1~getdeb2~raring)
i   playonlinux Depends cabextract

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to get list of all installed packages along with version in composer?

From Dev

How to list installed go packages

From Dev

npm - save installed packages as dependencies

From Dev

List all packages which are loaded/defined (not installed)

From Dev

How to list licences of all installed packages in Debian-based distros?

From Dev

How to list all the installed packages and their version with Cabal?

From Dev

list all suggested packages for currently installed packages

From Dev

How to List all software installed on Ubuntu 14.04 and Uninstall them

From Dev

How to effectively navigate the Terminal and installed packages/commands?

From Dev

How to list all installed packages

From Dev

How to effectively navigate the Terminal and installed packages/commands?

From Dev

list all suggested packages for currently installed packages

From Dev

How to list all installed packages

From Dev

How to List all software installed on Ubuntu 14.04 and Uninstall them

From Dev

How to list installed packages that depend on another installed package in Debian?

From Dev

How to get the list of installed packages without dependencies?

From Dev

how can i list all packages which ere installed by me in centos without dependencies

From Dev

List all installed application and put them in a spinner

From Dev

What is the default list of installed packages in kubuntu (14.04)?

From Dev

How to get installed/not installed state of **all** packages?

From Dev

Download all installed packages

From Dev

How to get a list of which packages were installed with apt-get by a user and not by dependencies?

From Dev

How do I list all packages installed for a specific architecture?

From Dev

How do I list all packages belonging to a group (installed and uninstalled)?

From Dev

How to find out what all standalone packages are installed?

From Dev

Where are installed packages’ dependencies stored?

From Dev

How to list dependent packages (reverse dependencies) for a system I don't have installed?

From Dev

List all packages installed with Guix

From Dev

How can I mark all packages with installed dependents as "Automatically Installed"?

Related Related

  1. 1

    How to get list of all installed packages along with version in composer?

  2. 2

    How to list installed go packages

  3. 3

    npm - save installed packages as dependencies

  4. 4

    List all packages which are loaded/defined (not installed)

  5. 5

    How to list licences of all installed packages in Debian-based distros?

  6. 6

    How to list all the installed packages and their version with Cabal?

  7. 7

    list all suggested packages for currently installed packages

  8. 8

    How to List all software installed on Ubuntu 14.04 and Uninstall them

  9. 9

    How to effectively navigate the Terminal and installed packages/commands?

  10. 10

    How to list all installed packages

  11. 11

    How to effectively navigate the Terminal and installed packages/commands?

  12. 12

    list all suggested packages for currently installed packages

  13. 13

    How to list all installed packages

  14. 14

    How to List all software installed on Ubuntu 14.04 and Uninstall them

  15. 15

    How to list installed packages that depend on another installed package in Debian?

  16. 16

    How to get the list of installed packages without dependencies?

  17. 17

    how can i list all packages which ere installed by me in centos without dependencies

  18. 18

    List all installed application and put them in a spinner

  19. 19

    What is the default list of installed packages in kubuntu (14.04)?

  20. 20

    How to get installed/not installed state of **all** packages?

  21. 21

    Download all installed packages

  22. 22

    How to get a list of which packages were installed with apt-get by a user and not by dependencies?

  23. 23

    How do I list all packages installed for a specific architecture?

  24. 24

    How do I list all packages belonging to a group (installed and uninstalled)?

  25. 25

    How to find out what all standalone packages are installed?

  26. 26

    Where are installed packages’ dependencies stored?

  27. 27

    How to list dependent packages (reverse dependencies) for a system I don't have installed?

  28. 28

    List all packages installed with Guix

  29. 29

    How can I mark all packages with installed dependents as "Automatically Installed"?

HotTag

Archive