Categories: UbuntuUbuntu Feed

How to List All Packages Available in a Repository on Ubuntu

APT or Advanced Package Tool is an software package used to install, update and remove packages on Debian based systems. It is the default package manager on Ubuntu and Debian based systems. The apt, apt-get and apt-cache are quickly used commands to manage packages and configuration on system.

Apt don’t provide any command to list available package under the specific repository. But you can find the list from a cache file, which contains list of available package to that repository with other details.

This tutorial will help you to find all the available packages in a repository on Ubuntu and other Debian based systems.

Sponsored
class="heading1">Find Packages Details in Repository

Apt keeps all repository cache files under /var/lib/apt/lists directory. So, first update the apt cache on your system

sudo apt-get update 

Now, navigate to /var/lib/apt/lists directory. Then search for the file with the repository name, path and architecture, ends with _Packages in there name.

See the content of *_Packages to view details about all packages available under that repository.

Sponsored

To list the packages only available in file, execute below like:

grep -h -P -o "^Package: K.*" /var/lib/apt/lists/ppa.launchpad.net_*_Packages | sort -u 

Conclusion

In this article, you have learned to find all the available packages in a specific repository.

The post How to List All Packages Available in a Repository on Ubuntu appeared first on TecAdmin.

Ubuntu Server Admin

Recent Posts

Ubuntu 25.10 Beta Release is Available to Download

Ubuntu 25.10, code-name Questing Quokka, is now available for Beta testing! The developer team announced…

11 hours ago

How to build an awesome cloud gaming platform with Anbox Cloud

Why cloud gaming? Cloud gaming is changing the way we play. Instead of buying expensive…

1 day ago

Dolphin Emulator 2509 now Emulates Cars 2 & Disney Infinity Smoothly

Dolphin, the free open-source GameCube and Wii game emulator, released new 2509 version today after…

1 day ago

GNOME 49 Officially Released with New Video Player & Document Viewer

GNOME developer team finally announced the 49 release of this popular Linux Desktop environment! If…

1 day ago

Ubuntu 25.10 (Questing Quokka) Beta released

The Ubuntu Release team is pleased to announce the Beta release of the Ubuntu 25.10…

1 day ago

Canonical achieves IEC 62443-4-1 compliance in Industrial Automation and Control Systems

Canonical is proud to announce it has achieved compliance with IEC 62443-4-1 for cybersecurity in…

2 days ago