apt-cache for all your shopping needs!
Hello all.

apt-cache is the tool I use to look for packages that are available for my build.  In this case, ubuntu 16.04LTS on arm64.  

apt-cache does not require sudo, and is good to identify the actual package name for whatever program you're looking for, and if there is none, you'll find that out too.  Mind you, this is for packages, not all possible projects or source code.  Packages are normally software products that work, are packaged, on this distribution, and are popular or essential enough to merit their inclusion in the package database (atp-cache).

apt-cache stats
will show you the current status of your apt-cache database.

apt-cache showpkg <package_name_here>
 will give you an idea of what would be installed, including dependencies, were you to install the package from that package name.  Which begs the question: "how do I learn the package name for the package I want to install?"  Good question!

apt-cache search <regex_term>
 will return a list of packages that include that search term.  You can grep it further, or just read through it to find your package name.  Lots of times, I'm off just a little in the spelling of the package name (grrr...) and this lets me find out what IT calls it.

There are more commands for apt-cache, and man apt-cache will get you the manual page for this very handy tool.  apt-cache search and apt-cache showpkg have been indispensable to my learning this new platform.  Use them and you will see.

Oh, and as is usually the case, all of these commands are from bash (the Bourne Again Shell).

David, the lip smacking pirate hedgehog.  "SHIVER me timbers!"  

Messages In This Thread
apt-cache for all your shopping needs! - by tampadave - 09-30-2016, 02:19 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)