To download SOFA statistics from the server, I use the wget command:
wget -c http://sourceforge.net/projects/sofastatistics/files/latest/download?source=dlp
In this case, the file name of the downloaded file is download?source=files . If I add the --output-document option to the command to rename the output file to sofastatistics-latest.deb , the format of the downloaded file will not be recognized by the dpkg package.
dpkg-deb: error: `sofastatistics-latest.deb' is not a debian format archive
How to rename a downloaded file using wget?
UPDATE - January 08 '15
With the provided link, the downloaded file will always be * .tar.gz. To get it with a real name, just add the --content-disposition option like this (thanks @ 6EQUJ5!):
wget --content-disposition http://sourceforge.net/projects/sofastatistics/files/latest/download?source=dlp
But I need a * .deb file, so @creaktive was right here, I had to look for a link in a * .deb file.
Thanks everyone for the answers!
wget file-rename
Iurie Jan 13 '13 at 17:54 2013-01-13 17:54
source share