Score:-2

How do I get Ubuntu to display `apt search` results on one line

cn flag

Really I want to ask, "how do I get apt search to show up more like Mint apt search?"

When I use Mint to search packages, they're shown on one line and my search terms are highlighted (colored) as in grep --color=auto. Also, there's a package state at the front of the line with a character describing the package's installed state, as in "i" if it's installed (see screenshot), or "v" or "p" (which have other meanings than it's installed).

Is there a setting I can change so that all my apt searches show on one line? With a short summary of the package's installed state, like "i"? With the search terms highlighted in the highlight color like grep? Is there a command line flag, or (better) a config file that I can edit so the results are always shown (as described above) without passing command line flags?

man apt-cache has no mention of "color" or "highlight" or ("line" as it relates to one-line output)

mint's version of apt shows up like this by default

user@computer:~# apt show apt
Package: apt
Version: 2.4.8
...

user@computer:~# apt-file search $(which apt)
mintsystem: /usr/local/bin/apt            

user@computer:~# apt-file show mintsystem
mintsystem: /usr/local/bin/apt

user@computer:~# grep search $(which apt)
...
elif argcommand == "search":
    command = ["aptitude", "-w", columns, argcommand] + argoptions
--

user@computer:~# apt help search apt 
"apt search apt" is equivalent to "aptitude -w 104 search apt"

activedecay avatar
cn flag
Thanks for the downvote; would you please comment about how I can improve this question?
us flag
(I did not downvote, but) Can you post a screenshot of both, so that we understand exactly what you are looking for?
activedecay avatar
cn flag
Call me crazy, but is mentioning a competing Linux distro in the question eliciting drive-by downvotes? Look, just please say why you downvote. I'll fix the question! Thank you <3
Score:0
cn flag

Really I want to ask, "how do I get apt search to show up more like Mint apt search?"

You can by reverse engineering the executable linked to $(which apt) on a Mint system, which comes from the package mintsystem.

Is there a setting I can change so that all my apt searches show on one line? With a short summary of the package's installed state, like "i"?

Use aptitude when searching, like so:

aptitude -w $COLUMNS search apt

With the search terms highlighted in the highlight color like grep?

Pipe it to grep:

aptitude -w $COLUMNS search apt | grep apt
I sit in a Tesla and translated this thread with Ai:

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.