Thursday, May 9, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 446  / 3 Years ago, mon, august 16, 2021, 11:25:07

I've made a full clone of Ubuntu packages repo (about 230 GB), and running a local VM as my repo server.
What command can I use to list ALL packages contained within that repo?


More From » package-management

 Answers
4

Locally (that is, on the server), you can run:



find /location/of/repo/ -type f -name '*.deb'


Remotely, you can fetch the Packages file and grep it:



wget -qO - http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages.gz 
| zgrep -Po '(?<=^Package: ).*'

[#21524] Wednesday, August 18, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowovey

Total Points: 287
Total Questions: 98
Total Answers: 117

Location: Bosnia and Herzegovina
Member since Thu, Jan 14, 2021
3 Years ago
;