サーバーから SOFA 統計をダウンロードするには、wget コマンドを使用します。
wget -c http://sourceforge.net/projects/sofastatistics/files/latest/download?source=dlp
この場合のダウンロードファイルのファイル名はdownload?source=files
. --output-document
出力ファイルの名前を に変更するオプションをコマンドに追加するsofastatistics-latest.deb
と、ダウンロードしたファイルの形式が dpkg パッケージで認識されません。
dpkg-deb: error: `sofastatistics-latest.deb' is not a debian format archive
wgetでダウンロードしたファイルの名前を正しく変更するには?
更新 - 2015 年1 月 8 日
提供されたリンクを使用すると、ダウンロードされるファイルは常に *.tar.gz になります。実際の名前で取得するには、次のように--content-disposition
オプションを追加するだけです (@6EQUJ5 に感謝!):
wget --content-disposition http://sourceforge.net/projects/sofastatistics/files/latest/download?source=dlp
しかし、*.deb ファイルが必要だったので、ここに @creaktive があり、*.deb ファイル リンクを検索する必要がありました。
答えてくれてありがとう!