Message for proxmox developers.
Hello, I was trying to find a deb package that contains the "vma" utility (I needed to get a disk image from a vm backup).
Usually, I use the "apt-file" utility to find the name of the package that contains the file I'm interested in. But this time I couldn't find the package name.
This should be the name of the package "pve-qemu-kvm"
Then I found out that apt-file uses special index files for searching. As I understand from the documentation (https://wiki.debian.org/DebianRepository/Format#A.22Contents.22_indices), these files are not required.
Can you enable the creation of such files ( /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye_main_Contents-amd64.lz4 for example ) in your apt repository? It would be convenient.
Hello, I was trying to find a deb package that contains the "vma" utility (I needed to get a disk image from a vm backup).
Usually, I use the "apt-file" utility to find the name of the package that contains the file I'm interested in. But this time I couldn't find the package name.
Code:
# apt-file -v search "bin/vma"
D: <0.000s> [0.000s] (92291) Dir::Etc::apt-file-main is set to /etc/apt/apt-file.conf
D: <0.001s> [0.000s] (92291) The file /etc/apt/apt-file.conf does not exist
D: <0.001s> [0.000s] (92291) substring match (default)
D: <0.001s> [0.000s] (92291) Index restriction [name]: deb
D: <0.001s> [0.000s] (92291) Index restriction [arch]: amd64 all
D: <0.001s> [0.000s] (92291) Index restriction [suite]:
D: <0.001s> [0.000s] (92291) Index restriction [origin]:
D: <0.001s> [0.000s] (92291) Running "apt-get" "indextargets" "--format" "$(IDENTIFIER)\x1F$(ARCHITECTURE)\x1F$(ORIGIN)\x1F$(SUITE),$(CODENAME)\x1F$(FILENAME)"
D: <0.036s> [0.035s] (92291) Finished reading output from "apt-get" "indextargets" "--format" "$(IDENTIFIER)\x1F$(ARCHITECTURE)\x1F$(ORIGIN)\x1F$(SUITE),$(CODENAME)\x1F$(FILENAME)"
D: <0.036s> [0.000s] (92291) regexp: ^(.*?bin\/vma(?:.*[^\s])?)\s+(\S+)\s*$
D: <0.037s> [0.001s] (92291) Pipeline open, waiting for input
D: <0.037s> [0.001s] (92295) Assuming there is no header in Contents to skip
D: <0.037s> [0.001s] (92296) Starting fgrep -- bin/vma
D: <0.038s> [0.001s] (92295) Starting to pass files
D: <0.038s> [0.000s] (92295) Passing /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye_main_Contents-amd64.lz4
D: <0.038s> [0.000s] (92295) Passing /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye_main_Contents-all.lz4
D: <0.038s> [0.000s] (92295) Passing /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye_contrib_Contents-amd64.lz4
D: <0.038s> [0.000s] (92295) Passing /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye_contrib_Contents-all.lz4
D: <0.038s> [0.000s] (92295) Passing /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye-updates_main_Contents-amd64.lz4
D: <0.038s> [0.000s] (92295) Passing /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye-updates_main_Contents-all.lz4
D: <0.038s> [0.000s] (92295) Closing input to cat
D: <0.038s> [0.000s] (92295) Input closed, reaping completed children
D: <0.038s> [0.001s] (92297) Starting xargs -0r /usr/lib/apt/apt-helper cat-file
.D: <0.634s> [0.596s] (92295) Reaped children complete
.....
D: <0.634s> [0.598s] (92291) Read all input
hdf4-tools: /usr/bin/vmake
victoria-metrics: /usr/bin/vmagent
victoria-metrics: /usr/bin/vmalert
victoria-metrics: /usr/bin/vmauth
vmatch: /usr/bin/vmatch
vmatch: /usr/bin/vmatchselect
This should be the name of the package "pve-qemu-kvm"
Then I found out that apt-file uses special index files for searching. As I understand from the documentation (https://wiki.debian.org/DebianRepository/Format#A.22Contents.22_indices), these files are not required.
Can you enable the creation of such files ( /var/lib/apt/lists/ftp.en.debian.org_debian_dists_bullseye_main_Contents-amd64.lz4 for example ) in your apt repository? It would be convenient.