How can I list all applications installed in my system?

Danatela

I know, I just can hit Super+A to see all installed apps in Ubuntu, but I need a command to list their names. The command

dpkg --get-selections | awk '{print $1}'

is also not an option because it shows all installed packages and it contains drivers, kernels and libraries.

Radu Rădeanu

I came up with this answer for people who wants to use bash in a good way. It's clear that the answer of the question is related to the listing of the files from /usr/share/applications, but the problem is that ls command shouldn't be parsed ever. In the past, I was doing the same mistake, but now I learned that the best way is to use a for loop to iterate over the files, even if I must use some more keys from my precious keyboard:

for app in /usr/share/applications/*.desktop; do echo "${app:24:-8}"; done

I also used in the previous command string manipulation operations: removed from app first 24 characters which are /usr/share/applications/ and last 8 characters which are .desktop.


Update:

Another place where you can find applications shown by the Dash is ~/.local/share/applications/*.desktop. So you need to run the following command as well:

for app in ~/.local/share/applications/*.desktop; do echo "${app:37:-8}"; done

To unify the previous two commands, you can use:

for app in /usr/share/applications/*.desktop ~/.local/share/applications/*.desktop; do app="${app##/*/}"; echo "${app::-8}"; done

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I list all applications installed in my system?

From Dev

How can I display the list of all packages installed on my Debian system?

From Dev

How can I tell if all the hardware in my system has correctly installed drivers?

From Dev

How can I tell if all the hardware in my system has correctly installed drivers?

From Dev

How can I check if a certain patch is already installed in my system?

From Dev

How can I run a single command to show all installed applications in Windows 10?

From Dev

How to list all Python versions installed in the system?

From Dev

How to list all Python versions installed in the system?

From Dev

How can I get Unity to recognize installed applications it doesn't list?

From Dev

How can I get Unity to recognize installed applications it doesn't list?

From Dev

How to create a list of all applications which were manually installed?

From Dev

How to get a list of all installed applications in client's computer?

From Dev

a command to list all packagas installed on the system and their installed files, how?

From Dev

How can I find all video files on my system?

From Dev

How can I locate all subversion repositories on my system?

From Dev

How can I compute the size of my Linux install + all my applications?

From Dev

How can I migrate my OS Ubuntu 18.01 to an other computer, keeping all my configurations and installed programs?

From Dev

How to find all installed applications

From Dev

How can I determine if Apache is installed on a system?

From Dev

How can I list all system restore points?

From Dev

How can I list all groups on a system via PowerShell?

From Dev

How do I list all installed programs?

From Dev

How can I disable Ctrl+Q for all applications (system wide)?

From Dev

How can I disable Ctrl+Q for all applications (system wide)?

From Dev

How can I show installed CSP's on my Linux system without using the cpconfig util?

From Dev

How can I make a list of all dataframes that are in my global environment?

From Dev

How can I list all sub dir in my internal storage?

From Dev

how can i see a list of all SMS sent in my account?

From Dev

How can I list all packages I've installed from a particular repository?

Related Related

  1. 1

    How can I list all applications installed in my system?

  2. 2

    How can I display the list of all packages installed on my Debian system?

  3. 3

    How can I tell if all the hardware in my system has correctly installed drivers?

  4. 4

    How can I tell if all the hardware in my system has correctly installed drivers?

  5. 5

    How can I check if a certain patch is already installed in my system?

  6. 6

    How can I run a single command to show all installed applications in Windows 10?

  7. 7

    How to list all Python versions installed in the system?

  8. 8

    How to list all Python versions installed in the system?

  9. 9

    How can I get Unity to recognize installed applications it doesn't list?

  10. 10

    How can I get Unity to recognize installed applications it doesn't list?

  11. 11

    How to create a list of all applications which were manually installed?

  12. 12

    How to get a list of all installed applications in client's computer?

  13. 13

    a command to list all packagas installed on the system and their installed files, how?

  14. 14

    How can I find all video files on my system?

  15. 15

    How can I locate all subversion repositories on my system?

  16. 16

    How can I compute the size of my Linux install + all my applications?

  17. 17

    How can I migrate my OS Ubuntu 18.01 to an other computer, keeping all my configurations and installed programs?

  18. 18

    How to find all installed applications

  19. 19

    How can I determine if Apache is installed on a system?

  20. 20

    How can I list all system restore points?

  21. 21

    How can I list all groups on a system via PowerShell?

  22. 22

    How do I list all installed programs?

  23. 23

    How can I disable Ctrl+Q for all applications (system wide)?

  24. 24

    How can I disable Ctrl+Q for all applications (system wide)?

  25. 25

    How can I show installed CSP's on my Linux system without using the cpconfig util?

  26. 26

    How can I make a list of all dataframes that are in my global environment?

  27. 27

    How can I list all sub dir in my internal storage?

  28. 28

    how can i see a list of all SMS sent in my account?

  29. 29

    How can I list all packages I've installed from a particular repository?

HotTag

Archive