How to sort APT `gnome-core` package dependencies by installed size?
Jul 27, 12:37am
To sort the dependencies of the gnome-core package by their installed size, you can use a combination of apt-cache and dpkg-query commands in the terminal. Here's a step-by-step guide:
Step 1: List Dependencies
First, list all the dependencies of the gnome-core package using apt-cache:
bash
apt-cache depends gnome-core
This will output a list of dependencies, including their types (e.g., Depends, Recommends, Suggests).
Step 2: Filter and Extract Package Names
Extract only the package names from the dependencies. You can use grep and awk to filter and format the output: