Listing software

Discussions Regarding Software

Moderator: Moderators

Post Reply
HawkEye4077
Young Hen
Posts: 29
Joined: Sat Oct 12, 2013 7:36
Location: Liverpool, UK

Listing software

Post by HawkEye4077 » Sun Jun 26, 2016 12:01

Hi Folks,

I was wondering if any one knew of a good way to get a list of all installed programs? I have serched the web / forums and found several ideas and tried a couple of them such as

Code: Select all

equo query list installed
and while this does list everything installed it includes libraries which isn't exactly what I am after. What I am trying to get is just a list of installed programs (executables) as I am going to have to rebuild my system soon and it is much easier if I know what was installed (well easier on my ears anyway as it saves the family moaning!).

Any advice appreciated.
Regards
Neil

Linux Registered User 324599

svantoviit
Old Dear Hen
Posts: 744
Joined: Sun Feb 28, 2010 17:55
Contact:

Re: Listing software

Post by svantoviit » Mon Apr 10, 2017 0:34

Probably too late, but anyway. You could try something like:

Code: Select all

$ sort -u <(sed 's/-[0-9].*//' <(parallel equo q belongs -q ::: /usr/local/bin/* /usr/bin* /bin/* /opt/bin* /usr/games/bin* /sbin/* /usr/sbin/* /usr/local/sbin/*)) > long-list-of-installed-packages.txt
Number of packages I got this way on my system compared to equo q list installed:

Code: Select all

$ wc -l long-list-of-installed-packages.txt
1158 long-list-of-installed-packages.txt

Code: Select all

$ equo q list installed -q | wc -l
2816

User avatar
sabayonino
Sagely Hen
Posts: 3372
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Listing software

Post by sabayonino » Mon Apr 10, 2017 12:56

Exec in

Code: Select all

# equo q belongs $(find /bin /sbin /usr/bin /usr/sbin /opt -executable -type f)  -qv | sort | uniq 2>/dev/null
???

Post Reply