Debianからダウンロードするときにソースファイルのサイズを確認する方法はありますか?

Debianからダウンロードするときにソースファイルのサイズを確認する方法はありますか?

私たちが走っているときaptapt-getまたは私たちは子供たちがどれだけのスペースをaptitude必要とするかを常に知っています(もちろん除く)。//home/$username

これで(ユーザースペースで)操作を実行するときに、apt-get source最後の瞬間の驚きを避けるために、ソースファイルをダウンロードする前にソースファイルのサイズを知る方法がありません。

この問題を説明するために、実際のケースを共有したいと思います。

Binary Unknown Horizo​​nは圧縮されていない状態で約305MBです。

[$] aptitude show unknown-horizons

Package: unknown-horizons                
Version: 2014.1+git160920-1
State: installed
Automatically installed: no
Priority: optional
Section: games
Maintainer: Debian Games Team <[email protected]>
Architecture: all
Uncompressed Size: 305 M
Depends: ttf-unifont, python, python-enet, python-fife (>= 0.3.5+git160920), python-yaml, python:any (< 2.8), python:any (>= 2.7.5-5~)
Description: 2D realtime strategy simulation
 Unknown Horizons is a 2D realtime strategy simulation with an emphasis on economy and city building. Expand your small settlement to a strong
 and wealthy colony, collect taxes and supply your inhabitants with valuable goods. Increase your power with a well balanced economy and with
 strategic trade and diplomacy.
Homepage: http://www.unknown-horizons.org

ソースコードをダウンロードすると、305MB以上の圧縮されていないパッケージ全体がダウンロードされるか、/debianMB以上のほとんど含まれていないディレクトリのみがダウンロードされます。これを行う方法はありますか?

私の考えでは、apt-file次のようなメタデータが必要だと思います。

$ sudo apt-file update 

ベストアンサー1

次のコマンドを使用してソースtarballのサイズを確認できますapt-cache showsrc

$ apt-cache showsrc unknown-horizons
Package: unknown-horizons
Binary: unknown-horizons
Version: 2014.1+git160920-1
Maintainer: Debian Games Team <[email protected]>
Uploaders: Christoph Egger <[email protected]>
Build-Depends: debhelper (>= 10), dh-python, docbook-xml, docbook-xsl, imagemagick, intltool, python, xsltproc
Architecture: all
Standards-Version: 3.9.8
Format: 3.0 (quilt)
Files:
 152652f8ecb6961a5f02d3cab67b8cfa 2290 unknown-horizons_2014.1+git160920-1.dsc
 bec6e49f621f3f961454cf41c7e13346 197217496 unknown-horizons_2014.1+git160920.orig.tar.xz
 dccaafd51d0fbe3aaebe874715bc1d93 12512 unknown-horizons_2014.1+git160920-1.debian.tar.xz
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-games/unknown-horizons.git
Vcs-Git: https://anonscm.debian.org/git/pkg-games/unknown-horizons.git
Checksums-Sha256:
 af9fc7592567b75fa84189ca4e823df103e74fcb51e3fe34ea1162a53d08434d 2290 unknown-horizons_2014.1+git160920-1.dsc
 9342154d2ede6e152175c1c69d84f3a51ba2704a77a286103590da40f0d02482 197217496 unknown-horizons_2014.1+git160920.orig.tar.xz
 c6db7500f4dfe4a544ae660f92dd9acdc8248ecdc798a45d4bce0be6992d8a6f 12512 unknown-horizons_2014.1+git160920-1.debian.tar.xz
Homepage: http://www.unknown-horizons.org
Package-List: 
 unknown-horizons deb games optional arch=all
Directory: pool/main/u/unknown-horizons
Priority: source
Section: games

Files:次の項目に注意してください。.origタールボールサイズ(アップストリームソースコードを含む)は188MiB、.debianタールボールサイズは12KiBです。これは、タールボールを抽出するのにどれだけのスペースが必要かを知らせませんが、いくつかのマーキングを提供します。

あなたできるdebian.debian次のいずれかからtarballのみをダウンロードし、ディレクトリのみをダウンロードします。ソースパッケージページ、またはを使用してくださいapt-get source --diff-only

おすすめ記事