![이 repoquery 명령과 동일한 데비안 명령은 무엇입니까?](https://linux55.com/image/32851/%EC%9D%B4%20repoquery%20%EB%AA%85%EB%A0%B9%EA%B3%BC%20%EB%8F%99%EC%9D%BC%ED%95%9C%20%EB%8D%B0%EB%B9%84%EC%95%88%20%EB%AA%85%EB%A0%B9%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
이 repoquery 명령과 동일한 데비안 명령은 무엇입니까?
repoquery --repofrompath="abc,http://path/to/repo" --repoid=abc -q mypkg
--qf %{NAME}_%{VERSION}_%{RELEASE}_%{ARCH}_%{BUILDTIME}_%{PACKAGER}_%{LOCATION}
이는 /etc/yum.repos.d에 지정된 저장소를 무시하고 repofrompath에 지정된 저장소에 있는 사용 가능한 최신 버전의 mypkg에 대한 요청 정보를 나열합니다.
지금까지 나는 발견했다
apt-cache showpkg mypkg
그러나 위의 repofrompath 효과를 시뮬레이션하기 위해 -c config-file 옵션을 사용하는 방법을 잘 모르겠습니다.
답변1
적성을 시험해 볼 수 있습니다. 예:
root@printserver:/root# aptitude search --display-format '%p_%V_%m ' --disable-columns "tcsh"
tcsh_6.17.02-4_Thomas Lange <[email protected]>
어디:
%p = Package Name
%V = Version
%m = Maintainer
예--target-release option
root@printserver:~# aptitude search --display-format '%p_%V_%m ' --disable-columns "linux-image-amd64" --target-release squeeze
linux-image-amd64_2.6.32+29_Debian Kernel Team <[email protected]>
root@printserver:~# aptitude search --display-format '%p_%V_%m ' --disable-columns "linux-image-amd64" --target-release squeeze-backports
linux-image-amd64_3.2+46~bpo60+1_Debian Kernel Team <[email protected]>