Hacker News new | past | comments | ask | show | jobs | submit login

Another (fairly) recent improvement for apt, but on the UI side, is the apt command [1]. It "combines the most commonly used commands from apt-get and apt-cache. The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options." So no need to remember that it's apt-cache search, and it's a shorter command. (I know you can set aliases, but this works by default, so on a live USB or another user's machine.) Bash completion didn't work at first, at least on Ubuntu, but as of 15.10 it's working.

[1]: https://mvogt.wordpress.com/2014/04/04/apt-1-0/




This does the same I believe, if you'd like to try something like this right now:

https://pypi.python.org/pypi/apt-wrapper

It also runs sudo for you when needed.

The wrapper part is only for the package name as it was already taken on pypi.


this is good! i'm mostly homebrew on mac these days, but every once in a while i find myself on an apt-based linux system, and i've always blown away at how obscure and unintuitive apt is.


It's good but does not provide tab-completion on bash yet.


It does in Ubuntu starting with 15.10 (as I mentioned). I don't know about Debian.


Ugh can't even count how many times this happens:

Apt search somepackage

sigh

Apt-cache search somepackage


then:

sigh

apt-cache search somepackage | grep '^somepackage'


    apt-cache policy <somepackage>
does that work better?


wajig(1) is your unifying interface friend in this space.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: