Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 5373  / 2 Years ago, thu, may 12, 2022, 5:43:55

Every time I install a package:



sudo apt-get install <pkg>


apt-get displays a list of suggested packages. I have simply ignored these so far, but some of these suggestions are actually good (and some are not). I would like to recover all these lists into one big list (so that I can review it and decide if there is some package I want to install), but I could not see them in /var/log/apt/history.log.



That is, I'm looking for something like



list = []
for package in installed_packages:
list.append(package.name)
print list

More From » apt

 Answers
5

Show the Suggests for all packages installed in a one-liner:



dpkg-query -W -f='${Package} (status: ${Status}) suggests: ${Suggests}
'
| grep 'status: install ok installed' | grep -v 'suggests: $'


It queries the dpkg database, lists all locally-known packages marked other than "nothing" (also lists uninstalled), in a custom output format, then filtered for really installed packages and filtered for packages without suggests.


[#33152] Friday, May 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
termetalli

Total Points: 326
Total Questions: 127
Total Answers: 110

Location: Sao Tome and Principe
Member since Sat, Sep 12, 2020
4 Years ago
termetalli questions
Sat, Apr 30, 22, 17:54, 2 Years ago
Mon, Dec 6, 21, 05:24, 2 Years ago
Thu, Jun 30, 22, 00:32, 2 Years ago
Mon, Dec 19, 22, 00:15, 1 Year ago
;