All,
I think I found a bug in yum 2.0.6 but perhaps you can confirm it.
Notice the result betwen two commands with different order:
In the first command I used "--download-only" before "install" and it didn't install ncftp as expected.
In the second command I used "--download-only" after "install" and it DID installed ncftp.
1) First Command
# yum --download-only install ncftp Gathering header information file(s) from server(s) Server: Red Hat Linux 9 - i386 - Base Server: Red Hat Linux 9 - i386 - Updates Finding updated packages Downloading needed headers Resolving dependencies Dependencies resolved I will do the following: [install: ncftp 2:3.1.5-4.i386] Is this ok [y/N]: y Downloading Packages Running test transaction: Test transaction complete, Success! Completed Download and test, Exiting. # rpm -q ncftp package ncftp is not installed
2) Second Command
# yum install ncftp --download-only Gathering header information file(s) from server(s) Server: Red Hat Linux 9 - i386 - Base Server: Red Hat Linux 9 - i386 - Updates Finding updated packages Downloading needed headers Cannot find a package matching --download-only Resolving dependencies Dependencies resolved I will do the following: [install: ncftp 2:3.1.5-4.i386] Is this ok [y/N]: y Downloading Packages Running test transaction: Test transaction complete, Success! ncftp 100 % done 1/1 Installed: ncftp 2:3.1.5-4.i386 Transaction(s) Complete # rpm -q ncftp ncftp-3.1.5-4
I appreciate your time! -- Thomas Chung FedoraNEWS.ORG (http://fedoranews.org) "..where you can free your knowledge for your free community!"
On Wed, 2004-03-17 at 16:09 -0800, Thomas Chung wrote:
All,
I think I found a bug in yum 2.0.6 but perhaps you can confirm it.
Notice the result betwen two commands with different order:
In the first command I used "--download-only" before "install" and it didn't install ncftp as expected.
why would --download-only install when it's specfically saying it will ONLY DOWNLOAD.
In the second command I used "--download-only" after "install" and it DID installed ncftp.
b/c the option is out of order of the getopt parser.
yum [options] command pkg pkg pkg....
so yum --download-only install foo bar baz
not yum install --download-only foo bar baz.
-sv