Description of problem: --downloadonly option (provided by yum-downloadonly plugin) does not work with file:// repository. With the same repository setup yumdownloader (from yum- utils) works. Version-Release number of selected component (if applicable): yum-3.0.1-5.el5.noarch yum-downloadonly-1.0.4-3.el5.noarch How reproducible: always Steps to Reproduce: 1. yum -y install --downloadonly --downloaddir=`pwd` test 2. ls test*.rpm Actual results: Package is not downloaded (it is downloaded with `yumdownloader test`) Expected results: Package is downloaded Additional info: # cat /etc/yum.repos.d/repo022.repo [repo022] name=repo022 test repository baseurl=file:///mnt/tests/CoreOS/yum/plugins-generic/repo-0.2-2 enabled=1 gpgcheck=0 # ls /mnt/tests/CoreOS/yum/plugins-generic/repo-0.2-2 comps.xml repodata test-0.2-2.i386.rpm test-skip-broken-0.2-2.i386.rpm Maybe this is a feature, not a bug, please let me know. I would just expect this to work.
# yum -y install --downloadonly test Loading "downloadonly" plugin Loading "rhnplugin" plugin Setting up Install Process Setting up repositories rhel-i386-server-cluster- 100% |=========================| 1.4 kB 00:00 rhel-i386-server-5 100% |=========================| 1.4 kB 00:00 rhel-i386-server-vt-5 100% |=========================| 1.4 kB 00:00 rhel-i386-server-cluster- 100% |=========================| 1.4 kB 00:00 rhel-i386-server-suppleme 100% |=========================| 1.2 kB 00:00 rhn-tools-rhel-i386-serve 100% |=========================| 1.2 kB 00:00 Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package test.i386 0:0.2-2 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: test i386 0.2-2 repo022 2.3 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 2.3 k Downloading Packages: exiting because --downloadonly specified
This is a feature, yum --downloadonly just makes sure that the packages are downloaded from the network ... so you can run with -C. file:// repos. don't have that problem. To put it another way, yum doesn't copy file:// urls into it's cache dir. because only bad things could happen if it did (like run out of disk space, and take more time).