Score:2

How do I search for a specific installed app using `apt list --installed`?

cn flag
apt list --installed

The above command will list all installed apps which is usually more than 100 but I need to see all apps that start with a specific word

Example:
I have installed more than 2 wine versions and I want to uninstall them but when I write apt list --installed, even scrolling to reach the top is time consuming so I want some way to make this list smaller like the command ls win* in directories

Note: I'm using Ubuntu 21

Score:8
us flag

apt list --installed | grep wine should do what you want.

kr flag
Or `apt list --installed '*wine*'`
Besmella Kazimy avatar
cn flag
Yeay it worked tones of tnx but I have installed multiple times of one package and I wanna delete them, is there any specific command for it? like '''appwiz.cpl''' in windows/run which come up with list of all installed programs so user could modify them ?
Score:5
hr flag

Since apt version 1.8, you can use aptitude style patterns to narrow searches involving package names. So for example

apt list '?narrow(?installed,?name(wine))'

or (using the ~i and ~n shorthands for ?installed and ?name)

apt list '?narrow(~i,~nwine)'

See also:

and related quetion

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.