[Yum] man page question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:
    assume=yes

( "=" not "-" ) ?

I ask because I tried using it:

[root@ftp root]# yum install php-mysql
Traceback (most recent call last):
  File "/usr/bin/yum", line 24, in ?
    yummain.main(sys.argv[1:])
  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: 
/etc/yum.conf
        [line  7]: 'assume-yes\n'
[root@ftp root]#

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

[root@ftp root]# cat /etc/yum.conf | grep assum
assume=yes
[root@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@ftp root]# rpm -q yum rpm rpm404-python
yum-0.9.4-1_8x
rpm-4.1-1.06
rpm404-python-4.0.4-8x.27
[root@ftp root]#

so that alternative version of the option seems not to work 
here:

-- Russ Herrold



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux