I use gentoo on slow internel link (home) and can't download packages. I make the list of URLs at home and download them at work on the fast internet. at home I execute: "emerge --update --fetchonly --pretend world 2>urls_for_download.txt" it output urls to STDERR! 8-( it is not important. This command print urls of all packages wanted to install even if it is already downloaded to /usr/portage/distfiles and has correct md5 Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge --update --fetchonly --pretend world 3. download all listed packages to /usr/portage/distfiles by hands 4. emerge --update --fetchonly --pretend world Actual Results: output of step 2 equivalent to output of step 4 Expected Results: output of step 4 must be empty (without urls)
read about '-nc' in wget
Bug 41926 handles the fact URL's are printed to stderr
emerge -pf world 2>&1 | awk '/md5 src_uri ;-)/{okfiles[$NF]=1} /\/[:alnum:]/{nf=split($1,a,"/");wanted[a[nf]]=$0} END {for (f in wanted) if (!(f in okfiles)) {split(wanted[f],a);print a[1]} }' *REAL* work around Thanks to Xavier Neys