
지정된 시스템의 모든 종속성에 필요한 URL을 나열하는 것이 가능한지 확인하고 싶습니다.
내가 소프트웨어를 설치하려고 하는데 100개 이상의 개별 패키지에 의존하고 그러한 패키지를 수십 개 가져와야 한다고 가정해 보겠습니다. 내가 액세스해야 하는 각 URL을 지정하도록 요청하는 제한적인 프록시(물론!!!) 내부에 있는 경우가 있습니다.
나는 apt-rdependents를 사용하여 종속 패키지 목록을 얻을 수 있다는 것을 알아냈습니다. 하지만 URL에 대한 올바른 종속성을 어떻게 얻을 수 있습니까? (*.ubuntu.com이 괜찮다고 가정)
답변1
apt-get과 --print-uris
옵션을 사용하여 URI를 표시할 수 있습니다.
sudo apt-get --print-uris install geany
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
geany-common
Suggested packages:
libvte9
The following NEW packages will be installed:
geany geany-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,242 kB of archives.
After this operation, 8,894 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
'http://archive.ubuntu.com/ubuntu/pool/universe/g/geany/geany-common_1.22+dfsg-2ubuntu1_all.deb' geany-common_1.22+dfsg-2ubuntu1_all.deb 2153292 MD5Sum:e7dc7ca72d4e3b27ebfeadaea9fb3289
'http://archive.ubuntu.com/ubuntu/pool/universe/g/geany/geany_1.22+dfsg-2ubuntu1_amd64.deb' geany_1.22+dfsg-2ubuntu1_amd64.deb 1089150 MD5Sum:e201bf70fc0ef23b0f64c410125814cb
이것은 추가 설치가 필요 없는 가장 간단한 방법입니다.
apt-get man 발췌:
--print-uris
Instead of fetching the files to install their URIs are printed. Each URI will have the path, the
destination file name, the size and the expected MD5 hash. Note that the file name to write to
will not always match the file name on the remote site! This also works with the source and update
commands. When used with the update command the MD5 and size are not included, and it is up to the
user to decompress any compressed files. Configuration Item: APT::Get::Print-URIs.