[Yum] man page question

R P Herrold herrold at owlriver.com
Thu Feb 6 15:39:36 UTC 2003

In the man page for yum, yum-0.9.4-1_8x 

I find:
       -y     Assume yes; assume that the answer to  answer  to  any  question
              which would be asked is yes.  Configuration  Item: assume-yes

Is this actually:

( "=" not "-" ) ?

I ask because I tried using it:

[root at ftp root]# yum install php-mysql
Traceback (most recent call last):
  File "/usr/bin/yum", line 24, in ?
  File "yummain.py", line 104, in main
  File "yummain.py", line 64, in parseCmdArgs
  File "config.py", line 27, in __init__
  File "/usr/lib/python2.2/ConfigParser.py", line 233, in read
    self.__read(fp, filename)
  File "/usr/lib/python2.2/ConfigParser.py", line 474, in __read
    raise e
ConfigParser.ParsingError: File contains parsing errors: 
        [line  7]: 'assume-yes\n'
[root at ftp root]#

But when I make that change and try an unattended install ...

[root at ftp root]# cat /etc/yum.conf | grep assum
[root at ftp root]# yum install php-mysql
Gathering package information from servers
Getting headers from: Red Hat Linux 8.0 base
Getting headers from: Red Hat Linux 8.0 updates
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: php-mysql.i386]
Is this ok [y/N]: y
Getting php-mysql-4.2.2-8.0.7.i386.rpm
Calculating available disk space - this could take a bit
php-mysql 100 % done
Installed:  php-mysql.i386
Transaction(s) Complete
[root at ftp root]# rpm -q yum rpm rpm404-python
[root at ftp root]#

so that alternative version of the option seems not to work 

-- Russ Herrold

More information about the Yum mailing list