Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1533  / 2 Years ago, tue, march 15, 2022, 8:56:31

I am trying to clean my installation up a bit, so I decided to clean up my packages a bit. However, I'm having trouble with that: My wish is to make apt-get list all packages installed by me. If I list every package, I also see the dependencies of my packages although I am not interested in those. For example, I want to see that I installed lightyears but I do not want to see the packages installed alongside, like python-numpy or python-pygame. Is there a way to do this?


More From » apt

 Answers
5

It's a quick hack, but this gets me very close:



manifest='http://releases.ubuntu.com/raring/ubuntu-13.04-beta2-desktop-amd64.manifest'

comm -2 -3
<(apt-mark showmanual | sort)
<(curl --silent "$manifest" | grep --perl-regexp --only-matching '^[w-.+]+' | sort)


You'll have to look up the package manifest for your version of Ubuntu from the releases server.



This method still returns a few packages that were selected via the Language Support installation prompt and the install third-party software checkbox, but depending on your needs it might be good enough.


[#31832] Wednesday, March 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
throecember

Total Points: 274
Total Questions: 118
Total Answers: 132

Location: India
Member since Thu, Jun 11, 2020
4 Years ago
;