On 11/17/2018 8:35 AM, Felix Miata wrote:
> Reco composed on 2018-11-17 09:53 (UTC+0300):
> 
>> On Sat, Nov 17, 2018 at 12:52:14AM -0500, Felix Miata wrote:
> 
>>> Web searches have not been helpful for these:
> 
>>> 1-Which of apt* returns version numbers along with package names, one line 
>>> per result, when
>>> searching? (in openSUSE, versions are returned by zypper search via the -s 
>>> switch (one line per
>>> package))
> 
>> aptitude search -F '%p %V' --disable-columns <pkg_here>
> 
> Surely there must be something simpler to be able to remember and type. :-p
> 

Using Bash you could use functions or aliases:

search_pkg() { aptitude search -F '%p %V' --disable-columns ${1}; }

$ search_pkg <pkg>

alias spkg="aptitude search -F '%p %V' --disable-columns"

$ spkg <pkg>

-- 
John Doe

Reply via email to