Why the the apt search command must be "apt-cache search <packagename>" why not "apt-search <packagename>" instead ?

Asked by dorkguy&@@&-)27

I just wondering why when we are looking for a package through apt command on terminal must type a long syntax like, "apt-cache search <your-packagename>" why not just make it shorter and become easy to guess for a newbie become, "apt-search <your-packagename>" ?... isn't that to be much efficient? .. or its too complex to apply it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Best Thomas Krüger (thkrueger) said :
#1

Well, you can do it yourself:
Open the Terminal, run
nano ~/.bashrc
and add the line
alias apt-search='apt-cache search'
at the end. The press Ctrl+x then y to save.
Next time you run the Terminal you can use apt-search.

Also you can type it like
apt-ca<Tab>se<Tab>
Which by the way works for any command. Two <Tab> show all you options at the moment.

Revision history for this message
dorkguy&@@&-)27 (bitchdoyoulikeswagorsomething) said :
#2

This is really helping... perfectly suit with my simplicity on terminal ... thanks.. :D

Revision history for this message
daniel CURTIS (anoda) said :
#4

Hello. Right - aliases are very helpful. Honestly, I'm using a couple of aliases relating with APT utility, e.g.:

* alias apt-search='apt-cache search'
* alias apt-show='apt-cache show'
* alias install='apt-get install'

And so on... Best regards.