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.
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.
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
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.
Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…
Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…
Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…
Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…