Discover and inspect Debian and Ubuntu packages from the local APT cache with fast searches and metadata lookups. 18.02.2026 | reading time: 2 min Want to find which package provides a feature or check available versions quickly? Use apt-cache to query the local APT package cache for names, descriptions, dependencies and policies; it is read-only and ideal for inspection. Quick lookup in action Try it now: search for a package name and then inspect its metadata; example session shown below demonstrates both commands and their typical output. ```bash $ apt-cache search nginx nginx - small, powerful, scalable web/proxy server nginx-full - nginx web/proxy server (standard version) $ apt-cache show nginx Package: nginx Version: 1.18.0-6ubuntu14.1 Priority: optional Section: httpd Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Description: small, powerful, scalable web/proxy server This package contains the nginx web server. ``` Deep dives and dependency checks Inspect relationships and repository origin: use `apt-cache depends` to list direct dependencies, `apt-cache rdepends` to find reverse dependencies and `apt-cache policy` to see which repository supplies a package; example usage: `apt-cache depends nginx` and `apt-cache policy nginx`. Practical tips and caveats Remember to run `apt-get update` before searching if lists may be stale because apt-cache reads the local lists; apt-cache never installs or modifies packages so it is safe; note that modern interactive workflows often use `apt` for nicer output, but apt-cache remains useful for scripts and low-level inspections. Where apt-cache fits Use apt-cache when you need a quick, read-only look into the package world: check which package to install, confirm versions, and debug dependency chains before making changes with package managers like apt or dpkg. Keep exploring Now that you can probe the package cache, practice with real queries on your system and combine results with installation tools to fix or reproduce environments; consider deepening your Linux knowledge and pursuing certifications like CompTIA Linux+ or LPIC-1 with intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. utilities troubleshooting infrastructure