Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 375  / 3 Years ago, sat, may 15, 2021, 6:10:33

Say I want to uninstall the Dash item "Ubuntu Software Center".



To uninstall it via CLI, I have to know what the .deb package is called. So I apt-cache search ubuntu-software-center but the only thing that shows up is lubuntu-software-center.



I open Synaptic GUI program and search ubuntu-software-center and the first listing is what I want, called "software-center."



How can I get "software-center" to show up in the output of a apt-cache search command?


More From » apt

 Answers
3

apt-cache search doesn't use a fancy full text search engine like Synaptic does, but simply prints all packages where your search words occur in the package name or description.



As neither the package name nor the description of software-center contains the word ubuntu-software-center a search using apt-cache will never find it that way.



However you can use multiple search words with apt-cache search and it will show you only the packages that contain all of them. So you can use e.g.



apt-cache search ubuntu software center


which gets you a short list a packages including software-center.



BTW, the apt-cache actually interprets the search words as regular expressions.


[#22439] Saturday, May 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odyroc

Total Points: 324
Total Questions: 109
Total Answers: 103

Location: Belize
Member since Mon, Apr 17, 2023
1 Year ago
;