[SOLVED] List of all applications...
Posted: Thu Mar 19, 2020 8:52 am
Is there an app or command that will give me a list of all applications that are in a Mint Linux Cinnamon install?
Jack
Jack
Welcome to the Linux Mint forums!
https://forums.linuxmint.com/
In Software Manager, upper-right menu button, "Show installed applications".jackerbes wrote: Is there an app or command that will give me a list of all applications that are in a Mint Linux Cinnamon install?
Code: Select all
jack@jack-T520:~$ dpkg -l
If you're looking for that level of detail, yes indeed.jackerbes wrote: ... this one that is a good choice too
Sure can:jackerbes wrote: I'll bet I can send that list to a text file too.
dpkg -l > apps.txt
I get a rather short list which includes non-applications like kernels and themes, but doesn't include installed applications like alsamixer or update-grub.JoeFootball wrote: ↑Thu Mar 19, 2020 8:56 amIn Software Manager, upper-right menu button, "Show installed applications".
dpkg -l
lists packages, not applications.W
, to find the name of an application in my path
Code: Select all
$ cat ~/bin/W
#!/bin/bash
#
if [ $# -lt 1 ]
then
echo Usage: `basename $0` pattern
exit 1
fi
echo $PATH | sed 's/^/ls -A /' | sed 's/:/ |grep -i '$1'; ls -A /g' | sed 's/$/ |grep -i '$1'/' | bash | sort
exit 0
Code: Select all
$ W alsa # lists all the applications in PATH with "alsa" in their names
alsa
alsa-info
alsabat
alsabat-test
alsactl
alsaloop
alsamixer
alsatplg
alsaucm
Code: Select all
X a
X b
W a
not X
..sort -u
the output, I get list of 2508 executables in my PATH. dpkg -l
shows 2024 packages (which include non-applications like themes and fonts).Actually I'm pretty bad at bash scripting and, although I made that 'W' script a couple of years ago, I no longer understand how it works (I learned that when I tried to fix a minor bug - it sometimes lists files in the CWD = current working directory)
W.txt
, you need to run W.txt
in a terminal...so if it's called W
(or whatever you want), put it in $HOME/bin
and chmod +x ~/bin/W
. If you don't have a $HOME/bin directory, make one first, do the above, then log out/back in to add it to your $PATH. Your .profile file takes care of it...or you could do
Code: Select all
. .profile
Code: Select all
$ Ws W
4 W
4 Wget
4 Which
4 Winetricks
4 Wl
4 Wordpad
4 Ws
Code: Select all
$ Ws grub # list all the commans with lowercase 'grub' in their names, and the file sizes
...
244 grub-mklayout
...
$ ls -l `which grub-mklayout`
-rwxr-xr-x 1 root root 245848 Nov 10 22:52 /usr/bin/grub-mklayout
Code: Select all
$ ls /usr/share/applications
/usr/share/applications/org.gnome.FileRoller.desktop
tries to Exec=file-roller %U
.Not the most elegant but effective single liner for thisFlemur wrote: ↑Thu Mar 19, 2020 12:17 pmA way to get a list of everything (? some are desktop dependent) that's in your desktop menu is just:but sometimes that filename is different than the executable name, likeCode: Select all
$ ls /usr/share/applications
/usr/share/applications/org.gnome.FileRoller.desktop
tries toExec=file-roller %U
.
Code: Select all
for f in $(ls /usr/share/applications); do cat /usr/share/applications/$f | grep -w Exec; done