Results 1 to 9 of 9
Hi I am writing a Install script for a Bare Bone Fedora 6.
It goes like this:
Code:
#PREPAIR
mkdir /root/install
cd /root/install
#
#Config YUM
#
#INSTALL BARE BONE ...
- 09-25-2007 #1
Fedora+YUM+Scripting=Unknown Argument
Hi I am writing a Install script for a Bare Bone Fedora 6.
It goes like this:
And so on tillCode:#PREPAIR mkdir /root/install cd /root/install # #Config YUM # #INSTALL BARE BONE SYSTEM yum install xorg-x11-server-Xorg yum install icewm yum install gdm yum install gcc yum install gcc-c++.i386 yum install libX11-devel.i386 yum install imlib2-devel.i386 # # #INSTALL xVNC yum install xinetd yum install vnc-server rm /etc/gdm/custom.conf echo [xdmcp] >> /etc/gdm/custom.conf echo Enable=true >> /etc/gdm/custom.conf init 3 init 5 echo service vnc-800x600 >> /etc/xinetd.d/vnc-800x600 echo { >> /etc/xinetd.d/vnc-800x600 echo type = unlisted >> /etc/xinetd.d/vnc-800x600 echo disable = no >> /etc/xinetd.d/vnc-800x600 echo flags = REUSE >> /etc/xinetd.d/vnc-800x600 echo socket_type = stream >> /etc/xinetd.d/vnc-800x600 echo port = 5920 >> /etc/xinetd.d/vnc-800x600 echo wait = no >> /etc/xinetd.d/vnc-800x600 echo user = vnc >> /etc/xinetd.d/vnc-800x600 echo server = /usr/bin/Xvnc >> /etc/xinetd.d/vnc-800x600 echo server_args = -inetd -query localhost -once -terminate -depth 24 -geometry 800x600 -securitytypes none >> /etc/xinetd.d/vnc-800x600 echo log_on_failure += USERID >> /etc/xinetd.d/vnc-800x600 echo } >> /etc/xinetd.d/vnc-800x600 useradd vnc service xinetd restart
Though, yum thinks that the programs I want to install are Arguments.Code:#COMPLETE #Update Boot Seq: /sbin/chkconfig --level 35 httpd on /sbin/chkconfig --level 35 spamassassin on /sbin/chkconfig --level 35 squid on #Open /etc/inittab and search id:3:initdefault:
And says unknown argument..
How can I fix this..?
- 10-01-2007 #2
- 10-01-2007 #3
I would not have bothered you with the following trivial reply, but it's been five days since you posted your original question, and nobody's answered it, and I know almost nothing about yum myself, and yum is not included with my distribution.
The first thing I did was to google this:
While browsing the results, I discovered that you should be able to do this on your system:Code:yum tutorial
If you do that, I hope it answers your question.Code:man yum
- 10-01-2007 #4
- 10-01-2007 #5
Ok, then, since I don't have access to the yum man page, could you please post it so I can take a look?
Paste it into the edit window when making your reply. Then, please, put the man page in CODE markers. To do so:
- In your edit window, highlight the entire man page.
- Click the # icon found just above your edit window.
This will make the man page more readable.
- 10-01-2007 #6Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
A quick attempt at eliciting the error message (from CentOS 5):
Producing:Code:#!/bin/sh # @(#) s1 Demonstrate possible yum errors. echo echo " Testing badly-placed space-hyphen." yum -e 1 install xsane -gimp exit 0
So if there is an inadvertently-inserted space, one can run into trouble ... cheers, drlCode:./s1 Testing badly-placed space-hyphen. Loading "installonlyn" plugin usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase > Command line error: no such option: -g
Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )
- 10-01-2007 #7
The yum Man Page
And well I didnt put a dash (-) in front of it did I? :P
- 10-01-2007 #8Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )
- 10-02-2007 #9
Well, it gives "icewm" isnt a valid argument.
or "firefox" invalid argument...
I just thinks I want to use firefox as a argument like I used "install"
He doesnt see that the install is pointing at firefox.
Does it maybe work if I do
yum -y install {TheProgramIwant} ??


Reply With Quote
